Tag Info

Hot answers tagged

7

you might want to try Overpass Turbo to extract villages from OpenStreetMap (see license). I tend to find OSM has better detail in some countries than Google Maps. And they should be more accurate than 1 minute resolution of Geonames. Zoom the map to the extent you want, and use this query. This will return Geojson [out:json][timeout:25]; // gather results ...


3

This is quick and dirty. Most of this was adapted from the following website: http://www.movable-type.co.uk/scripts/latlong.html I haven't tested this too much but it seemed to work after initial testing. It will return a list of lat, long coordinate pairs along a line at a specified interval. I wrote it in python since I don't know php very well. from ...


3

you can't really convert convert distances in degrees into meters as the size of a degree varies as you approach the poles. convert your locations into a projected coordinate system, then calculate your distances.


2

self.coordTransform = self.coordinateTransformation(4326,3309) It looks like you have your source and destination coordinate systems mixed up.


2

ST_Intersection(geomA, geomB) returns a geometry, then calculate areas with ST_Area.


1

Short answer: Go to this layer's symbology and under Categories pick a unique Value Field, push "Add All Values" and OK. Long Answer: In the Table Of Contents (the window on the left that contains the XY points layer), right click the layer of XY points and push "Open Attribute Table". Here you need to find a field with a unique value for each row, which ...


1

UPDATE brb_point SET geography = way::geography;


1

Try something like that, where dx,dy are number of indexes: from osgeo import gdal file = gdal.Open( ’file.tif ’) def pixel(dx,dy): px = file.GetGeoTransform()[0] py = file.GetGeoTransform()[3] rx = file.GetGeoTransform()[1] ry = file.GetGeoTransform()[5] x = dx/rx + px y = dy/ry + py return x,y GetGeoTransform() function ...


1

This sounds like a fun problem. I would consider: Read the land boundary shp file using one of these recipes: How to install Fiona to read Shapefile attributes with OSGeo4W?. It would probably be good to read it into a Shapely geometry. I like using ogr to read shapefiles: import ogr import shapely driver = ogr.GetDriverByName('ESRI Shapefile') ...



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