Tag Info

New answers tagged

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


0

Perhaps try Mapserver Mapcache: http://mapserver.org/mapcache/index.html


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


0

I want to give feedback on my project evolution and how i solved my problem of editing WMS features, both attributes and geometry. Using WMSGetFeatureInfo and asking for information in JSON format i can store all the atributtes in a object. Using a form in the popup I then edit the values and send them to a JSP page that i created inside Geoserver webapps ...


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.


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


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

Just see this official demo example http://openlayers.org/en/v3.0.0/examples/wms-image.html Some others WMS samples are available. You will just need to change ServerType to mapserver (link for reference) Edit for completing with solution Without proj4js, you can always use the recipe from this other official example Declare an object ol.proj.Projection ...



Top 50 recent answers are included