[OpenLayers-Users] wfs

Piero Campa piero.campa at gmail.com
Fri Jul 23 06:16:58 EDT 2010


I can see
(http://www.skylinesoft.com/SkylineGlobe/Corporate/Products/TerraGateSFSServices.aspx)
that TerraGate SFS Manager provides WFS/WMS services, so it's just a matter
of getting the WFS URL (or WMS URL), and the name of the shapefile as it is
stored in TerraGate.

If you want to retrieve the shapefile as vector feature (and not raster),
you can try:

		var myshapeFile = new OpenLayers.Layer.Vector("Name", {
			styleMap: myStyleMap, // optional
			strategies: [wfsOpenLayersStrategy], // e.g. new
OpenLayers.Strategy.BBOX()
			filter: myFilter, // see
http://dev.openlayers.org/apidocs/files/OpenLayers/Filter-js.html
			protocol: new OpenLayers.Protocol.WFS({
				url: WFSURL,
				featureType: SHAPEFILE_NAME,
				featureNS: NAMESPACE_URI,
				srsName: "EPSG:900913", // your map projection (here is for Google Maps)
				version: "1.1.0" // : supports reprojection from ShapeFile SRS to OLmap
SRS
				})
		});

Usually you have less problems by getting the PNG raster of the shapefile,
but you hav less skills.
Have some trial, and be patient. :)
Piero
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/wfs-tp5328877p5329004.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list