[mapserver-users] merging shapefiles

Edward Mac Gillavry emacgillavry at hotmail.com
Thu Jul 7 06:01:57 EDT 2011


You may want to investigate the ST_Intersection functionality in PostGIS. This allows you to create a new geometry from the intersection of the EEA regions and the countries.

http://postgis.refractions.net/docs/ST_Intersection.html

Regards,

Edward


Date: Thu, 7 Jul 2011 11:44:29 +0200
From: jcigar at ulb.ac.be
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] merging shapefiles

Hello,
 
I have an (OpenLayers) map with two layers:
 
- Country (as a base layer)
- EEA
 
You can see the output here:
http://home.bebif.be/~jcigar/map.jpg
 
The "Country" layer contains just the borders of the countries, and the 
"EEA" layer (the colorized areas) contains environmental areas.
 
What I'd like to do is to select a polygon within a country for a 
specific zone. For example I would like to "select part of Belgium with 
the Atlantic EEA (in blue)", which is the north of Belgium. I also need 
to save some information in the database for the polygon (I'm using 
Mapserver/PostGIS).
 
What would be the best way to do this? Would you "merge" the two layers 
into one (be creating new polygons)?
 
thanks,
Julien
 
-- 
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110707/5a70395b/attachment-0001.html


More information about the mapserver-users mailing list