Hot answers tagged

68

The WMS standard allows the client to request an arbitrary region. If the client wants tiles, it can makes its requests in a tiled pattern, but the server has no way to know that's what's happening and if the server stores the map as tiles of its own, it has no way to let the client know what the tile arrangement is. OSGeo came up with two ways to deal ...


48

This website describes the differences between WMS, WFS, and WCS fairly clearly. WMS is probably the best known of these three standards due to its widespread use by map servers to deliver map images. In contrast to the images served by WMS, WFS communicates geographic feature information. The WFS web service allows features to be queried, ...


43

A WMTS delivers tiles (mostly 256x256 pixel size), while WMS delivers one image per request. Main advantage of tiles is that they can be pre-renderd on the server side, and cached on the client side. This will reduce waiting time for the data and bandwith. On the other hand, you need lots of Gigabytes if you want to pre-render the whole world. Most of it ...


23

Newer versions of OpenLayers (post 2.11) should use CSS classes for this. .olImageLoadError { /* when OL encounters a 404, don't display the pink image */ display: none !important; }


21

Take a look at L.tilelayer.wms in the API. In your case you should get something like this: var map = L.map('map').setView([55.67, 12.60], 11); var mywms = L.tileLayer.wms("http://wfs-kbhkort.kk.dk/k101/wms", { layers: 'k101:theme-startkort', format: 'image/png', transparent: true, version: '1.1.0', attribution: "myattribution" }); ...


19

Update The 'hack' given below is necessary only for Geoserver versions 2.2.x and below. With version 2.3.0 and upwards, Geoserver can return JSON for WMS GetFeatureInfo request natively. End of Update There is an open feature request for this on geoserver's bug tracker. Using custom GetFeatureInfo Templates, it is possible to generate a Json response ...


17

There is OWSLib which should provide exactly what you need. OWSLib is a Python package for client programming with Open Geospatial Consortium (OGC) web service (hence OWS) interface standards, and their related content models. OWSLib provides a common API for accessing service metadata and wrappers for numerous OGC Web Service interfaces. ...


15

Instead of creating a KML file then using that to access Google Earth, you can instead add your GeoServer WMS directly as an overlay as below: From the menu select Add, select Image Overlay, give the overlay a name select the Refresh tab select WMS Parameters select the Add button next to 'WMS Server:' drop down Add the URL to your service (without ...


15

There is now a plugin called QuickMapServices. It provides map layers really easily : Add the plugin Chose the plugin from the Plugins Window Add a layer Now You can add OpenStreetMap layer from the Web tab.


14

You should try using WMS GetFeatureInfo. Here's an example with Leaflet made available Bryan McBride. The event used for triggering the GetFeatureInfo request is onclick.


14

The trick of using the "myData" parameter should be unnessesarry, as we see in the OpenLayers.Layer.HTTPRequest (which the WMS layer inherits from): redraw: function(force) { if (force) { return this.mergeNewParams({"_olSalt": Math.random()}); } else { return OpenLayers.Layer.prototype.redraw.apply(this, []); } }, if you do ...


13

Fiddler allow you to capture HTTP traffic acting as a proxy between you and network. So to capture WMS/WFS requests from any software I believe you have just to run Fiddler as usual. The same way you have done it with MapInfo - no additional configuring is required. PS I have tested it with ArcGIS Server - successfully capturing REST traffic. EDIT1: You ...


13

This happens to me when I started using QGIS 2.x. I then realize that the default parameter for the image format was set on JPEG and thus not allowing transparency (and I couldn't see the layers below). When you click on the Add WMS layer icon and open the window with the parameter for the WMS layers, you have a parameter called " image encoding" below the ...


12

100-200 users a day are (normally) nothing, a notebook can take that kind of load if the map is not complex. General guidelines: get enough memory (at least 8GB) but don't give it all to GeoServer use Intel CPUs, not AMDs, as JAI native extensions work faster on Intel try to get two servers and set them up in cluster for high availability (2 quad core ...


11

I'm not sure why you are excluding services like Google Maps, especially since your expected traffic not that high (Google starts charging after 25,000 map views (your map views will be much lower than 10,000): https://developers.google.com/maps/faq#usage_pricing). What you basically need is two things: Someone to provide you with the Web slippy map. This ...


11

In QGIS you can use R-Click and Save As... to save the WMS, and any other service, as a raster image. It saves is at a tiff, and the resolution needs to be set by you. There are other expression and creation options as well.


10

The WMSGetFeatureInfo doesn't work by requesting info on the feature being currently clicked as such. It works by formulating a WMS GetFeatureInfo request which passes a BBOX string to the WMS server. So, when you click on the map the location coordinates are captured and then sent to a WMS server as the request. You could see this in action by using ...


10

Actually it's equivalent to EPSG:4326 but changing the axis from Lat-Long to Long-Lat. The standard EPSG:4326 is Lat-Long


10

Make sure to set the format option of the L.TileLayer.WMS to image/png, as explained in the documentation. The default is to use .jpg for map image tiles, which is a image format which doesn't handle transparency. Leaflet does not override the format option depending on the value of the transparent option. e.g.: var wmsLayer = L.tileLayer.wms('http://...


9

It sounds like you want to store the vectors in the browser, and query them client side. To do that, you'll need to use WFS. One caveat, though, is that browsers have limitations on how many vectors they can display at one time. If you're dealing with large or complicated data sets, it may be that your only option will be to use WMS. That would be more ...


9

To share the WMS connections list you can "Save" the XML file (from the form "add WMS/WMTS layer) and "Load" it in every client.


9

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


9

Yes, user30184 is right. I just opened the wms file and says java.io.IOException: No such resource: generic.sld No such resource: generic.sld So I went back to Geoserver and I changed the default style of the layer from "generic" to "giant_polygon", or whatever works for you login to geoserver, click layers, choose the problematic layer, select the "...


8

The short answer is http://localhost:8080/geoserver/cite/wms The longer answer is that the URL in OpenLayers is the base URL of the web map server (so all the bit before the ? in the full URL). OpenLayers then adds the required parameters to make up the URL that is required to get a map. Some of those parameters are added from your layer definition (i.e. ...


8

You should use stylization on server side. I hope this tutorial will be hepful.


8

You should be able to use the GetCapabilities method of the WMS server to list all the data and operations available to you. Something like the following (though I've not got access to test what this returns) should hopefully be what you're looking for: http://sdi.geoportal.gov.pl/wms_prg/wmservice.aspx?SERVICE=WMS&VERSION=1.1.1&REQUEST=...


8

In regards to your first question, EPSG:2180 is a Polish projection based on Transverse Mercator. CRS:84 is equivalent to EPSG:4326 - ie, basic WGS84 degrees. http://mapserver.org/ogc/wms_server.html#coordinate-systems-and-axis-orientation


8

Try this: #!/bin/bash ulx=-76.80 lrx=-67.85 lry=34.58 uly=41.71 crs=EPSG:4326 url="http://tds.marine.rutgers.edu:8081/ncWMS/wms?LAYERS=espresso_4dvar%2Ftemp&ELEVATION=-0.986111111111111&TIME=2013-08-20T12%3A00%3A00.000Z&TRANSPARENT=true&STYLES=boxfill%2Frainbow&CRS=$crs&COLORSCALERANGE=2.156%2C28.6&NUMCOLORBANDS=254&LOGSCALE=...


8

You cannot get information for features within a bbox using a WMS getFeatureInfo. Please have a look at the WMS reference for getFeatureInfo. You will see that according to the standards, you can only pass in points, not a bbox. Instead, you could use a getFeature Operation on the WFS service. The BBOX parameter allows you to search for features that ...


8

One way of doing that (don't know if it's the only way) is by passing an array of available resolutions to the map constructor via the options parameter. Something like... var map = new OpenLayers.Map('map', { resolutions: [0.02197265625, 0.0439453125, 0.17578125] }); A way to get the resolutions you are interested in could be: 1) zoom your map to a ...


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