You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -501,7 +501,7 @@ BEGIN
501
501
args AS (
502
502
SELECT
503
503
ST_TileEnvelope(z, x, y) AS bounds,
504
-
ST_Transform(ST_SetSRID(ST_MakePoint(click_lon, click_lat), 4326), 26910) AS click
504
+
ST_Transform(ST_Point(click_lon, click_lat, 4326), 26910) AS click
505
505
),
506
506
mvtgeom AS (
507
507
SELECT
@@ -533,7 +533,7 @@ COMMENT ON FUNCTION public.parcels_in_radius IS 'Given the click point (click_lo
533
533
```
534
534
Notes:
535
535
* The parcels are stored in a table with spatial reference system [3005](https://epsg.io/3005), a planar projection.
536
-
* The click parameters are longitude/latitude, so in building a click geometry (`ST_MakePoint()`) to use for querying, we transform the geometry to the table spatial reference.
536
+
* The click parameters are longitude/latitude, so in building a click geometry (`ST_Point()`) to use for querying, we transform the geometry to the table spatial reference.
537
537
* To get the parcel boundaries clipped to the radius, we build a circle in the native spatial reference (26910) using the `ST_Buffer()` function on the click point, then intersect that circle with the parcels.
Copy file name to clipboardexpand all lines: hugo/content/usage/function-layers.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -129,7 +129,7 @@ AS $$
129
129
args AS (
130
130
SELECT
131
131
ST_TileEnvelope(z, x, y) AS bounds,
132
-
ST_Transform(ST_SetSRID(ST_MakePoint(click_lon, click_lat), 4326), 26910) AS click
132
+
ST_Transform(ST_Point(click_lon, click_lat, 4326), 26910) AS click
133
133
),
134
134
mvtgeom AS (
135
135
SELECT
@@ -157,5 +157,5 @@ COMMENT ON FUNCTION public.parcels_in_radius IS 'Given the click point (click_lo
157
157
Notes:
158
158
159
159
* The parcels are stored in a table with spatial reference system [3005](https://epsg.io/3005), a planar projection.
160
-
* The click parameters are longitude/latitude, so in building a click geometry (`ST_MakePoint()`) to use for querying, we transform the geometry to the table spatial reference.
160
+
* The click parameters are longitude/latitude, so in building a click geometry (`ST_Point()`) to use for querying, we transform the geometry to the table spatial reference.
161
161
* To get the parcel boundaries clipped to the radius, we build a circle in the native spatial reference (26910) using the `ST_Buffer()` function on the click point, then intersect that circle with the parcels.
0 commit comments