Tag Info

Hot answers tagged

4

FYI... I believe this has changed for OL3 V3.5.0, so gcarrillo's answer would be: new ol.layer.Vector({ title: 'added Layer', source: new ol.source.Vector({ url: 'mygeojson.json', format: new ol.format.GeoJSON() }) }) You can see the changes here: ...


2

EDIT : The bug was reported to Django's team, they fixed it in the last stable release. I faced the same issue, which seems to be related to the integration of the raster module in django 1.8's gis extension. I think I found where the problem comes from. Looking at django.contrib.gis.gdal.libgal, you can see this: ..| 47| # This loads the GDAL/OGR C ...


2

You could try using geoalchemy2. Personally I would look at using the Object Relational Mapper (ORM) model for working with your data, for example: from sqlalchemy import create_engine # Enter your database connection below engine = create_engine('postgresql://gis:gis@localhost/gis', echo=True) from sqlalchemy.ext.declarative import declarative_base from ...


2

Leaflet's map.fitBounds has an option padding which you can use like so: map.fitBounds(polygon.getBounds(), { padding:[50,50] } ); JSFiddle demo: http://jsfiddle.net/1vjqjx6h/


1

You can use ol.format.GeoJSON to write out your feature as GeoJSON, and then use any AJAX / XHR library to get it back to your server. http://openlayers.org/en/v3.5.0/apidoc/ol.format.GeoJSON.html#writeFeature See also this example which uses EsriJSON but the concepts are the same: http://openlayers.org/en/v3.5.0/examples/vector-esri-edit.html


1

Fiona doesn't support updating existing layers by design. You'll need to read your existing data in, make the changes you need, and write to a new file.


1

Meters above mean sea level, per the RFC-001 wiki specification doc: WGS84 is implied and coordinates represent decimal degrees ordered as "longitude, latitude [,elevation]" with z expressed as metres above mean sea level per WGS84. But, unspecified, per the later RFC-2 wiki specification doc: The order of elements follows x, y, z order (or ...


1

this API, return's GeoJson Boundaries for multiple zipcodes. you can easily add it to GoogleMaps,etc.. http://api.reaperfire.com/reaperfire/rest/v1/public/boundary?zipcode=20002,20037&format=geojson googlemap integration example: http://api.reaperfire.com/


1

geojson styles need to be defined in javascript, not css. Here's a sample style: var countyStyle = { "color": "#cec4bc", // medium? brown "weight": 1, // stroke weight in pixels "opacity": 0.65 }; You can look up path style options here in Leaflet documentation. There are many sites to look up hex or rgb color codes and help choose ...


1

GeoRSS comes in several flavours - you could use simple which is a step up from CSV. This gives you an entry like: <entry> <title>M 3.2, Mona Passage</title> <link href="http://example.org/2005/09/09/atom01"/> <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id> ...



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