Merging Regions of a shapefile

Brock Anderson banders at REFRACTIONS.NET
Mon Jan 16 16:29:05 EST 2006


Neil,

I can't say much about OpenEV, but you may be able to use one of the 
geometry constructors to group your region polygons together.  Perhaps 
the "collect" function would do it?

Docs here: http://postgis.refractions.net/docs/ch06.html#id2905042

Brock

Neil Saunders wrote:

>Hi Brock,
>
>Thanks for your reply; However I've tried using PostGIS but could't
>get the shapes to actually "merge" together. Ideally what I'd like to
>do is have a tool such as OpenEV in to which I could load my
>shapefile, select a given number of *adjacent* regions, and merge
>selected regions to a single region, if you catch my drift. I'm
>beginning to think that it may not be possible... :(
>
>Thanks once again for you input!
>
>Cheers,
>
>Neil
>
>On 1/16/06, Brock Anderson <banders at refractions.net> wrote:
>  
>
>>Neil,
>>
>>I tend to use Postgres/PostGIS for this kind of processing.
>>
>>For example:
>>
>>Load the data into postgres like this:
>>
>>   shp2pgsql <loader options here> england.shp england_table | psql
>>
>>Then dump it out again into several shapefiles. Use an SQL statement to
>>select the regions to include in each file:
>>
>>   pgsql2shp <dumper options here> england_table "select * where ..."
>>   pgsql2shp <dumper options here> england_table "select * where ..."
>>   pgsql2shp <dumper options here> england_table "select * where ..."
>>
>>Brock
>>
>>Neil Saunders wrote:
>>
>>    
>>
>>>Hi Folks,
>>>
>>>I've got a map of England as a shapefile, containing regions for each
>>>county. What I'd like to do is merge selected regions in to a larger
>>>region (E.g Devon, Somerset, Cornwall etc into "Westcountry").
>>>
>>>Does any one know a simple (Preferably GUI based) way of achieving this?
>>>
>>>Thanks in advance,
>>>
>>>Neil.
>>>
>>>
>>>      
>>>
>>    
>>



More information about the mapserver-users mailing list