Tag Info

Hot answers tagged

3

The Problem lies in your use of url, which in OL3 seems to expect only static files, i.e. url = "/static/data/geojson.json". To fill your map with dynamically loaded data use ajax calls and the ol.source.Vector.addFeatures method: var vectorSource = new ol.source.GeoJSON({ projection: 'EPSG:4326' }), $.get( ...


2

You could use a hidden form to realize that: Button to start the Download: <input type="button" value="Download Layer Streams as Shapefile (ZIP)" onclick="shapedownload('og:streams')"> Function to be called: function shapedownload(layername) { var form = document.createElement("form"); form.method = "POST"; form.action = ...


1

There a two or three possible reasons that come to my mind: Option1: your Webserver is not configured properly: What happens for example if you try to access this site(presuming that you put your proxy.cgi in your usr/lib/cgi-bin -folder): http://yourserver_ip_or_adress/cgi-bin/proxy.cgi?url=http://www.openstreetmap.org If you wont see the ...


1

After some digging I find out a GetSpatialReference method for the Geometry class (note the different name to the GetSpatialRef method in the Layer class). So the code should follow something like: $ python Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> ...


1

Here is an example of the syntax for DWITHIN http://demo.opengeo.org/geoserver/wfs?request=getfeature&version=1.0.0&service=wfs&typename=topp:states&outputformat=json&cql_filter=DWITHIN(the_geom,Point(-88 38),0.1,kilometers) Note that DWITHIN takes three parameters: reference geometry, distance, and distance unit. However, GeoServer ...



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