<div class="gmail_quote">On Mon, Jan 3, 2011 at 10:21 AM, arminus <span dir="ltr"><<a href="mailto:arminus@gmail.com">arminus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
@Ian:<br>
<div class="im"><br>
> The grammar that I published parses the examples on the xapi wiki page<br>
> just<br>
> fine. The hard part now is converting those in to SQL statements while<br>
> maintaining speed.<br>
<br>
</div>In which stage is this code presently ? I managed to build it, but when I<br>
try to actually run a query, I get<br>
<br>
Exception in thread "main" org.springframework.jdbc.BadSqlGrammarException:<br>
PreparedStatementCallback; bad SQL grammar [CREATE TEMPORARY TABLE<br>
bbox_nodes ON COMMIT DROP AS SELECT * FROM nodes WHERE (geom && ?)]; nested<br>
exception is org.postgresql.util.PSQLException: Unknown type geometry.<br>
at<br>
org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:98)<br>
<br>
(postgis-2.0.0SVN.jar is in my build path)<br></blockquote><div><br></div><div>The code is working relatively well for some use cases last I checked. That particular error looks like your schema isn't set up correctly.</div>
<div><br></div><div>Some things to check:</div><div>1) Are you using the Osmosis pgsnapshot schema?</div><div>2) Did you apply the *_linestring.sql file to the database?</div><div><br></div><div>-Ian</div></div>