Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Stop using obsolete PostGIS function name #1083

Merged
merged 1 commit into from
Sep 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@

<!-- [1] query statement -->
<SQLStatement>
SELECT name, title, asbinary(the_geom) FROM some_table
SELECT name, title, st_asbinary(the_geom) FROM some_table
WHERE the_geom &amp;&amp; st_geomfromtext(?, -1)
</SQLStatement>

<!-- [1] bounding box statement -->
<BBoxStatement>SELECT astext(ST_Estimated_Extent('some_table', 'the_geom')) as bbox</BBoxStatement>
<BBoxStatement>SELECT st_astext(ST_Estimated_Extent('some_table', 'the_geom')) as bbox</BBoxStatement>

<!-- [0..n] different statements for specific WMS scale ranges -->
<LODStatement aboveScale="3000">
SELECT name, title, asbinary(st_simplifypreservetopology(the_geom, 1)) FROM some_table
SELECT name, title, st_asbinary(st_simplifypreservetopology(the_geom, 1)) FROM some_table
WHERE the_geom &amp;&amp; st_geomfromtext(?, -1)
</LODStatement>
<LODStatement aboveScale="6000">
SELECT name, title, asbinary(st_simplify(the_geom, 30)) FROM some_table
SELECT name, title, st_asbinary(st_simplify(the_geom, 30)) FROM some_table
WHERE the_geom &amp;&amp; st_geomfromtext(?, -1) and not st_isempty(st_simplify(the_geom, 30))
</LODStatement>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@

<!-- [1] query statement -->
<SQLStatement>
SELECT name, title, asbinary(the_geom) FROM some_table
SELECT name, title, st_asbinary(the_geom) FROM some_table
WHERE the_geom &amp;&amp; st_geomfromtext(?, -1)
</SQLStatement>

<!-- [1] bounding box statement -->
<BBoxStatement>SELECT astext(ST_Estimated_Extent('some_table', 'the_geom')) as bbox</BBoxStatement>
<BBoxStatement>SELECT st_astext(ST_Estimated_Extent('some_table', 'the_geom')) as bbox</BBoxStatement>

<!-- [0..n] different statements for specific WMS scale ranges -->
<LODStatement aboveScale="3000">
SELECT name, title, asbinary(st_simplifypreservetopology(the_geom, 1)) FROM some_table
SELECT name, title, st_asbinary(st_simplifypreservetopology(the_geom, 1)) FROM some_table
WHERE the_geom &amp;&amp; st_geomfromtext(?, -1)
</LODStatement>
<LODStatement aboveScale="6000">
SELECT name, title, asbinary(st_simplify(the_geom, 30)) FROM some_table
SELECT name, title, st_asbinary(st_simplify(the_geom, 30)) FROM some_table
WHERE the_geom &amp;&amp; st_geomfromtext(?, -1) and not st_isempty(st_simplify(the_geom, 30))
</LODStatement>

Expand Down