I've decided to just get some work done rather than focus on the Oracle issues. Fortunately, the code I write with OGR using Shapefiles should work seamlessly with Oracle (or relatively seamlessly).
But now I have a new problem. I am getting the following error when I call exportToGML(): Traceback (most recent call last): File "shp2n3.py", line 178, in <module> write_triples() File "shp2n3.py", line 137, in write_triples gml = geom.exportToGML() File "C:\Python26\lib\site-packages\osgeo\ogr.py", line 2672, in <lambda> __getattr__ = lambda self, name: _swig_getattr(self, Geometry, name) File "C:\Python26\lib\site-packages\osgeo\ogr.py", line 34, in _swig_getattr raise AttributeError,name AttributeError: exportToGML The bit of code looks like geom = feat.GetGeometryRef() if geom is not None: gml = geom.exportToGML() outs = ' :hasGML ' + gml + '^^gmlr:string ' outs += ".\n" outFp.write(outs) else: print "Can't get geometry!" print "GDAL Error: " + gdal.GetLastErrorMsg() geom is not None. I get the same results with Python 2.5.5.7 + GDAL 1.5.2 and Python 2.6.4.10 + GDAL 1.6.1. -Eric -=--=---=----=----=---=--=-=--=---=----=---=--=-=- Eric B. Wolf New! 720-334-7734 USGS Geographer Center of Excellence in GIScience PhD Student CU-Boulder - Geography GPG Public Key: http://www.h4h.net/ebwolf.public.key.txt
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev