Opened 11 years ago
Closed 10 years ago
#5171 closed defect (fixed)
ogr formats not available in GDAL 1.10 for python
Reported by: | wyogeo | Owned by: | tamas |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | PythonBindings | Version: | 1.10.0 |
Severity: | normal | Keywords: | |
Cc: | warmerdam |
Description (last modified by )
I'm trying to setup GDAL 1.10 of for use with the Python 2.7 that comes bundled with ArcGIS 10.1. I used the package GDAL-1.10.0.win32-py2.7.exe.
The package installs however several drivers seem to be missing. Running ogrinfo --format shows FileGDB and PostGresSQL as avaible. However doing a ogr.GetDriverByName for either for those does not work.
When I run this code:
for i in range(0,ogr.GetDriverCount()): drv=ogr.GetDriver(i) print i,drv.GetName()
I don't see either FileGDB, PostgresSQL or MySQL as options. The results are:
0 ESRI Shapefile 1 MapInfo File 2 UK .NTF 3 SDTS 4 TIGER 5 S57 6 DGN 7 VRT 8 REC 9 Memory 10 BNA 11 CSV 12 GML 13 GPX 14 KML 15 GeoJSON 16 GMT 17 SQLite 18 ODBC 19 PGeo 20 MSSQLSpatial 21 PCIDSK 22 XPlane 23 AVCBin 24 AVCE00 25 DXF 26 Geoconcept 27 GeoRSS 28 GPSTrackMaker 29 VFK 30 PGDump 31 OSM 32 GPSBabel 33 SUA 34 OpenAir 35 PDS 36 WFS 37 HTF 38 AeronavFAA 39 Geomedia 40 EDIGEO 41 GFT 42 SVG 43 CouchDB 44 Idrisi 45 ARCGEN 46 SEGUKOOA 47 SEGY 48 XLS 49 ODS 50 XLSX 51 ElasticSearch 52 PDF
Change History (10)
comment:1 by , 11 years ago
Component: | default → PythonBindings |
---|---|
Description: | modified (diff) |
Owner: | changed from | to
Summary: | ogr formats not available in GDAL 1.9 for python → ogr formats not available in GDAL 1.10 for python |
Version: | unspecified → 1.10.0 |
comment:2 by , 11 years ago
Cc: | added |
---|---|
Description: | modified (diff) |
comment:3 by , 11 years ago
I used the version from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal
comment:4 by , 11 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
I think you will need to contact the producer of that if you want new drivers added. The ones you want are not trivial to support.
comment:5 by , 11 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
follow-up: 8 comment:6 by , 11 years ago
Actually I around my download files a little more and realized I had first iinstalled from here: http://www.gisinternals.com/sdk/PackageList.aspx?file=release-1600-gdal-1-10-mapserver-6-2.zip uisng packages:
GDAL-1.10.0.win32-py2.7.msi gdal-110-1600-core.msi gdal-110-1600-filegdb.msi
After those didn't work I tried the alternative package.
I then tried reinstalling just a few minutes ago using the msi package. It still does not recognize FileGDB. DId not test postgres or mysql.
comment:7 by , 11 years ago
Cc: | added; removed |
---|---|
Owner: | changed from | to
Status: | reopened → new |
Turning over to Tamas for comment.
comment:8 by , 11 years ago
Replying to wyogeo:
Actually I around my download files a little more and realized I had first iinstalled from here: http://www.gisinternals.com/sdk/PackageList.aspx?file=release-1600-gdal-1-10-mapserver-6-2.zip uisng packages:
GDAL-1.10.0.win32-py2.7.msi gdal-110-1600-core.msi gdal-110-1600-filegdb.msi
After those didn't work I tried the alternative package.
I then tried reinstalling just a few minutes ago using the msi package. It still does not recognize FileGDB. DId not test postgres or mysql.
FileGDB driver is a plugin, so you should make sure GDAL_DRIVER_PATH is set to the plugin directory location. Also the FileGDBAPI.dll is only included in the -filegdb.msi file, so you may require to install this along with the -core.msi installation package.
comment:9 by , 11 years ago
Status: | new → assigned |
---|
comment:10 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
No feedback received, closing...
I would appear that whoever built GDAL-1.10.0.win32-py2.7.exe did not include FileGDB, MySQL and PostgreSQL support. Where did you get it?
+cc tamas in case this is one of his builds.