Tagged Questions
1
vote
0answers
21 views
How to identify grid shift file used by osgeo in Python?
I wrote a Python script reprojecting points from a source coordinate reference system (SCRS) to a target one (TCRS) both identified by an EPSG code.
I would like my python script to retrieve details ...
2
votes
1answer
43 views
OGR CreateLayer returns TypeError
I'm trying to create a shapefile layer based on the spatial projection of an already existing raster. (Ultimately, this will be used in gdal.Polygonize to get a shape from my raster data.) However, I ...
0
votes
0answers
54 views
Can not import qgis.core in python
I installed OSGeo4W.
I have no other Python version on my computer.
I can import osgeo.
But when I try to import qgis.core I am getting the error:
>>> import qgis.core
Traceback (most ...
6
votes
2answers
505 views
How to split shapefile per feature in Python using GDAL?
is it possible to split a shapefile per feature in python? (best would be a solution where i can temporarily save the resulting vector objects to the memory instead to disk).
The reason: I want to ...
4
votes
3answers
202 views
How can I use py2exe with the OSGeo4W Python installation?
I have a default Python installation in c:\Python27. I have also installed Python through the OSGeo4W installer, which has created a "sandboxed" Python installation with all the geospatial bindings I ...
5
votes
3answers
168 views
Do OSGeo4W and ArcGIS 10.0 use the same Python installation?
This question was asked several years ago at: Can ArcGIS and OSGeo4W share the same python install?, but it seems that versions have changed since then.
I currently have ArcGIS 10.0 installed (not ...
8
votes
1answer
189 views
Is there a way to properly have GDAL raise exceptions in Python?
I am working with GDAL in Python and have wanted to get GDAL to raise exceptions so that I can do something useful with them. For instance if a file cannot be opened with gdal.Open() I would like to ...
5
votes
2answers
182 views
What Open Source (command line/API) method is there to orthorectify and georeference an aerial image given telemetry data?
How can I take an image and orthorectify it automatically with open source software?
The information associated with each image is:
camera specs
latitude, longitude, elevation of the camera
...
5
votes
2answers
1k views
Point-in-polygon using Python and OGR
I want to use OGR in Python to write a simple point-in-polygon test:
def point_in_polygon(point, polygon):
"""
point : [longitude, latitude]
polygon : [(lon1, lat1), (lon2, lat2), ..., ...
4
votes
2answers
411 views
Issues with osgeo - qgis.core and arcpy modules
Is it possible to have the python shell from either qgis or argis to load (import) both qgis.core and arcpy?
I am developing a metadata creation tool and have completed the core functionality using ...
0
votes
1answer
615 views
Import Error while Importing osgeo package [duplicate]
Possible Duplicate:
How to install GDAL with Python on windows?
I have downloaded Fwtools for python2.5 from http://fwtools.maptools.org(windows installer) after installing it, it was ...