This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE FUNCTION everynseconds(geometry, integer) | |
RETURNS geometry AS | |
$BODY$ | |
SELECT | |
st_makeline(st_locate_along_measure($1,g)) | |
FROM | |
generate_series(0,floor(st_m(st_endpoint($1)))::int,$2) g; | |
$BODY$ | |
LANGUAGE sql; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
parcel_id, | |
address, | |
st_distance(geom,'SRID=3005;POINT(1011102 450541)') as distance | |
from | |
parcels | |
where | |
geom && ( | |
select | |
st_extent(geom) |
NewerOlder