Tag Info

New answers tagged

0

I put this code but I get error var vector = new ol.layer.Vector({ source: new ol.source.Vector({ parser: new ol.parser.GeoJSON(), url: '/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=postgis:ind_fiber_ln&outputFormat=json' }), style: new ...


0

For remote WMS sources the procedure is the same, but you need to make sure you have ext override ajax from GeoExt included since the proxy needs to be used (http://geoext.org/lib/overrides/override-ext-ajax.html). If you know which WMS servers to use beforehand, you could also use a ProxyPass on your Apache webserver. There is no real support for WFS ...


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 ...


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

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 ...


0

If you are referencing a file, no matter how it is indexed or what format it is in, it will still be downloading and including features not in your view port. What is needed in this case is to use map server software. A tile server was suggested above but a tile server usually sits between a map server and the user. Try implementing something like mapserver, ...


0

WFS is not so suitable for on-the-fly visualisation - it does not handle scale/zoom. To improve client-side vector display performance, it should be ensured that (1) only the features in the view are loaded and rendered and (2) the features displayed are properly simplified and aggregated according to each zoom level. To solve 1, spatial indexing is a ...


0

I would initially look at optimizing the layer at the server level. Here are some options to consider (if your data is coming from GeoServer/PostGIS table): Use "Per-Request Feature Limit" option (in GeoServer web) to limit number of features that will draw Define a spatial index on the table (PostGIS table)


1

I guess you added in your classpath gt-epsg-postgres instead of gt-epsg-hsql? Delete gt-epsg-postgresql-11.0.jar from your classpath and add gt-epsg-hsql-11.0.jar into it. EDIT(Inspired by comments): For making the answer more understandable for others: GeoTools was set to store the EPSG projection database into PostgreSQL database. The default is to use a ...


0

DataStoreFinder is depricated in new versions. And the tutorial you mentioned is an old tutorial. You can code in the following manner: String getCapabilities = "http://localhost:8081/geoserver/wfs?REQUEST=GetCapabilities&version=1.0.0"; Map connectionParameters = new HashMap(); connectionParameters.put("WFSDataStoreFactory:GET_CAPABILITIES_URL", ...


0

It's actually a bug in GeoServer. GeoServer in it's WFS implementation specifies the order of coordinates for different versions and projection definitions (link) but GeoJSON states specifically that the order is always the same (x,y,z or lon,lat,alt). See the spec.


0

Esri can recieve a json request with a perimeter like so http://mapservices/arcgis/rest/services/Mypoints/MapServer/0/query?geometry=0,0,60,20&geometryType=esriGeometryEnvelope&outFields=*&f=json 0,0,60,20 is the 4 points in the parimeter To send json in your app, call like so: var queryURL = ...



Top 50 recent answers are included