Opened 8 years ago

Closed 8 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 warmerdam)

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 Changed 8 years ago by wyogeo

Component: defaultPythonBindings
Description: modified (diff)
Owner: changed from warmerdam to hobu
Summary: ogr formats not available in GDAL 1.9 for pythonogr formats not available in GDAL 1.10 for python
Version: unspecified1.10.0

comment:2 Changed 8 years ago by warmerdam

Cc: tamas added
Description: modified (diff)

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.

comment:3 Changed 8 years ago by wyogeo

comment:4 Changed 8 years ago by warmerdam

Resolution: invalid
Status: newclosed

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 Changed 8 years ago by wyogeo

Resolution: invalid
Status: closedreopened

comment:6 Changed 8 years ago by 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.

comment:7 Changed 8 years ago by warmerdam

Cc: warmerdam added; tamas removed
Owner: changed from hobu to tamas
Status: reopenednew

Turning over to Tamas for comment.

comment:8 in reply to:  6 Changed 8 years ago by tamas

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 Changed 8 years ago by tamas

Status: newassigned

comment:10 Changed 8 years ago by tamas

Resolution: fixed
Status: assignedclosed

No feedback received, closing...

Note: See TracTickets for help on using tickets.