![]() ST_INTERSECTS(poly.geom::geography,pnt.geom::geography) intersect_geography SELECT ST_INTERSECTS(poly.geom,pnt.geom) intersect_geometry, Pnt AS (select ST_GeomFromText('point(25 51)',4326) as geom) ![]() The polygon goes up to latitude 50, the point is at latitude 51. ![]() This can result in a point being inside a polygon expressed as geography but outside of it if expressed as geometry Some software will use great circle arcs to connect unprojected vertices (sometimes when using a special data type, like PostGIS geography), while projected (or unprojected using the geometry datatype) vertices are connected using straight lines. Extra vertices that provide a better discretization of the polygon in the destination projection.otherwise everything is reduced to projecting 4 vertices and drawing straight lines in the destination space to connect them (producing the indesiderable output of the second picture above) 'Preserve shape' parameter did what outlined by J.R. Where (hopefully) the point stays outside the polygon. When I use project setting the optional parameter 'Preserve Shape' as in the following picture. I used the ArcGIS Pro 'project' function. Where the point now is inside the polygon. when I project them (say in 3347 to follow JGH example) I get this. Putting visually JGH example I have a big polygon in WKID =4326 with a point outside of it. The points are always inside the polygons no matter the projection destination I'm projecting points and polygons to (including 'unprojecting' to geographic). The points are contained within the polygons I have a polygon and a point feature class in some projection.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |