Tag Info

New answers tagged

0

Old MapServer versions were not very good in making fully standard compliant WFS services. I am not sure if this case is an example of such or not but you could anyways to contact rijkswaterstaat and tell them that they run MapServer 5.7-dev which is rather old and that current versions (6.4, soon 7.0) are much better than their version from year 2011. ...


0

At OpenLayers Cookbook code examples (http://acanimal.github.io/Openlayers-Cookbook/) there is a working example, see "Chapter7 - Styling - Improving style using StyleMap and feature's attributes replacement". Create your style intent without using rules, really you are not using them because you are not setting any condition to filter. For example try ...


0

The problem is that the WFS provider of QGIS appends BBOX element to the main URL for unchached features request and if a filter exists it produces: msWFSGetFeature(): WFS server error. BBOX parameter and FILTER parameter are mutually exclusive in GetFeature. So to solve the problem the BBOX element should be included in the FILTER element to get a request ...


0

I've been trying against a Geoserver / Windows server 2003 installation, and it works. Doesn't work when it's a Geoserver / Centos Installation. With Udig WFS-T updates against a Geoserver / Centos are commited. Please also refer to: QGIS WFS Error - Could not commit changes to layer


0

I would have added this as a comment but since I don't have the reputation I thought I'd put it as an answer. I believe that both simplification and some form of spacial indexing are used in OpenLayers 3 to improve vector performance. It may be worth giving it a try if you are currently using OL2. Source ...


1

The loader should be defined with the callback function that is called when the response has been completely loaded. One way of doing this: loader: function(extent, resolution, projection) { var url = ...


2

This error happens when postgres is trying to apply a spatial index with a geometry having one srid, but the data has another. Are you using a sql view? If so, maybe you setup the wrong srid when creating the sql view? If instead it's a normal view, may it be there are geometries in different srids in it? Postgis has a function to check the srid of a ...


3

WMS isn't for this. WMS returns a map image, and won't provide you with the JSON you desire. What you want is WFS (Web Feature Service) which allows you to request and receive the raw data hosted by the service, including in JSON format. From this document - http://docs.geoserver.org/stable/en/user/services/wfs/reference.html - you'd want something like: ...


5

Check out the Geoserver REST API and the python wrapper gsconfig for the REST API.


1

Web Map Service (WMS): The Standard Web Map Service (WMS) provides a simple HTTP interface for requesting map images from one or more distributed servers on the Internet. A WMS request defines what the layer and the geographical area of ‚Äč‚Äčinterest to be processed. The response to the request is one or more images of the map (in JPEG, PNG, ...) that can be ...


1

Sounds like you want to create a layer dynamically via the REST-API as a SQL View. Another approach would be to create views in PostGis, update the store and publish the view as a layer. The first one does not clutter the database with views and your dynamic work is gathered in GeoServer. The REST-API use Basic Authentication so it is easier if you proxy ...


2

You need to have your users authenticate somehow in your application and store the PHP Session Id and some other identifier in the session. Assuming that your proxy is on the same Url (no CORS issues) the Session ID and identifier will be available to your Proxy Script. Simply check that the stored session Id from the Login matches the Session Id used by ...


3

More the concept than the exact solution: Solution 1: Use CORS. It's done to manage exchange so you can allow access to some resources only if they come from a particular website. It's by playing with server side header and also by changing on client side the Ajax calls to provide "right" headers it will works. Settings Cors can be done at PHP proxy ...


3

Your question is rather broad, but from what you say, the best format would be GeoJSON. OpenLayers, Leaflet and Google Maps all read and display GeoJSON, with a trivial amount of coding required. Here is the Open Layers 3 GeoJSON example. OpenLayers 2 and 3 also have (Geo)JSON writers, which allow you to serialize OpenLayers vector objects back to JSON for ...



Top 50 recent answers are included