Pasting WKT into UDig

View: New views
6 Messages — Rating Filter:   Alert me  

Pasting WKT into UDig

by Emily Gouge :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I keep coming across the need to paste WKT into uDig; however when I
searched Google for doing this all I found was this:
http://lists.refractions.net/pipermail/udig-users/2008-April/000135.html

Which says that Jesse had to disable whatever pasting he had working.
I'm not sure what cool implementation Jesse had in mind (I'm sure it was
much better than what I've done), but I really wanted this functionality
so I implemented a plug-in to allow me to paste WKT into uDig.

This plug-in contains two operations, one for pasting WKT into a map
(this creates a new layer and adds the features to the map) and another
for pasting WKT into an existing layer.  I haven't throughly tested
either of these with different projections and different geometry types
so errors are likely to occur if you try something to crazy.  If anybody
else wants to use this plug-in it is in svn:
http://svn.refractions.net/udig/udig/community/emily/net.refractions.wkt/
(You right click on the layer/map and select 'Operations -> Paste Well
Knwon Text').

However this plug-in will have issues rendering the pasted features
until this geotools patch has been applied.  You can still use it but
you have to manually "commit" after the paste to see the features properly.
http://jira.codehaus.org/browse/GEOT-2766

In fact, I discovered that all uDig editing has rendering issues unless
this patch is applied (at least for me).

Emily
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Re: Pasting WKT into UDig

by Jody Garnett-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Emily - I will put GEOT-2766 on the road map for today's geotools
release candidate.

Do you want to find out where Jesse had WKT cut and paste? There is
still a preference page for it - and update it with your code (or kill
it as incomplete and add your code to core).

Jody

On Fri, Oct 9, 2009 at 4:05 AM, Emily Gouge <egouge@...> wrote:

> I keep coming across the need to paste WKT into uDig; however when I
> searched Google for doing this all I found was this:
> http://lists.refractions.net/pipermail/udig-users/2008-April/000135.html
>
> Which says that Jesse had to disable whatever pasting he had working. I'm
> not sure what cool implementation Jesse had in mind (I'm sure it was much
> better than what I've done), but I really wanted this functionality so I
> implemented a plug-in to allow me to paste WKT into uDig.
>
> This plug-in contains two operations, one for pasting WKT into a map (this
> creates a new layer and adds the features to the map) and another for
> pasting WKT into an existing layer.  I haven't throughly tested either of
> these with different projections and different geometry types so errors are
> likely to occur if you try something to crazy.  If anybody else wants to use
> this plug-in it is in svn:
> http://svn.refractions.net/udig/udig/community/emily/net.refractions.wkt/
> (You right click on the layer/map and select 'Operations -> Paste Well Knwon
> Text').
>
> However this plug-in will have issues rendering the pasted features until
> this geotools patch has been applied.  You can still use it but you have to
> manually "commit" after the paste to see the features properly.
> http://jira.codehaus.org/browse/GEOT-2766
>
> In fact, I discovered that all uDig editing has rendering issues unless this
> patch is applied (at least for me).
>
> Emily
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Re: Pasting WKT into UDig

by Emily Gouge :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jody,

Thanks for applying this fix.  It has solved my issues.

I'm trying to figure out Jesse's cut and paste implementation but I
can't figure out what his idea was.  It looks to me like it is a part of
the dnd functionality however I can't figure out how he intended to do
it.  Right now it treats the pasted WKT features as URL and tries to
find an appropriate service.  Do you have any hints or ideas for me -
I'd love to have it working as he originally intended.

Thanks,
Emily

Jody Garnett wrote:

> Hi Emily - I will put GEOT-2766 on the road map for today's geotools
> release candidate.
>
> Do you want to find out where Jesse had WKT cut and paste? There is
> still a preference page for it - and update it with your code (or kill
> it as incomplete and add your code to core).
>
> Jody
>
> On Fri, Oct 9, 2009 at 4:05 AM, Emily Gouge <egouge@...> wrote:
>> I keep coming across the need to paste WKT into uDig; however when I
>> searched Google for doing this all I found was this:
>> http://lists.refractions.net/pipermail/udig-users/2008-April/000135.html
>>
>> Which says that Jesse had to disable whatever pasting he had working. I'm
>> not sure what cool implementation Jesse had in mind (I'm sure it was much
>> better than what I've done), but I really wanted this functionality so I
>> implemented a plug-in to allow me to paste WKT into uDig.
>>
>> This plug-in contains two operations, one for pasting WKT into a map (this
>> creates a new layer and adds the features to the map) and another for
>> pasting WKT into an existing layer.  I haven't throughly tested either of
>> these with different projections and different geometry types so errors are
>> likely to occur if you try something to crazy.  If anybody else wants to use
>> this plug-in it is in svn:
>> http://svn.refractions.net/udig/udig/community/emily/net.refractions.wkt/
>> (You right click on the layer/map and select 'Operations -> Paste Well Knwon
>> Text').
>>
>> However this plug-in will have issues rendering the pasted features until
>> this geotools patch has been applied.  You can still use it but you have to
>> manually "commit" after the paste to see the features properly.
>> http://jira.codehaus.org/browse/GEOT-2766
>>
>> In fact, I discovered that all uDig editing has rendering issues unless this
>> patch is applied (at least for me).
>>
>> Emily
>> _______________________________________________
>> User-friendly Desktop Internet GIS (uDig)
>> http://udig.refractions.net
>> http://lists.refractions.net/mailman/listinfo/udig-devel
>>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Re: Pasting WKT into UDig

by Jody Garnett-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I do not have any quick suggestions; the DnD code was cleaned up since  
Jesse tried having the WKT (or GML) DnD feature content.

You could try looking for where the preference page setting is used;  
if it is not used I think Jesse's work is lost and never made it off  
his computer.

Jody


On 10/10/2009, at 9:46 AM, Emily Gouge wrote:

> Hi Jody,
>
> Thanks for applying this fix.  It has solved my issues.
>
> I'm trying to figure out Jesse's cut and paste implementation but I  
> can't figure out what his idea was.  It looks to me like it is a  
> part of the dnd functionality however I can't figure out how he  
> intended to do it.  Right now it treats the pasted WKT features as  
> URL and tries to find an appropriate service.  Do you have any hints  
> or ideas for me - I'd love to have it working as he originally  
> intended.
>
> Thanks,
> Emily
>
> Jody Garnett wrote:
>> Hi Emily - I will put GEOT-2766 on the road map for today's geotools
>> release candidate.
>> Do you want to find out where Jesse had WKT cut and paste? There is
>> still a preference page for it - and update it with your code (or  
>> kill
>> it as incomplete and add your code to core).
>> Jody
>> On Fri, Oct 9, 2009 at 4:05 AM, Emily Gouge  
>> <egouge@...> wrote:
>>> I keep coming across the need to paste WKT into uDig; however when I
>>> searched Google for doing this all I found was this:
>>> http://lists.refractions.net/pipermail/udig-users/2008-April/000135.html
>>>
>>> Which says that Jesse had to disable whatever pasting he had  
>>> working. I'm
>>> not sure what cool implementation Jesse had in mind (I'm sure it  
>>> was much
>>> better than what I've done), but I really wanted this  
>>> functionality so I
>>> implemented a plug-in to allow me to paste WKT into uDig.
>>>
>>> This plug-in contains two operations, one for pasting WKT into a  
>>> map (this
>>> creates a new layer and adds the features to the map) and another  
>>> for
>>> pasting WKT into an existing layer.  I haven't throughly tested  
>>> either of
>>> these with different projections and different geometry types so  
>>> errors are
>>> likely to occur if you try something to crazy.  If anybody else  
>>> wants to use
>>> this plug-in it is in svn:
>>> http://svn.refractions.net/udig/udig/community/emily/net.refractions.wkt/
>>> (You right click on the layer/map and select 'Operations -> Paste  
>>> Well Knwon
>>> Text').
>>>
>>> However this plug-in will have issues rendering the pasted  
>>> features until
>>> this geotools patch has been applied.  You can still use it but  
>>> you have to
>>> manually "commit" after the paste to see the features properly.
>>> http://jira.codehaus.org/browse/GEOT-2766
>>>
>>> In fact, I discovered that all uDig editing has rendering issues  
>>> unless this
>>> patch is applied (at least for me).
>>>
>>> Emily
>>> _______________________________________________
>>> User-friendly Desktop Internet GIS (uDig)
>>> http://udig.refractions.net
>>> http://lists.refractions.net/mailman/listinfo/udig-devel
>>>
>> _______________________________________________
>> User-friendly Desktop Internet GIS (uDig)
>> http://udig.refractions.net
>> http://lists.refractions.net/mailman/listinfo/udig-devel
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Re: Pasting WKT into UDig

by Andrea Antonello-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Emily,
this thread never went on.
I just wanted to know if it is possible to do WKT pasting in uDig
trunk at that point.

Ciao
Andrea



On Fri, Oct 9, 2009 at 11:46 PM, Emily Gouge <egouge@...> wrote:

> Hi Jody,
>
> Thanks for applying this fix.  It has solved my issues.
>
> I'm trying to figure out Jesse's cut and paste implementation but I can't
> figure out what his idea was.  It looks to me like it is a part of the dnd
> functionality however I can't figure out how he intended to do it.  Right
> now it treats the pasted WKT features as URL and tries to find an
> appropriate service.  Do you have any hints or ideas for me - I'd love to
> have it working as he originally intended.
>
> Thanks,
> Emily
>
> Jody Garnett wrote:
>>
>> Hi Emily - I will put GEOT-2766 on the road map for today's geotools
>> release candidate.
>>
>> Do you want to find out where Jesse had WKT cut and paste? There is
>> still a preference page for it - and update it with your code (or kill
>> it as incomplete and add your code to core).
>>
>> Jody
>>
>> On Fri, Oct 9, 2009 at 4:05 AM, Emily Gouge <egouge@...>
>> wrote:
>>>
>>> I keep coming across the need to paste WKT into uDig; however when I
>>> searched Google for doing this all I found was this:
>>> http://lists.refractions.net/pipermail/udig-users/2008-April/000135.html
>>>
>>> Which says that Jesse had to disable whatever pasting he had working. I'm
>>> not sure what cool implementation Jesse had in mind (I'm sure it was much
>>> better than what I've done), but I really wanted this functionality so I
>>> implemented a plug-in to allow me to paste WKT into uDig.
>>>
>>> This plug-in contains two operations, one for pasting WKT into a map
>>> (this
>>> creates a new layer and adds the features to the map) and another for
>>> pasting WKT into an existing layer.  I haven't throughly tested either of
>>> these with different projections and different geometry types so errors
>>> are
>>> likely to occur if you try something to crazy.  If anybody else wants to
>>> use
>>> this plug-in it is in svn:
>>> http://svn.refractions.net/udig/udig/community/emily/net.refractions.wkt/
>>> (You right click on the layer/map and select 'Operations -> Paste Well
>>> Knwon
>>> Text').
>>>
>>> However this plug-in will have issues rendering the pasted features until
>>> this geotools patch has been applied.  You can still use it but you have
>>> to
>>> manually "commit" after the paste to see the features properly.
>>> http://jira.codehaus.org/browse/GEOT-2766
>>>
>>> In fact, I discovered that all uDig editing has rendering issues unless
>>> this
>>> patch is applied (at least for me).
>>>
>>> Emily
>>> _______________________________________________
>>> User-friendly Desktop Internet GIS (uDig)
>>> http://udig.refractions.net
>>> http://lists.refractions.net/mailman/listinfo/udig-devel
>>>
>> _______________________________________________
>> User-friendly Desktop Internet GIS (uDig)
>> http://udig.refractions.net
>> http://lists.refractions.net/mailman/listinfo/udig-devel
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Re: Pasting WKT into UDig

by Emily Gouge :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Andrea,

No I have not integrated anything into trunk.  The plugin that I wrote
for my own purposes is still available here:
http://svn.refractions.net/udig/udig/community/emily/net.refractions.wkt/

I didn't want to integrate in into trunk because I don't think it's the
best way to do it.  Ideally it would be nice to use the copy/paste
features of the udig application.  I didn't know how to do that and
didn't have time to pursue it further :(

Emily

andrea antonello wrote:

> Hi Emily,
> this thread never went on.
> I just wanted to know if it is possible to do WKT pasting in uDig
> trunk at that point.
>
> Ciao
> Andrea
>
>
>
> On Fri, Oct 9, 2009 at 11:46 PM, Emily Gouge <egouge@...> wrote:
>> Hi Jody,
>>
>> Thanks for applying this fix.  It has solved my issues.
>>
>> I'm trying to figure out Jesse's cut and paste implementation but I can't
>> figure out what his idea was.  It looks to me like it is a part of the dnd
>> functionality however I can't figure out how he intended to do it.  Right
>> now it treats the pasted WKT features as URL and tries to find an
>> appropriate service.  Do you have any hints or ideas for me - I'd love to
>> have it working as he originally intended.
>>
>> Thanks,
>> Emily
>>
>> Jody Garnett wrote:
>>> Hi Emily - I will put GEOT-2766 on the road map for today's geotools
>>> release candidate.
>>>
>>> Do you want to find out where Jesse had WKT cut and paste? There is
>>> still a preference page for it - and update it with your code (or kill
>>> it as incomplete and add your code to core).
>>>
>>> Jody
>>>
>>> On Fri, Oct 9, 2009 at 4:05 AM, Emily Gouge <egouge@...>
>>> wrote:
>>>> I keep coming across the need to paste WKT into uDig; however when I
>>>> searched Google for doing this all I found was this:
>>>> http://lists.refractions.net/pipermail/udig-users/2008-April/000135.html
>>>>
>>>> Which says that Jesse had to disable whatever pasting he had working. I'm
>>>> not sure what cool implementation Jesse had in mind (I'm sure it was much
>>>> better than what I've done), but I really wanted this functionality so I
>>>> implemented a plug-in to allow me to paste WKT into uDig.
>>>>
>>>> This plug-in contains two operations, one for pasting WKT into a map
>>>> (this
>>>> creates a new layer and adds the features to the map) and another for
>>>> pasting WKT into an existing layer.  I haven't throughly tested either of
>>>> these with different projections and different geometry types so errors
>>>> are
>>>> likely to occur if you try something to crazy.  If anybody else wants to
>>>> use
>>>> this plug-in it is in svn:
>>>> http://svn.refractions.net/udig/udig/community/emily/net.refractions.wkt/
>>>> (You right click on the layer/map and select 'Operations -> Paste Well
>>>> Knwon
>>>> Text').
>>>>
>>>> However this plug-in will have issues rendering the pasted features until
>>>> this geotools patch has been applied.  You can still use it but you have
>>>> to
>>>> manually "commit" after the paste to see the features properly.
>>>> http://jira.codehaus.org/browse/GEOT-2766
>>>>
>>>> In fact, I discovered that all uDig editing has rendering issues unless
>>>> this
>>>> patch is applied (at least for me).
>>>>
>>>> Emily
>>>> _______________________________________________
>>>> User-friendly Desktop Internet GIS (uDig)
>>>> http://udig.refractions.net
>>>> http://lists.refractions.net/mailman/listinfo/udig-devel
>>>>
>>> _______________________________________________
>>> User-friendly Desktop Internet GIS (uDig)
>>> http://udig.refractions.net
>>> http://lists.refractions.net/mailman/listinfo/udig-devel
>> _______________________________________________
>> User-friendly Desktop Internet GIS (uDig)
>> http://udig.refractions.net
>> http://lists.refractions.net/mailman/listinfo/udig-devel
>>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel