ERROR 1: CREATE INDEX ON failed, no such layer

Skalski Artur - askals Artur.Skalski at ACXIOM.COM
Thu Apr 13 03:16:08 EDT 2006


Hello
 
I'm trying to create Indexes on my .shp file but I'm stuck...
I'm trying to use this command:
 
ogr2ogr -f "ESRI Shapefile" mynewshp.shp myshp.shp -sql "CREATE INDEX ON tablename USING fieldname"
 
and in my case it looks like this:
 
ogr2ogr -f "ESRI Shapefile" streets.shp streets_polyline.shp -sql "CREATE INDEX ON streets.shp USING street"
 
i know that I'm doing sth wrong but don't know what
 
"tablename" - what is it, is it the shp. file mapinfo tab. file??? I've no idea what else I could try to make it work
 
any advice?
 
best regards
 
artur
 
ps. I' sorry for "confidentiality" of this email - I don't know how to get rid of this...
***************************************************************************
The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be legally
privileged.

If the reader of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.

If you have received this communication in error, please resend this
communication to the sender and delete the original message or any copy
of it from your computer system.

Thank You.
****************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060413/79d41de8/attachment.html


More information about the mapserver-users mailing list