[gdal-dev] Oracle GeoRaster is not setting setModelSRID ?
Pasta Bolognese
pasta.bolognese at gmail.com
Fri Jul 9 09:54:15 EDT 2010
Hi All,
If I run gdalinfo "C:\mymodel" I can see
...
...
Coordinate System is:
PROJCS["OSGB 1936 / British National Grid",
...
...
then, loading the model into Oracle with
gdal_translate -of georaster "C:\mymodel"
georaster:user/password,db,geoserver.ARCVIEWGRID,georaster -co
"DESCRIPTION=(ID NUMBER, SITE VARCHAR2(45), GEORASTER
MDSYS.SDO_GEORASTER)" -co "INSERT=VALUES(1,'West fields',
SDO_GEOR.INIT())" -co "BLOCKXSIZE=512" -co "BLOCKYSIZE=512" -co
"BLOCKBSIZE=3" -co "INTERLEAVE=PIXEL"
and fixing manually the XML (it is not valid as it has an extra NODATA
in the wrong place)
I've discovered that the ModelSRID has not been set... and therefore I
had to set it manually (sdo_geor.setModelSRID(grobj, 81989); where
81989 is BGN)
is is working as expected ?
is there any way to set it automatically ?
thanks
More information about the gdal-dev
mailing list