Tag Info

Hot answers tagged

5

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


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


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


2

The problem is not in the code, but on the image itself. The Geotiff has 3 bands, and the nodata value is set to 0 Band 1 Block=508x8 Type=Byte, ColorInterp=Red NoData Value=0Band 2 Block=508x8 Type=Byte, ColorInterp=Green NoData Value=0 Band 3 Block=508x8 Type=Byte, ColorInterp=Blue NoData Value=0 However inspecting the image in QGIS, it ...


2

The source code of the application page shows that WMS layers are read with parameter "&SRS=EPSG:22185 A test with gdaltransform http://www.gdal.org/gdaltransform.html gives support for this: gdaltransform -s_srs epsg:22185 -t_srs epsg:4326 5434921.2799996715 6359301.360077026 -60.6956426930295 -32.9071417880402 0 Not quite same as your numbers but ...


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


2

In OlpenLayers 3 you can just initialize your view with the desired zoom constraints: var map = new ol.Map({ target: 'map', // ... view: new ol.View({ maxZoom: 8, minZoom: 6, zoom: 7 }) });


2

http://localhost/ will be interpreted by the WMS server as its own host, but the SLD you want to use is on your app's host (let's say http://myapp.com/. So yo will have to change your SLD URL to the app's public URL (using its FQDN), e.g. http://myapp.com/style/point.xml: { layers: "PGS:geopoint", transparent:true, style:"", ...


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

Vector layers have a 'redraw' method, which can be executed after changing style. After that, only re-rendering will occur and layer data remains unchanged. For example: layer.styleMap.styles.default.defaultStyle.strokeColor = '#AAAAAA'; layer.styleMap.styles.default.defaultStyle.fillColor = '#ABCDEF'; layer.redraw();


2

Other than tile size, as noted by @Irssvt, you can also set some timeout and tile retry parameters. Default timeout per connection is in Settings->Options->network->Timeout for network requests Retry in case of timeout is in Settings->Options->network->Max retry in case of tile request errors. I coded the last retry parameters in QGIS, ...


2

Sometime that could occurs with slow connection. You could try to set a tile size for your WMS layer. Change Tile size (e.g 256x256) in WMS Connecition dialog and you see if it works for you: Sometime it helped me for large compositions. Hope this helps.


2

The chances are your OpenLayers application is requesting data in as a regular WMS request. The following options will let you fix it: Make sure you meet all the requirements listed here: http://docs.geoserver.org/stable/en/user/geowebcache/using.html#direct-integration-with-geoserver-wms - the one you're most likely missing is tiled=true as a parameter ...


2

I am not really sure if you mean ASP.NET, or really a .NET Desktop or even mobile Application, but I assume you mean the latter ones, as you already will have a clue how to insert a Leaflet Map into a ASP.NET application. If you don't have a commercial framework like ESRI's ArcEngine or mapdotnet.com available, one possible option is SharpMap. There are ...


1

I should miss the point. You just need to set the WMS version for each WMS and the orientation will solve by itself. See this discussion on the developer Mailing list and the documentation for WMS in particular the params section.


1

No, or at least not without significant server-side hacking. In a WMTS the zoom levels are fixed before hand, and defined in WMTSCapabilities.xml. Each tile is a unique, pre-rendered resource, matching a pattern of zoomlevel/x/y, with an exact, pre-defined pixel size, usually 256 x 256. In WMS, in contrast, there is neither a pre-defined zoom level, nor a ...


1

a. For WFS, I already done an answer somewhere else. If OpenLayers 2, use strategy please. b. For WMS slow, it's not about GeoServer "slowness" than the fact you use so much layers and it acts on network >> See this twitter reaction to make some calculations. #webgis please stop publishing maps with many active tiled layers: 20 layers X 20 tiles per ...


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

It's probably Argentina zone 5 which has a central meridian at 60W and uses transverse Mercator. The latitude of origin is at 90S, thus the large northing values. The false easting at the central meridian is 5500000 meters. Scale factor is 1.0. The EPSG Geodetic Parameter Registry has several zone 5 listed based on different geographic coordinate reference ...


1

If you mean minimum bounding box of your data that the WMS is rendering you need to make a separate call to geoserver (WPS) to get that given that your datasource is in a vector format. Or you could call the REST-API to get the configured bounding box of the layer.



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