Tag Info

Hot answers tagged

5

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


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


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

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


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


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


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


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



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