<div dir="ltr"><div style>Hi list,</div>I have a working connection to SpatiaLite<div><br></div><div><div>  CONNECTION "c:/Temp/test.sqlite"</div><div>  DATA "Lines"</div></div><div><br></div><div style>
For certain layers I need to specify connection by SQL. According to <a href="http://mapserver.org/input/vector/sqlite.html">http://mapserver.org/input/vector/sqlite.html</a> I tried this:</div><div style><br></div><div style>
<div>  CONNECTION "c:/Temp/test.sqlite"</div><div>  DATA "SELECT geometry FROM Lines"<br></div><div><br></div><div style>With 6.2.0 stable it does not render specified layer and does not throw any error.</div>
<div style>With development version taken from <a href="http://www.gisinternals.com/sdk/">http://www.gisinternals.com/sdk/</a> I get an error "msOGRFileNextShape(): OGR error. Unable to query table Lines(geometry) for column definitions : no such table: Lines(geometry)."</div>
<div style><br></div><div style>Geometry column is correctly registered in geometry_columns table and "ogrinfo test.sqlite Lines -summary" says "Geometry Column = geometry". Where could be the problem?</div>
<div style><br></div><div style>Thank you in advance.</div><div style><br></div><div style>Roman</div></div><div><br></div></div>