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: [email protected] To: [email protected] 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 [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
