<div dir="ltr"><div><div>Thanks Sandro for the quick reply.<br><br></div>I understand how to solve this using a database.<br><br>For now we're going to look closer to our own function and fix the issues were facing.<br>

<br></div>Thanks,<br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><br>
<br>
Paul<br>
<br>
<div style="font-size:13.3px;font-family:Verdana,Arial,Helvetica,sans-serif"><div style="border:1px solid #e5e5e5;background-color:#f8f8f8;padding:0.8em 0.8em 0.3em 0.8em"><div style="margin:0 0 8px 0"><p style="margin:0">

<span><b><img style="float:left;margin-left:5px;margin-right:5px" src="http://www.bontepaarden.nl/bontepaarden/images/newButton.png" alt="" height="120" width="160">Paul Meems </b><br><span>Release manager, configuration manager</span><br>

<span>and forum moderator of MapWindow GIS.</span><br><a href="http://www.mapwindow.org/" target="_blank"><span>www.mapwindow.org</span></a><br><br><span>Owner of MapWindow.nl - Support for</span><br><span>Dutch speaking users.</span><br>

<a href="http://www.mapwindow.nl/" target="_blank"><span>www.mapwindow.nl</span></a><br></span></p>
<p style="margin:0px"><b><br></b></p><p style="margin:0px"><b>Join us at the <a href="http://geogis.detek.unideb.hu/TKonferencia/2014/" target="_blank">MapWindow GIS Conference 2014</a>, in Debrecen Hungary<br></b></p></div>

</div><img src="http://p1.wisestamp.com/pixel.png?p=mozilla&v=3.9.12&t=1322134056890&u=482737fd0c4ca423" height="1" width="1"></div>
</div></div>
<br><br><div class="gmail_quote">2014-03-03 11:31 GMT+01:00 Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="">On Mon, Mar 03, 2014 at 11:15:52AM +0100, Paul Meems wrote:<br>
> Hi List,<br>
><br>
> We use with MapWinGIS (C++ ActiveX control) GDAL with GEOS.<br>
><br>
> We currently have a custom AggregateShapefile method which is not using<br>
> GEOS.<br>
> In this method we aggregate (union) all shapes based on an attribute. This<br>
> method is not working 100% and I'm wondering if GEOS has something similar.<br>
<br>
</div>GEOS has no support for "attributes".<br>
It'll need to be built outside.<br>
<div class=""><br>
> For example I have the counties shapefile of the USA. I want to aggregate<br>
> all counties that are in the same state.<br>
> I know of the Union method in GEOS, but that doesn't takes into account the<br>
> attribute and in this example will result in a shapefile with 1 shape<br>
> instead of a shape for each state.<br>
><br>
> Any advice will be much appreciated.<br>
<br>
</div>PostGIS would sound like an appropriate tool for what you're trying to do.<br>
<br>
--strk;<br>
_______________________________________________<br>
geos-devel mailing list<br>
<a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br>
</blockquote></div><br></div>