Opened 19 years ago

Last modified 19 years ago

#769 closed enhancement (fixed)

OracleSpatial Geometry field controled by env/cmd line

Reported by: michael.smith@… Owned by: warmerdam
Priority: low Milestone:
Component: OGR_SF Version: unspecified
Severity: minor Keywords:


Allow setting of oracle spatial geometry field (currently defaulting to
ORA_GEOMETRY) to be changed at the command line (OGR2OGR) or via OGR environment

Attachments (2)

ogrocidatasource.cpp (34.7 KB ) - added by warmerdam 19 years ago.
ogrociloaderlayer.cpp (24.1 KB ) - added by warmerdam 19 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by warmerdam, 19 years ago


I am attaching updated versions of ogrocidatasource.cpp and ogrociloaderlayer.cpp.
Could you rebuild with them and then try setting your geometry column name
using the layer creation option "GEOMETRY_NAME"? 

eg. ogr2ogr OCI:... in.shp -lco GEOMETRY_NAME=ESRI_GEOMETRY 

I would have to reboot to test this out myself. 

by warmerdam, 19 years ago

Attachment: ogrocidatasource.cpp added


by warmerdam, 19 years ago

Attachment: ogrociloaderlayer.cpp added


comment:2 by michael.smith@…, 19 years ago

You also need to change line 1248 on ogrocitablelayer.cpp, the
sdo_geom_metadata_table is still getting the ora-geometry. Otherwise, works great.

comment:3 by warmerdam, 19 years ago

I have changed ogrocitablelayer.cpp to use pszGeomName which should be whatever
was used in creating the layer via GEOMETRY_NAME. 

I have also added a note on this new feature in the docs and committed it all. 

Note: See TracTickets for help on using tickets.