<HTML>
<HEAD>
<TITLE>Re: [gdal-dev] Re: ogr2ogr OCI: problem loading shapes</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Sebastian,<BR>
<BR>
Looks like you didn’t commit the change. There still is a duplicate entry in the user_sdo_geom_metadata. <BR>
<BR>
Delete From User_Sdo_Geom_Metadata Where Table_Name Like 'FLU%';<BR>
Commit;<BR>
<BR>
Mike<BR>
<BR>
<BR>
-- <BR>
Michael Smith<BR>
US Army Corps of Engineers<BR>
Remote Sensing/GIS Center<BR>
Hanover, NH <BR>
<BR>
<BR>
<BR>
<BR>
On 7/26/10 11:08 AM, "Sebastian E. Ovide" <<a href="sebastian.ovide@gmail.com">sebastian.ovide@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>ok... I have deleted that extra line manually (should not it be handled by ogr2ogr in some way?)<BR>
<BR>
Delete From User_Sdo_Geom_Metadata Where Table_Name Like 'FLU%';<BR>
<BR>
now I'm getting another error:<BR>
<BR>
<BR>
sebas@SeansPC:~/gdal$ time ogr2ogr -f OCI OCI:geoserver/geoserver@MFproduk_11g ../shapes/Fluvial_Extents/FluvialUD04Q200Outline.shp -lco srid=81989 -lco PRECISION=NO -progress -lco DIM=2<BR>
0...10...20...30...40...50...60...70...80...90...100 - done.<BR>
ERROR 1: ORA-13223: duplicate entry for FLUVIALUD04Q200OUTLINE.ORA_GEOMETRY in SDO_GEOM_METADATA<BR>
ORA-06512: at "MDSYS.MD <<a href="http://MDSYS.MD">http://MDSYS.MD</a>> ", line 1723<BR>
ORA-06512: at "MDSYS.MDERR", line 17<BR>
ORA-06512: at "MDSYS.SDO_GEOM_TRIG_INS1", line 48<BR>
ORA-04088: error during execution of trigger 'MDSYS.SDO_GEOM_TRIG_INS1'<BR>
in INSERT INTO USER_SDO_GEOM_METADATA VALUES ('FLUVIALUD04Q200OUTLINE', 'ORA_GEOMETRY', MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X',138874.997,654690.003,0.001),MDSYS.SDO_DIM_ELEMENT('Y',15619.997,814145.0030999999,0.001)), 81989)<BR>
<BR>
real 0m42.801s<BR>
user 0m20.090s<BR>
sys 0m0.360s<BR>
<BR>
<BR>
On Mon, Jul 26, 2010 at 4:00 PM, Sebastian E. Ovide <<a href="sebastian.ovide@gmail.com">sebastian.ovide@gmail.com</a>> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>thanks for that... I'm getting closer ....<BR>
<BR>
sebas@SeansPC:~/gdal$ time ogr2ogr -f OCI OCI:geoserver/geoserver@MFproduk_11g ../shapes/Fluvial_Extents/FluvialUD04Q200Outline.shp -lco srid=81989 -lco PRECISION=NO -progress -lco DIM=2<BR>
<BR>
0...10...20...30...40...50...60...70...80...90...100 - done.<BR>
ERROR 1: ORA-13223: duplicate entry for FLUVIALUD04Q200OUTLINE.ORA_GEOMETRY in SDO_GEOM_METADATA<BR>
ORA-06512: at "MDSYS.MD <<a href="http://MDSYS.MD">http://MDSYS.MD</a>> ", line 1723<BR>
ORA-06512: at "MDSYS.MDERR", line 17<BR>
ORA-06512: at "MDSYS.SDO_GEOM_TRIG_INS1", line 48<BR>
ORA-04088: error during execution of trigger 'MDSYS.SDO_GEOM_TRIG_INS1'<BR>
in INSERT INTO USER_SDO_GEOM_METADATA VALUES ('FLUVIALUD04Q200OUTLINE', 'ORA_GEOMETRY', MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X',138874.997,654690.003,0.001),MDSYS.SDO_DIM_ELEMENT('Y',15619.997,814145.0030999999,0.001)), 81989)<BR>
<BR>
real 0m42.414s<BR>
user 0m19.900s<BR>
sys 0m0.440s<BR>
<BR>
<BR>
<BR>
On Mon, Jul 26, 2010 at 1:11 PM, Rahkonen Jukka <<a href="Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi,<BR>
<BR>
<a href="http://gdal.org/ogr/drv_oci.html">http://gdal.org/ogr/drv_oci.html</a> says:<BR>
Layer Creation Options<BR>
DIM: This may be set to 2 or 3 to force the dimension of the created layer. If not set 3 is used by default.<BR>
<BR>
Have you tried that?<BR>
<FONT COLOR="#888888"><BR>
-Jukka-<BR>
</FONT><BR>
Sebastian E. Ovide wrote:<BR>
<BR>
<BR>
On Fri, Jul 23, 2010 at 7:38 PM, Jukka Rahkonen<BR>
<<a href="jukka.rahkonen@mmmtike.fi>wrote">jukka.rahkonen@mmmtike.fi>wrote</a>:<BR>
<BR>
> Validate geometries<BR>
<BR>
validating geometries it came out: ORA-54668: a 2D SRID cannot be used with<BR>
a 3D geometry<BR>
<BR>
therefore I've used the option -nlt POINT as suggested<BR>
<a href="http://osgeo-org.1803224.n2.nabble.com/howto-flattening-of-3D-shapefiles-td3038433.html">http://osgeo-org.1803224.n2.nabble.com/howto-flattening-of-3D-shapefiles-td3038433.html</a><BR>
<BR>
but I still get the same ORA-54668 validation error...<BR>
<BR>
any ideas ?<BR>
<BR>
<BR>
--<BR>
Sebastian E. Ovide<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE></BLOCKQUOTE>
</BODY>
</HTML>