Tag Info

Hot answers tagged

6

Assuming your are using OpenLayers.Protocol.WFS, then you have something like this and you can provide a callback when you call the read operation on the protocol: The call back has an OpenLayers.Protocol.Response object. This object has an error property that will let you know of any errors. var protocol = new OpenLayers.Protocol.WFS({ ...


6

You can download nightly OpenStreetMap Europe snapshots from here: http://download.geofabrik.de/osm/ As of today: europe.osm.bz2 03-May-2012 06:31 11G OpenStreetMap data, bzip2 compressed europe.osm.pbf 03-May-2012 00:56 7.8G OpenStreetMap data, protobuf binary format Using GDAL/OGR you can then extract the roads with a SQL statement (see ...


2

I'm not sure, but this trick may work: Add FILTER to validation block of the layer's description, like this: LAYER ... VALIDATION 'FILTER' '.' END ... When you want to show all of the data in your layer, add the following string to your URL request : &map.layer[mylayer]=FILTER+("[mycolumn]"+~*+".") I hope this will help.


2

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


2

Thought I'd share what I found through lengthy research. It seems, the UNECE (United Nations Economic Commission for Europe) has conducted a transportation network census in 2005. Hidden deep inside their Website, I have found this: ...


2

Following from markusN, there are OpenStreetmap downloads at GeoFabrik that are in shapefile format and therefore don't require processing (depending on the dataset). Alternately, there's one here: http://www.mapcruzin.com/free-europe-arcgis-maps-shapefiles.htm But at 900MB, I suspect its not abstracted.


2

If your goal is to know WHEN all features have been added to your wfsLayer so you can hide your "please wait" message, then you could do as neil says and add it all in the vector layer constructor. Then just register the featuresadded event which will be triggered when the features have been added. Example: wfsLayer.events.on({ featuresadded: ...


2

It seems the problem is in the line breaks from Geoserver XML indent. It works when I do something like below OpenLayers.Request.GET({ url: "http://localhost:8080/geoserver/wms", params: { request: "GetStyles", layers: "topp:states", service: "wms", version: "1.1.1" }, success: function (data, statut, xhr) { ...


1

I don't know of any Leaflet-specific way to do this. However, you could preload all images asynchronously and let the browser's cache handle everything for you. All major JS libraries let you do asynchronous resource loading very easily, including binding the loads with whichever progress indicator you'd like. You'll just have to make sure your server is ...


1

A working solution is similar to what @seruva19 suggested. The trick is to add a boolean value to the filter as an alternative to the previous filter: FILTER "(mycolumn='%myvalue%') or %allvars%" where the validation forces the value to be TRUE VALIDATION ... "allvals" "^TRUE$" END and the default of allvals is set to FALSE METADATA ... ...


1

Use Vector layer instead WFS. The vector layer accepts some properties like: protocol: which allows to set the kind of protocol to be used to read/write data. It can be WFS, GeoJSON, ... strategies: an array with the Strategy instnaces used to refresh the layer content. filter: this is what you want. Here you can specify the filter to be use when ...



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