Tag Info

Hot answers tagged

2

Not as WFS level as far as I know. If you use a database backend and create an unique constraint for the attribute it naturally guarantees that data that are read through WFS have unique values in this field. For inserts to be done with WFS-T the result of having unique constraint is that if you try to insert a feature with duplicate attribute value, the ...


2

You have missed out two parts from your code. To add the GeoJSON layer, you have to call the addTo() method within the L.geoJson object. var geojsonLayer = new L.geoJson().addTo(map); The second part is the most vital. Even though you have defined a custom projection with L.Proj.CRS, your map will be in the Leaflet-native WGS 84 projection (EPSG:4326). ...


1

Your problem may come from using WFS 1.1.0 with a coordinate system that has a northing-easting axis order. You can try these solutions: Use WFS 1.0.0 version. You can test that 1.1.0 sends coordinates as northing-easting ...


1

The fix is defining a filterType parameter in the OpenLayers.Control.GetFeature constructor: new OpenLayers.Control.GetFeature({ filterType: OpenLayers.Filter.Spatial.INTERSECTS, ... The default filterType is OpenLayers.Filter.Spatial.BBOX that results correctly in an uncertain Filter() query in SQL Server, when a spatial index is set. If ...



Only top voted, non community-wiki answers of a minimum length are eligible