<div dir="ltr">Hey Steven,<div><br></div><div>Are you trying to do this via a spatially enabled database? In PostGIS, the dissolve syntax looks like this:</div><div><br></div><div>"SELECT dissolve_field, ST_UNION(geometry) FROM table GROUP BY dissolve_field;"</div><div><br></div><div>Roger</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 6, 2015 at 4:13 PM, Steven Lutz <span dir="ltr"><<a href="mailto:steven@ruggedrocksoffroad.com" target="_blank">steven@ruggedrocksoffroad.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
I've found some examples of how to dissolve features in a polygon
using gdal but I'm not familiar with how to implement them. <br>
here is an example of what I've found, but I'm having trouble
modifying it<br>
<br>
this is what I've come up with:<br>
<pre style="margin:0px 0px 10px;padding:5px;border:0px;font-size:12px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;word-wrap:normal;color:rgb(51,51,51);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18px;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(238,238,238)"><code style="margin:0px;padding:0px;border:0px;font-size:12px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;color:rgb(34,34,34);white-space:inherit;background-color:rgb(238,238,238)">ogr2ogr output.shp
input.
shp -dialect sqlite -sql
"SELECT ST_Union(geometry), dissolve_field FROM input GROUP BY dissolve_field"</code></pre>
<br>
it looks to me that it is trying to do this operation based on
specific attribute entries but I'm looking to ignore the attribute
entrie and make all features into one. <br>
This is what I've tried:<br>
<span style="color:rgb(68,68,68);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:17px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(250,250,250)">the
32768.shp has an attribute named BLOCK and it's still not
working.. any ideas? >ogr2ogr -f "ESRI Shapefile" output.shp
32768.shp -dialect sqlite -sql "select ST_union(block) from
'32768'" Warning 6: Normalized/laundered field name:
'ST_union(block)' to 'ST_union(b</span><br>
<br>
I am confused as to what I should be putting in the parenthasis of
ST_Union()<br>
<br>
Please advise.<br>
Thank you<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<div>-- <br>
<font size="2">
Steven Lutz<br>
President<br>
Rugged Rocks, LLC <br>
Sales & Support: <a href="tel:%28909%29547-4651" value="+19095474651" target="_blank">(909)547-4651</a><br>
<a href="http://ruggedrocks.com" target="_blank">Nissan 4x4 Parts</a> / <a href="http://ruggedroutes.com" target="_blank">Off Road GPS Units & Maps</a>
</font></div>
</font></span></div>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br></div>