Points within polygons in different projectionsWhat kinds of line segments/edges require high accuracy in a true surface-of-the-ellipsoid representation?How to project the result of a QueryTask in ArcGIS Javascript API?Transformation of user-defined projected coordinatesystemsSome terms related to coordinatePartial Map Pixel ProjectionsCalculating closest distances in meters/kilometers given lat/long coordinates?Overlay polygons on raster in different projectionsvoronoi / thiessen different CRSProblems transforming polygon projections inside Shiny appHow to determine if lat/long is within SABS school boundary?
Modern approach to radio buttons
Mother abusing my finances
My player wants to cast multiple charges of magic missile from a wand
If a massive object like Jupiter flew past the Earth how close would it need to come to pull people off of the surface?
Why does the UK have more political parties than the US?
How to capture more stars?
The qvolume of an integer
What does "Marchentalender" on the front of a postcard mean?
How can I grammatically understand "Wir über uns"?
Term for checking piece whose opponent daren't capture it
What are the problems in teaching guitar via Skype?
When a current flow in an inductor is interrupted, what limits the voltage rise?
chmod would set file permission to 000 no matter what permission i try to set
What is the indigenous Russian word for a wild boar?
Could IPv6 make NAT / port numbers redundant?
Is having a hidden directory under /etc safe?
What does it mean when you think without speaking?
Preserving culinary oils
Is there an evolutionary advantage to having two heads?
Different PCB color ( is it different material? )
How crucial is a waifu game storyline?
Can a wire having a 610-670 THz (frequency of blue light) AC frequency supply, generate blue light?
Are UK pensions taxed twice?
Can a non-EU citizen travel within the Schengen area without identity documents?
Points within polygons in different projections
What kinds of line segments/edges require high accuracy in a true surface-of-the-ellipsoid representation?How to project the result of a QueryTask in ArcGIS Javascript API?Transformation of user-defined projected coordinatesystemsSome terms related to coordinatePartial Map Pixel ProjectionsCalculating closest distances in meters/kilometers given lat/long coordinates?Overlay polygons on raster in different projectionsvoronoi / thiessen different CRSProblems transforming polygon projections inside Shiny appHow to determine if lat/long is within SABS school boundary?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
My silly doubt of the day is the following.
GIVEN. A polygon and a point feature classes in some projection. The points are contained within the polygons
QUESTION. The points are always inside the polygons no matter the projection destination I'm projecting points and polygons to ? (including 'unprojecting' to geographic)
coordinate-system reprojection-mathematics
New contributor
Supereshek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
My silly doubt of the day is the following.
GIVEN. A polygon and a point feature classes in some projection. The points are contained within the polygons
QUESTION. The points are always inside the polygons no matter the projection destination I'm projecting points and polygons to ? (including 'unprojecting' to geographic)
coordinate-system reprojection-mathematics
New contributor
Supereshek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
My silly doubt of the day is the following.
GIVEN. A polygon and a point feature classes in some projection. The points are contained within the polygons
QUESTION. The points are always inside the polygons no matter the projection destination I'm projecting points and polygons to ? (including 'unprojecting' to geographic)
coordinate-system reprojection-mathematics
New contributor
Supereshek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
My silly doubt of the day is the following.
GIVEN. A polygon and a point feature classes in some projection. The points are contained within the polygons
QUESTION. The points are always inside the polygons no matter the projection destination I'm projecting points and polygons to ? (including 'unprojecting' to geographic)
coordinate-system reprojection-mathematics
coordinate-system reprojection-mathematics
New contributor
Supereshek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Supereshek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 7 hours ago
Vince
15k33050
15k33050
New contributor
Supereshek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 8 hours ago
SupereshekSupereshek
61
61
New contributor
Supereshek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Supereshek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
This can result in a point being inside a polygon expressed as geography but outside of it if expressed as geometry
The following example uses PostGIS. The polygon goes up to latitude 50, the point is at latitude 51.
WITH poly AS (select ST_GeomFromText('polygon((0 0, 50 0, 50 50, 0 50, 0 0))',4326) as geom),
pnt AS (select ST_GeomFromText('point(25 51)',4326) as geom)
SELECT ST_INTERSECTS(poly.geom,pnt.geom) intersect_geometry,
ST_INTERSECTS(poly.geom::geography,pnt.geom::geography) intersect_geography
FROM poly, pnt;
intersect_geometry | intersect_geography
--------------------+---------------------
f | t
add a comment |
Yes. projections will never reproject a point that was inside a polygon in one projection to be outside it in another--unless there's some sort of precision error. I'm not sure what this property is called in geography, but I just realized it's essentially relativistic invariance, which basically says that as time dilates for us, and our coordinate systems are compressed or stretched, no observer in any given frame will disagree on causal ordering of events. Likewise, no matter in what projection an "observer lives", no one will disagree on what points are in what polygons, even if they disagree on exactly how far the points are from the edges of the polygons, and stuff like that.
Well, except for horizon clipping, and discontinuous projections, which might throw a monkey wench in topology.
– Vince
7 hours ago
3
Not sure but I think the question come from the way polygon may be incorrectly reprojected as in a big polygon defined by only corner vertex. When reprojecting you will project the corner then reconstruct the polygon by linking the corner with a straight line. In this case a point close to the border could be seen on the other side after reprojecting but that's because the projection is wrong along the length of the side (to prevent that you need to add vertex on the polygon side before reprojecting)
– J.R
7 hours ago
I hadn't considered horizons or discontinous projections. I guess like in physics geography does have singularities where certain space-time coordinate systems break down; poles are another example.
– 0mn1
5 hours ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Supereshek is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f324171%2fpoints-within-polygons-in-different-projections%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
This can result in a point being inside a polygon expressed as geography but outside of it if expressed as geometry
The following example uses PostGIS. The polygon goes up to latitude 50, the point is at latitude 51.
WITH poly AS (select ST_GeomFromText('polygon((0 0, 50 0, 50 50, 0 50, 0 0))',4326) as geom),
pnt AS (select ST_GeomFromText('point(25 51)',4326) as geom)
SELECT ST_INTERSECTS(poly.geom,pnt.geom) intersect_geometry,
ST_INTERSECTS(poly.geom::geography,pnt.geom::geography) intersect_geography
FROM poly, pnt;
intersect_geometry | intersect_geography
--------------------+---------------------
f | t
add a comment |
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.
This can result in a point being inside a polygon expressed as geography but outside of it if expressed as geometry
The following example uses PostGIS. The polygon goes up to latitude 50, the point is at latitude 51.
WITH poly AS (select ST_GeomFromText('polygon((0 0, 50 0, 50 50, 0 50, 0 0))',4326) as geom),
pnt AS (select ST_GeomFromText('point(25 51)',4326) as geom)
SELECT ST_INTERSECTS(poly.geom,pnt.geom) intersect_geometry,
ST_INTERSECTS(poly.geom::geography,pnt.geom::geography) intersect_geography
FROM poly, pnt;
intersect_geometry | intersect_geography
--------------------+---------------------
f | t
add a comment |
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.
This can result in a point being inside a polygon expressed as geography but outside of it if expressed as geometry
The following example uses PostGIS. The polygon goes up to latitude 50, the point is at latitude 51.
WITH poly AS (select ST_GeomFromText('polygon((0 0, 50 0, 50 50, 0 50, 0 0))',4326) as geom),
pnt AS (select ST_GeomFromText('point(25 51)',4326) as geom)
SELECT ST_INTERSECTS(poly.geom,pnt.geom) intersect_geometry,
ST_INTERSECTS(poly.geom::geography,pnt.geom::geography) intersect_geography
FROM poly, pnt;
intersect_geometry | intersect_geography
--------------------+---------------------
f | t
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.
This can result in a point being inside a polygon expressed as geography but outside of it if expressed as geometry
The following example uses PostGIS. The polygon goes up to latitude 50, the point is at latitude 51.
WITH poly AS (select ST_GeomFromText('polygon((0 0, 50 0, 50 50, 0 50, 0 0))',4326) as geom),
pnt AS (select ST_GeomFromText('point(25 51)',4326) as geom)
SELECT ST_INTERSECTS(poly.geom,pnt.geom) intersect_geometry,
ST_INTERSECTS(poly.geom::geography,pnt.geom::geography) intersect_geography
FROM poly, pnt;
intersect_geometry | intersect_geography
--------------------+---------------------
f | t
answered 7 hours ago
JGHJGH
14.3k21439
14.3k21439
add a comment |
add a comment |
Yes. projections will never reproject a point that was inside a polygon in one projection to be outside it in another--unless there's some sort of precision error. I'm not sure what this property is called in geography, but I just realized it's essentially relativistic invariance, which basically says that as time dilates for us, and our coordinate systems are compressed or stretched, no observer in any given frame will disagree on causal ordering of events. Likewise, no matter in what projection an "observer lives", no one will disagree on what points are in what polygons, even if they disagree on exactly how far the points are from the edges of the polygons, and stuff like that.
Well, except for horizon clipping, and discontinuous projections, which might throw a monkey wench in topology.
– Vince
7 hours ago
3
Not sure but I think the question come from the way polygon may be incorrectly reprojected as in a big polygon defined by only corner vertex. When reprojecting you will project the corner then reconstruct the polygon by linking the corner with a straight line. In this case a point close to the border could be seen on the other side after reprojecting but that's because the projection is wrong along the length of the side (to prevent that you need to add vertex on the polygon side before reprojecting)
– J.R
7 hours ago
I hadn't considered horizons or discontinous projections. I guess like in physics geography does have singularities where certain space-time coordinate systems break down; poles are another example.
– 0mn1
5 hours ago
add a comment |
Yes. projections will never reproject a point that was inside a polygon in one projection to be outside it in another--unless there's some sort of precision error. I'm not sure what this property is called in geography, but I just realized it's essentially relativistic invariance, which basically says that as time dilates for us, and our coordinate systems are compressed or stretched, no observer in any given frame will disagree on causal ordering of events. Likewise, no matter in what projection an "observer lives", no one will disagree on what points are in what polygons, even if they disagree on exactly how far the points are from the edges of the polygons, and stuff like that.
Well, except for horizon clipping, and discontinuous projections, which might throw a monkey wench in topology.
– Vince
7 hours ago
3
Not sure but I think the question come from the way polygon may be incorrectly reprojected as in a big polygon defined by only corner vertex. When reprojecting you will project the corner then reconstruct the polygon by linking the corner with a straight line. In this case a point close to the border could be seen on the other side after reprojecting but that's because the projection is wrong along the length of the side (to prevent that you need to add vertex on the polygon side before reprojecting)
– J.R
7 hours ago
I hadn't considered horizons or discontinous projections. I guess like in physics geography does have singularities where certain space-time coordinate systems break down; poles are another example.
– 0mn1
5 hours ago
add a comment |
Yes. projections will never reproject a point that was inside a polygon in one projection to be outside it in another--unless there's some sort of precision error. I'm not sure what this property is called in geography, but I just realized it's essentially relativistic invariance, which basically says that as time dilates for us, and our coordinate systems are compressed or stretched, no observer in any given frame will disagree on causal ordering of events. Likewise, no matter in what projection an "observer lives", no one will disagree on what points are in what polygons, even if they disagree on exactly how far the points are from the edges of the polygons, and stuff like that.
Yes. projections will never reproject a point that was inside a polygon in one projection to be outside it in another--unless there's some sort of precision error. I'm not sure what this property is called in geography, but I just realized it's essentially relativistic invariance, which basically says that as time dilates for us, and our coordinate systems are compressed or stretched, no observer in any given frame will disagree on causal ordering of events. Likewise, no matter in what projection an "observer lives", no one will disagree on what points are in what polygons, even if they disagree on exactly how far the points are from the edges of the polygons, and stuff like that.
answered 8 hours ago
0mn10mn1
283
283
Well, except for horizon clipping, and discontinuous projections, which might throw a monkey wench in topology.
– Vince
7 hours ago
3
Not sure but I think the question come from the way polygon may be incorrectly reprojected as in a big polygon defined by only corner vertex. When reprojecting you will project the corner then reconstruct the polygon by linking the corner with a straight line. In this case a point close to the border could be seen on the other side after reprojecting but that's because the projection is wrong along the length of the side (to prevent that you need to add vertex on the polygon side before reprojecting)
– J.R
7 hours ago
I hadn't considered horizons or discontinous projections. I guess like in physics geography does have singularities where certain space-time coordinate systems break down; poles are another example.
– 0mn1
5 hours ago
add a comment |
Well, except for horizon clipping, and discontinuous projections, which might throw a monkey wench in topology.
– Vince
7 hours ago
3
Not sure but I think the question come from the way polygon may be incorrectly reprojected as in a big polygon defined by only corner vertex. When reprojecting you will project the corner then reconstruct the polygon by linking the corner with a straight line. In this case a point close to the border could be seen on the other side after reprojecting but that's because the projection is wrong along the length of the side (to prevent that you need to add vertex on the polygon side before reprojecting)
– J.R
7 hours ago
I hadn't considered horizons or discontinous projections. I guess like in physics geography does have singularities where certain space-time coordinate systems break down; poles are another example.
– 0mn1
5 hours ago
Well, except for horizon clipping, and discontinuous projections, which might throw a monkey wench in topology.
– Vince
7 hours ago
Well, except for horizon clipping, and discontinuous projections, which might throw a monkey wench in topology.
– Vince
7 hours ago
3
3
Not sure but I think the question come from the way polygon may be incorrectly reprojected as in a big polygon defined by only corner vertex. When reprojecting you will project the corner then reconstruct the polygon by linking the corner with a straight line. In this case a point close to the border could be seen on the other side after reprojecting but that's because the projection is wrong along the length of the side (to prevent that you need to add vertex on the polygon side before reprojecting)
– J.R
7 hours ago
Not sure but I think the question come from the way polygon may be incorrectly reprojected as in a big polygon defined by only corner vertex. When reprojecting you will project the corner then reconstruct the polygon by linking the corner with a straight line. In this case a point close to the border could be seen on the other side after reprojecting but that's because the projection is wrong along the length of the side (to prevent that you need to add vertex on the polygon side before reprojecting)
– J.R
7 hours ago
I hadn't considered horizons or discontinous projections. I guess like in physics geography does have singularities where certain space-time coordinate systems break down; poles are another example.
– 0mn1
5 hours ago
I hadn't considered horizons or discontinous projections. I guess like in physics geography does have singularities where certain space-time coordinate systems break down; poles are another example.
– 0mn1
5 hours ago
add a comment |
Supereshek is a new contributor. Be nice, and check out our Code of Conduct.
Supereshek is a new contributor. Be nice, and check out our Code of Conduct.
Supereshek is a new contributor. Be nice, and check out our Code of Conduct.
Supereshek is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f324171%2fpoints-within-polygons-in-different-projections%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown