Tag Info

New answers tagged

1

Here is an example of the syntax for DWITHIN http://demo.opengeo.org/geoserver/wfs?request=getfeature&version=1.0.0&service=wfs&typename=topp:states&outputformat=json&cql_filter=DWITHIN(the_geom,Point(-88 38),0.1,kilometers) Note that DWITHIN takes three parameters: reference geometry, distance, and distance unit. However, GeoServer ...


0

Did I understood you right, that you basically want to request two layers in one Request? If so then just use "typeName" instead of "typeNames". See this request of two layers at the same time ( bvv:gmd_ex and bvv:lkr_ex ): ...


0

Since OL3 does not have filter I used CQL filter. I exchanged FILTER : filter with CQL_FILTER : filter in the parameterlist. See http://docs.geoserver.org/stable/en/user/tutorials/cql/cql_tutorial.html The differense is that CQL Filter has to be build in SQL syntax before added to the parameterlist. Ex: var filter_list = []; var dateFilterString = ...


0

do you use the OpenLayers.js that was delivered with the geoserver installation or a different one? If you use the local one try this one instead: http://dev.openlayers.org/releases/OpenLayers-2.13.1/OpenLayers.js If that's not the problem check if the geoserver delivers the WFS correctly (Geoserver Layer Preview --> Dropdown --> WFS --> GML


0

just correct your featuretype from "medford:parks" to "parks" var wfs = new OpenLayers.Layer.Vector( "Stavros Features", { strategies: [new OpenLayers.Strategy.Fixed()] , projection: new OpenLayers.Projection("EPSG:4326") , protocol: new OpenLayers.Protocol.WFS({ ...


0

If your problem stil exists you could test with firebug if your features are added to your layer after the wfs-response came back: wfsSuscribers.events.register('featuresadded', wfsSuscribers, function () { console.log("Number of Features:" + wfsSuscribers.features.length); map.zoomToExtent(wfsSuscribers.getDataExtent()); }); ...


3

To learn more about the Rest-Module of geoserver i can recommend you this website: http://geoserver.geo-solutions.it/edu/en/rest/using_rest.html but I guess that you just want to load a WFS-Layer into your Leaflet-map, so you can have a look at this post: http://blog.georepublic.info/2012/leaflet-example-with-wfs-t/ Here the Requests for the WFS-layer are ...


1

I managed to fix this after some sleep and coffee. Changes below: Changed the strategy to BBOX - I don't think this was preventing the map rendering but I think this setting is preferable as it prevents the whole data set loading. Changed the version from 1.0.0 to 1.1.0 (version 1.0.0 does not automatically reproject different SRS) Changed srsName ...


0

WFS version 1.0.0 supports officially only the default SRS/CRS both for input and output. However, many WFS server brands have backported the srsName parameter that came with WFS 1.1.0 at least for output. With some WFS servers srsName may work also for defining the input geometry but let's assume that it is not possible and concentrate on WFS 1.1.0. As far ...


0

My understanding is that you must make a request in the native CRS of the dataset you're querying. Here's another StackExchange question which is similar to yours: WFS getfeature request with diffent SRS I use Proj4js to reproject my query coordinates into my native projection, and use the SrsName option to specify the output coordinates. Here is an ...


0

If the services being returned are all from ArcGIS Server (esri), why not just build a web application (JavaScript API?) to bring all them together. I don't see the need or value gained by ingesting them into your own server and re hosting them that way. I'd generally stay away from cascading services. What happens if one of the services you've ingested ...


2

If you have moved on to the netCDF Java API it might be interesting for you to try Python as well. I have worked with Java for a while but find Python for number crunching and data analysis more convenient. Geoserver should be able to serve your postGIS data as NetCDF. You can then use Python or Java to generate a Netcdf file that contains the difference in ...



Top 50 recent answers are included