Thanks Jody,
 
The gt-process-feature model looks particularly interesting, I am very
interested in helping out. I can create the JIRA ticket and attack some
of my thoughts, we can refine the idea a little more there. 
 
Thanks,
Levi
 
________________________________

From: Jody Garnett [mailto:[email protected]] 
Sent: Tuesday, 9 August 2011 3:28 PM
To: Levi Putna
Cc: GeoTools Developers list
Subject: [Geotools-devel] Dissolve Process



        Hi Levi: 

        Here is the email I was referring to with respect to
"dissolve"...

        Andrea wrote::
        
        

                > Dear all,
                
                >
                
                > I created a feature collection adding features from
different layers
                
                > (~append). By the way, I would like now to process a
geometry UNION
                
                > according to one attribute which actually can be
duplicated after creating
                
                > the feature collection. Do you know if it is possible?
using JTS? a Process?
                
                >
                
                > I thank you in advance for your advice/ giving to me
orientations,
                

                We don't have such process, in the past I've seen this
being called "dissolve".
                Should not be too hard to code if your data source can
do ordering:
                sort by the attribute you want to dissolve on, collect
the geometries until
                the attribute changes, union using JTS, generate the
output feature
                with the resulting geometry and the disolving attribute
as the sole
                other attribute.
                
                
                In case no sorting is supported, well, you have to
choose between
                loading everything in memory and doing the sorting
there,
                or load a feature and make a separate query for all the
ones that
                might touch it, hopefully few, merge, query again for
nearby features
                (unions might result in a long chain) until you cannot
find anymore
                anything else to disolve.
                And then keep the feature ids of everything that has
already been
                unioned to avoid processing it twice.

        
        
        The unsupported gt-process-feature model is the correct home for
this if you want to work on it; although I have not created a JIRA issue
or anything.
        
        
        Jody



+----------------------------------------------------------------+
Think B4U Print
1 ream of paper = 6% of a tree and 5.4kg CO2 in the atmosphere
3 sheets of A4 paper = 1 litre of water
+----------------------------------------------------------------+

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to