<div dir="ltr"><div>Thanks for checking! Looks like there might be an issue with the msPostGISReplaceBoxToken() rewrite in C++ in mappostgis.cpp.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 25, 2022 at 4:20 PM Scott <<a href="mailto:public@postholer.com">public@postholer.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">ms_error log is telling me it's unable to build the SQL query. There are <br>
no errors in the postgresql log.<br>
<br>
Even if I comment the line out I get an error, such as:<br>
--where st_intersects(geom, !BOX!)<br>
or:<br>
/* !BOX! */<br>
<br>
If it exists any where in the DATA block, it fails.<br>
<br>
Here's the ms error log:<br>
<br>
[Thu Aug 25 13:46:55 2022].451955 msPostGISBuildSQL(): General error <br>
message. Failed to build SQL 'where'.<br>
[Thu Aug 25 13:46:55 2022].451980 msPostGISLayerWhichShapes(): Query <br>
error. Failed to build query SQL.<br>
[Thu Aug 25 13:46:55 2022].452010 msDrawMap(): Image handling error. <br>
Failed to draw layer named 'wptByTrailType'.<br>
<br>
On 8/25/22 13:03, Steve Lime wrote:<br>
> Hmmm... Wasn't an intentional omission. If you have logging turned on <br>
> and can see the resulting SQL, does the !BOX! get replaced but just <br>
> incorrectly or is the !BOX! still in the SQL.<br>
> <br><br>
</blockquote></div></div>