Re: [OSGeo-Discuss] Command line tool for dissolving polygon boundaries

2011-03-02 Thread Brent Fraser
Tyler, Hopefully your expectations aren't too high. Here it is... Best Regards, Brent Fraser On 3/2/2011 11:34 AM, Tyler Mitchell wrote: Brent, I'm sure a few of us are interested - sounds good! :) Tyler On 2011-03-02, at 8:28 AM, Dan Putler wrote: Hi Brent, I can compile C++, and I

Re: [OSGeo-Discuss] Command line tool for dissolving polygon boundaries

2011-03-02 Thread Tyler Mitchell
Brent, I'm sure a few of us are interested - sounds good! :) Tyler On 2011-03-02, at 8:28 AM, Dan Putler wrote: > Hi Brent, > > I can compile C++, and I'm interested. Is it possible to access the code? > > Dan > > On 03/02/2011 07:04 AM, Brent Fraser wrote: >> Dan, >> >>I've got some C

Re: [OSGeo-Discuss] Command line tool for dissolving polygon boundaries

2011-03-02 Thread Dan Putler
Hi Brent, I can compile C++, and I'm interested. Is it possible to access the code? Dan On 03/02/2011 07:04 AM, Brent Fraser wrote: Dan, I've got some C++ code that uses GDAL (with a GEOS Union call) to dissolve polygons based on an attribute. If you can compile C++ code on Linux, you're

Re: [OSGeo-Discuss] Command line tool for dissolving polygon boundaries

2011-03-02 Thread Brent Fraser
Dan, I've got some C++ code that uses GDAL (with a GEOS Union call) to dissolve polygons based on an attribute. If you can compile C++ code on Linux, you're welcome to it. Best Regards, Brent Fraser On 3/2/2011 12:31 AM, Dan Putler wrote: Hi Paolo, Your point is well taken. What seem t

Re: [OSGeo-Discuss] Command line tool for dissolving polygon boundaries

2011-03-01 Thread Paolo Cavallini
Il giorno mar, 01/03/2011 alle 23.31 -0800, Dan Putler ha scritto: > Thanks for your advise. Glad you liked it. I must add, another advantage is that writing your script is most easily done through QGIS, where you can test each individual command, playing with options and parameters, and simply c

Re: [OSGeo-Discuss] Command line tool for dissolving polygon boundaries

2011-03-01 Thread Dan Putler
Hi Paolo, Your point is well taken. What seem to be the best solutions involve reading in a shapefile and then writing out a new one. I was starting to lean toward either PostGIS or Spatialite by using a SQL script sourced within the relevant cli shell since my guess was that they would scale

Re: [OSGeo-Discuss] Command line tool for dissolving polygon boundaries

2011-03-01 Thread Paolo Cavallini
Il giorno mar, 01/03/2011 alle 23.25 +0100, Paolo Corti ha scritto: > Your only option here could be to use GRASS, but as far as I know you > need to import your shapefile to the GRASS database, use a GRASS > command (v.reclass [0]) and export back to shapefile the result, so it > is not very dire

Re: [OSGeo-Discuss] Command line tool for dissolving polygon boundaries

2011-03-01 Thread Dan Putler
Hi Paolo, Simon, and Noli, Thanks for this. It both answered my question as to whether there was an existing command line tool I had just overlooked (the answer is "no"), and what were my choices for something that could fairly easily be implemented if there wasn't an existing tool (the answer

Re: [OSGeo-Discuss] Command line tool for dissolving polygon boundaries

2011-03-01 Thread Noli Sicad
Hi Simon, > That sounds great. > > I thought I remembered having read somewhere that Spatialite could > accept commands in this way but could not find a link to the webpage > when putting together my reply. > > Can you provide a step by step outline of the code necessary to do this? It is in Spat

Re: [OSGeo-Discuss] Command line tool for dissolving polygon boundaries

2011-03-01 Thread Simon Cropper
On 02/03/11 12:41, Noli Sicad wrote: Dan, I am using Spatialite CLI for to this job. 1. Import shapefile into Spatialite 2. Create CSV.file for the counties 3. Use Vitual table for counties.csv 4. Use ST_UNION to create a new table with dissolved boundaries 5. Dump the new spatialite table to S

Re: [OSGeo-Discuss] Command line tool for dissolving polygon boundaries

2011-03-01 Thread Noli Sicad
Dan, I am using Spatialite CLI for to this job. 1. Import shapefile into Spatialite 2. Create CSV.file for the counties 3. Use Vitual table for counties.csv 4. Use ST_UNION to create a new table with dissolved boundaries 5. Dump the new spatialite table to Shapefile file Noli On 3/2/11, Simon

Re: [OSGeo-Discuss] Command line tool for dissolving polygon boundaries

2011-03-01 Thread Simon Cropper
On 02/03/11 08:37, Dan Putler wrote: All, Is there a FOSS command line tool that runs under Linux for dissolving polygon boundaries based on a field in an attribute table that (ideally) works directly with shapefiles? There are a number of non-cli tools out there, but I'm working with all US cou

Re: [OSGeo-Discuss] Command line tool for dissolving polygon boundaries

2011-03-01 Thread Paolo Corti
> Is there a FOSS command line tool that runs under Linux for dissolving > polygon boundaries based on a field in an attribute table that (ideally) > works directly with shapefiles? There are a number of non-cli tools out > there, but I'm working with all US counties on a county by county basis, an

[OSGeo-Discuss] Command line tool for dissolving polygon boundaries

2011-03-01 Thread Dan Putler
All, Is there a FOSS command line tool that runs under Linux for dissolving polygon boundaries based on a field in an attribute table that (ideally) works directly with shapefiles? There are a number of non-cli tools out there, but I'm working with all US counties on a county by county basis,