For "part", perhaps substitute sequence_id, so the points can be sorted
into the original order?

Or this might have been what was meant by Michael anyway :-)

Cheers,

  Brent Wood

Brent Wood
DBA/GIS consultant
NIWA, Wellington
New Zealand
>>> Michael Michaud <[EMAIL PROTECTED]> 10/23/08 10:21 AM >>>
Hi,

Just a thought for a "convert geometry to points" v2.0

If you add three attributes to each point : point, line, and part
indices
you'll be able to create a plugin to convert the points back to the 
original geometries

I can't describe a particular use case but I have already been asked for

that (may be useful if you have to process the data out of jump to do 
special data transformation)

Michaël

Stefan Steiniger a écrit :
> well.. I do it now :)
> if Michael sends the code already
>
> stefan
>
> Sunburned Surveyor wrote:
>> I'll code this plug-in tomorrow at lunch and have Peppe test it,
>> unless someone wants to beat me to it tonight.
>>
>> The Sunburned Surveyor
>>
>> On Wed, Oct 22, 2008 at 12:31 PM, Michael Michaud
>> <[EMAIL PROTECTED]> wrote:
>>> Hi,
>>>
>>> I agree with Martin, extracting points from geometries is a common
need
>>> which is worth doing (I already wrote the script several times, 
>>> never took
>>> the time to code a plugin).
>>>
>>> Here is a short script which should do the job :
>>>
>>> points = new ArrayList();
>>> for (f :
>>>
wc.layerNamePanel.selectedLayers[0].featureCollectionWrapper.features) 
>>> {
>>>    for (c : f.geometry.coordinates) {
>>>       points.add(f.geometry.factory.createPoint(c));
>>>    }
>>> }
>>> wc.layerManager.addLayer("NewCategory",
>>>
"ExtractedPoints",com.vividsolutions.jump.feature.FeatureDatasetFactory.createFromGeometry(points));

>>>
>>>
>>> Michaël
>>>
>>> Sunburned Surveyor a écrit :
>>>
>>> Peppe,
>>> If you can't code this for yourself I can probably take care of it
on
>>> my lunch break tomorrow. Just let me know.
>>> The Sunburned Surveyor
>>> On Wed, Oct 22, 2008 at 11:26 AM, Martin Davis 
>>> <[EMAIL PROTECTED]>
>>> wrote:
>>>
>>>
>>> Do you really need one, over and above that Peppe clearly has a need

>>> for
>>> this?
>>> This seems like such a simple extension to ExtractSegements that
it's
>>> probably worth doing "just in case"...
>>> Larry Becker wrote:
>>>
>>>
>>> So, does OJ need a new function like Extract Segments that would 
>>> Extract
>>> Points?  What would be the use case?
>>> Larry
>>> On Wed, Oct 22, 2008 at 11:59 AM, Stefan Steiniger
<[EMAIL PROTECTED]
>>> <mailto:[EMAIL PROTECTED]>> wrote:
>>>    what about Edgars geometry conversion Plugin? does it preserve
>>>    Attributes?
>>>    stefan
>>>    Giuseppe Aruta schrieb:
>>>        Hi,
>>>        today I needed to extract the vertices from a line layer.
>>>        Basically I wanted to create a new point layer: the vertice
of
>>>        the lines with attributes derived from the original lines.
>>>        Well, I probabily have to read back the help.. but I did not
>>>        find a function like this. A suggestion?
>>>        Thanks in advance
>>>        Peppe
>>>             Scopri il blog di Yahoo! Mail:
>>>        Trucchi, novità e scrivi la tua opinione.
>>>        http://www.ymailblogit.com/blog
>>>        _______________________________________________
>>>        jump-users mailing list
>>>        [email protected]
>>>        <mailto:[email protected]>
>>>        http://lists.refractions.net/mailman/listinfo/jump-users
>>>    _______________________________________________
>>>    jump-users mailing list
>>>    [email protected]
>>>    <mailto:[email protected]>
>>>    http://lists.refractions.net/mailman/listinfo/jump-users
>>> -- 
>>> http://amusingprogrammer.blogspot.com/
>>>
------------------------------------------------------------------------

>>>
>>> _______________________________________________
>>> jump-users mailing list
>>> [EMAIL PROTECTED]>>> Senior Technical Architect
>>> Refractions Research, Inc.
>>> (250) 383-3022
>>> _______________________________________________
>>> jump-users mailing list
>>> [email protected]
>>> http://lists.refractions.net/mailman/listinfo/jump-users
>>>
>>>
>>> _______________________________________________
>>> jump-users mailing list
>>> [email protected]
>>> http://lists.refractions.net/mailman/listinfo/jump-users
>>>
>>>
>>> _______________________________________________
>>> jump-users mailing list
>>> [email protected]
>>> http://lists.refractions.net/mailman/listinfo/jump-users
>>>
>>>
>> _______________________________________________
>> jump-users mailing list
>> [email protected]
>> http://lists.refractions.net/mailman/listinfo/jump-users
>>
>>
> _______________________________________________
> jump-users mailing list
> [email protected]
> http://lists.refractions.net/mailman/listinfo/jump-users
>
>

_______________________________________________
jump-users mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jump-users

NIWA is the trading name of the National Institute of Water &
Atmospheric Research Ltd.
_______________________________________________
jump-users mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jump-users

Reply via email to