i have a shapefile of country subdivisions and i would like to extract an array of bounding lat and lon for each division.. is it possible to do?
|
|
Using the ogr Python module from OSGEO, this example will give you a tuple containing the coords that define an envelope for each feature.
|
||||
|
One possible way to proceed using SAGA GIS http://www.saga-gis.org After opening your shapefile run these 3 modules: 1. Modules\Shapes\Tools\Get Shapes extent
|
|||
|
|
|
In arcgis, here's python code. result is a list of minx, miny, maxx, maxy, minM, maxM, minZ, maxZ (
|
|||
|
|
|
Here's an R version, using example data from the rgdal package:
|
|||
|
|
