Tag Info

New answers tagged

0

I made this code for json ftl template, based in a post: This is the code for header.ftl [ This is the code for content.ftl: { "layer": "${type.name}", "features": [ <#list features as feature> { <#list feature.attributes as attribute> <#if !attribute.isGeometry> ...


1

Your problem seems to be investigated on the GeoServer developer mailing list in this thread Summary Cascading WMS from the Polish geoportal is failing because the server does not accept Java as a User-Agent in the http headers. I recommend to contact the administrators of the geoportal because this behavior it preventing the use of the WMS service with ...


2

basically use &TIME=value at the end of the WMS request. For a range of values you need to use &TIME=start/end. If you look in the GetCapabilities response you will see the values of time that will work. See this tutorial for a brief explanation.


3

I believe that the url you provide to the QgsRasterLayer needs to be url encoded. Otherwise it seems that the url parameter which you pass to the QgsRasterLayer splits upon the '&' character. The following snippet demonstrates the creation of a QgsRasterlayer for Cochlearia danica L. wmsService = ...


0

I don't know any printing module demo with several different config.yaml to choose from. I would recommend to start by the examples provided in the mapfish print GitHub repository. I hope it helps.


3

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.


0

Scrolling down to the map contents section: http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer


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


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


0

Step one is to read GeoSolutions excellent GeoServer on Steroids: http://demo.geo-solutions.it/share/foss4g2013/gs_steroids_sgiannec_foss4g2013_01.03.pdf - it's pretty much the definitive guide to GeoServer optimisation. You'll want pages 10-18. A simplified version of what you want to do is: Convert into GeoTiffs Use Inner Tiling Add Overviews Load them ...


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

Another option would be MapSurfer.NET framework. This is a rather advanced tool to solve different cartographic tasks. It is based on some OGC standards, for example, it supports WMS and TMS specifications. The installer has SDK package with a sample project (Visual Studio) for a desktop application, where you can visualize your own map in a control that ...


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


0

It Just Worked For Me OpenLayers V2.13.1 .olTileImage.olImageLoadError { display: none !important; }


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.


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


0

You might run into a problem crossing the +-180°E border in EPSG:4326. Some points may be rendered at the wrong side, shifted off 360° horizontally. This is how it should look like: Cropping the data to +-179.9 °E might solve your problem.


0

I don't quite understand why and for what a WMS server should set CORS headers. Here is a sample request: ...


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


0

Apparently, the newest version 2.6 solve this problem. Also, make sure you have the correct environment variables setup. The one which is throwing me off is the QGISHOME one, I setup it as C:\Program Files\QGIS Brighton\, but should be C:\Program Files\QGIS Brighton\apps\qgis.


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


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();


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


0

Your issue is with the service url string, you don't need the ? appended at the end: // set up the wms url wmsURL = "http://wms.openweathermap.org/service"; wmsLayer = new WMSLayer(wmsURL); wmsLayer.setImageFormat("image/png"); // available layers String[] visibleLayers = {"clouds", "precipitation"}; wmsLayer.setVisibleLayer(visibleLayers); ...


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


0

Accordind to the doc you need to parse the event.features and build your text for the popup: info = new OpenLayers.Control.WMSGetFeatureInfo({ url: 'http://localhost:8080/geoserver/wms', title: 'Identify features by clicking', queryVisible: true, eventListeners: { getfeatureinfo: function(event) { var txt = ""; ...


0

As a workaround you can include extra parameters into the WMS server base URL. Remember also to check the "Ignore GetMap URI reported in capabilities". If username and userkey are changed you must edit the WMS connection details accordingly. Standard does not say either that WMS clients should keep the vendor parameters. Make a feature request for QGIS and ...


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



Top 50 recent answers are included