Mapserver 4.8beta and Postgis problem
Stefano B.
stefano.bonnin at COMAI.TO
Wed Nov 9 23:55:23 PST 2005
I have a problem with Mapserver4.8 beta.
It generates a query to postgres that has a syntax error. The query is:
SELECT type::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from (SELECT the_geom,gid,type,name from places WHERE site_id = 1037 and layer = 'lyr_1158') as foo USING UNIQUE gid WHERE the_geom && setSRID('BOX3D(1395438.0354687 4996928.553392,1397377.5000833 4998384.533238)'::BOX3D, -1 );
and the postgres (8.1) error:
ERROR: syntax error at or near "USING" at character 182
LINE 1: ...ERE site_id = 1037 and layer = 'lyr_1158') as foo USING UNIQ...
The original query is:
the_geom from (SELECT the_geom,gid,type,name from places WHERE site_id = 1037 and layer = 'lyr_1158') as foo USING UNIQUE gid USING srid=-1
The previous versions of mapserver work perfectly.
Thanks
PS. Yesterday I posted the same question with some difference. Please ignore this and answer only to this message.
Thanks. Any help appreciated.
Stefano.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20051110/cc521a0b/attachment.htm>
More information about the MapServer-users
mailing list