Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 16814

Python is an open source interpreted programming language used in many GIS programs.

4 votes
2 answers
5k views

Python GDAL/OGR: retrieved feature is NoneType

I'm doing some scripts in Python to deal with shapefiles, and I have an issue I don't understand. …
eouti's user avatar
  • 445
4 votes
4 answers
20k views

Center of a bounding box

I have bounding box coordinates of my shapefile (fetched from layer.GetExtent() Python with GDAL/OGR): (-38.6102467739459, -38.017601026186576, 33.01563382506067, 33.624945228091406) So I assume it's …
eouti's user avatar
  • 445
1 vote
1 answer
2k views

Python GDAL/OGR: WGS84 & meters units

I'm dealing with shapefiles projected in: GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_84",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT["Degree",0.01745329251994 …
eouti's user avatar
  • 445
7 votes
1 answer
10k views

Python GDAL: degrees to meters without reprojecting

I am trying to get senseful results in my Python script. I want to measure distance between features in a shapefile. I'm working with the SRS: GCS_WGS_1984, so my units are in degrees. …
eouti's user avatar
  • 445
2 votes
1 answer
1k views

Python GDAL: find out spikes and pits in DEM

I'm working with on a DEM (Geotiff) in Python GDAL, and I'd like to find out the spikes or pits in my terrain. I have no idea how to proceed, does anyone have good algorithm to help me out? …
eouti's user avatar
  • 445
1 vote
0 answers
220 views

Python GDAL/OGR: check lines geometries connectivity

I'm working with shapefiles representing roads, so basically it's stored as (poly)lines. I need to perform a road connectivity checking. In other words, I want to ensure that roads meant to communicat …
eouti's user avatar
  • 445
3 votes
3 answers
4k views

Testing if geometry is inside another using OGR in Python?

I need to tell whether geometries from a shapefile are inside other geometries or not. For example, I want to test if there are trees (represented as points in trees.shp) inside the urban areas (repre …
eouti's user avatar
  • 445
3 votes
1 answer
2k views

Compare two Digital Elevation Model (DEM)

I'd like to do it in Python or C++, with GDAL or other similar lib. Does calculating the RMSE (Root mean square error/deviation) is useful? How to proceed to subtract DEM1 from DEM2? …
eouti's user avatar
  • 445