<div dir="ltr"><div><font color="#990000">Hello Abhay,</font></div>
<div><font color="#990000"></font> </div>
<div><font color="#990000">here is what I have also tried to get rid of the error message.</font></div>
<div> </div>
<div> </div>
<div>> PS. OCIDescribeAny error occur when you create a entry in USER_SDO_GEOM_METADATA for the VIEW in use.</div>
<div></div>
<div> </div>
<div> </div>
<div><font color="#990000">I did insert the metadata afterwards, but did not help.</font></div>
<div><font color="#990000"></font> </div>
<div><font color="#990000">Here is the insert statement</font></div>
<div><font color="#990000"></font> </div>
<div><font color="#990000"></font></div>
<div><font face="courier new,monospace" color="#990000">INSERT INTO USER_SDO_GEOM_METADATA </font></div>
<div><font face="courier new,monospace" color="#990000">VALUES ( </font></div>
<div><font face="courier new,monospace" color="#990000">'WA_PIPE_VIEW', </font></div>
<div><font face="courier new,monospace" color="#990000">'GEOM', </font></div>
<div><font face="courier new,monospace" color="#990000">MDSYS.SDO_DIM_ARRAY(</font></div>
<div><font face="courier new,monospace" color="#990000">MDSYS.SDO_DIM_ELEMENT('X', 300000, 650000, 0.0005),</font></div>
<div><font face="courier new,monospace" color="#990000">MDSYS.SDO_DIM_ELEMENT('Y', 20000, 200000, 0.0005), </font></div>
<div><font face="courier new,monospace" color="#990000">MDSYS.SDO_DIM_ELEMENT('Z', -10, 10000, 0.0005)), </font></div>
<div><font face="courier new,monospace" color="#990000">'5000000'); </font></div>
<div><font face="courier new,monospace" color="#990000">COMMIT;</font></div>
<div> </div>
<div> </div>
<div><font color="#990000">Best regards,</font></div>
<div><font color="#990000">Dejan</font></div>
<div> </div>
<div></div>
<div>> And my implementation looks like this</div>
<div>></div>
<div>> C:\Dev\gdal\bld152\bin>ogr2ogr -f "ESRI Shapefile" test.shp "OCI:xxxxxxx/xxxxxxx@pilot" -sql "Select * from tblinputs_v where tileid=247</div>
<div>> " -nlt POLYGON</div>
<div>></div>
<div>> Rgds.</div>
<div>></div>
<div>> Abhay.</div>
<div></div>
<div></div></div>