Different Projection Results in AWS Managed Services
Paul Ramsey
pramsey at cleverelephant.ca
Tue Feb 18 08:59:39 PST 2025
Pat,
Thanks for going through this in public, and I’d like to ask those watching:
“Can you provide some links to discussions of modern datums, ensembles, and the importance of maintenance of metadata around epoch of collection.”
I have read some very good ones over the years, but I cannot remember WHERE!
Anyways, WRT your proximate problem, I’d warn that even if you managed to find out a difference in configuration and trim away your 0.12 margin somehow, the fact that you are running your data through a pretty complex floating point transformation (coordinate reprojection) means that it is entirely possible you’ll still find small differences between your coordinates. I once found one that cropped up between x86_64 and ARM64, due to one of the architectures supporting a “merged add/multiply” operation, while the other did not (do not ask me which).
Basically, at a much higher level, if you’re going to be doing exact coordinate comparisons, it makes sense to define an expected minimum precision and enforce it, with something like https://postgis.net/docs/ST_ReducePrecision.html
On your 0.12 directly, all evidence to me suggests that AWS has a different set of grid transforms on the two products, and one is being more clever than the other in applying an extra shift between spheroids. That is, one result is “better” or at least applying more magic to the process (but not, as Greg notes, actually better, since the input basis is unknown, and the transform is probably not rated to that precision anyways).
ATB,
P
> On Feb 18, 2025, at 8:49 AM, Pat Blair <pblair at geocomm.com> wrote:
>
> Thanks again, Greg. And thanks for your patience as I try to provide credible responses to some of your questions 😊…
>
> You really need to ask AWS about AWS configuration, rather than asking
> us to guess. You are getting all that cloud goodness which must be
> perceived as valuable, and finding out what they are really doing is
> part of the bargain.
>
> Yep. This makes sense. We’ll try to see what information we can get from AWS and share what we find.
>
> By the way I committed a typo: The source data is in EPSG:26850 (NAD83 / Minnesota Central (ftUS)), rather than ESPG:26860 NAD83(HARN) / Nebraska (ftUS).
>
> Is your data really in NAD83(1986)?
>
> I’m not sure how to answer this one. I can provide the WKT that I get from ogrinfo, but I’m guessing that the question is more about how accurate we can expect the coordinates to be. The data represents road centerlines and county boundaries. I believe the vertices are, at best, accurate to within 1-2 meters. That said, in our SQL example, we’re just transforming one point and looking at the results. I’m assuming it doesn’t make sense to say in that case that the point is in “in NAD83(1986)”, but if I’m wrong about that I’m always keen to learn new things.
>
> Do you really want to transform to an ensemble?
> What do you think that means?
>
> This is “public safety” data that the analysts maintain in a local projected coordinate system, but everything needs to be converted to lat/lon to be compliant with NENA specifications. (https://cdn.ymaws.com/www.nena.org/resource/resmgr/standards/nena-sta-006.2-2022_ng9-1-1_.pdf). This isn’t a justification, of course, but to say that in this case we didn’t make the rules. :D
>
> I think this means that the way we’re transforming coordinates, with ST_Transform(…, 4326) we aren’t exactly sure which member of the ensemble is used so aspects of the projection process are subject to variations.
>
> Do you understand the dynamic datum issues, and the consequences of
> the lack of epoch tagging?
>
> I believe we’re talking about the fact that the Earth is a dynamic system, the surface shifts, and that we should expect the relationship between a point on the ground and a lat/lon to change over time. Unless we define times for the observations on the source geometries and the projection, we should expect some drift to occur. Do I have that right?
>
> Many thanks once again! I believe this has given us some insights.
>
>
> From: Greg Troxel <gdt at lexort.com <mailto:gdt at lexort.com>>
> Date: Tuesday, February 18, 2025 at 8:15 AM
> To: Pat Blair <pblair at geocomm.com <mailto:pblair at geocomm.com>>
> Cc: Paul Ramsey <pramsey at cleverelephant.ca <mailto:pramsey at cleverelephant.ca>>, postgis-users at lists.osgeo.org <mailto:postgis-users at lists.osgeo.org><postgis-users at lists.osgeo.org <mailto:postgis-users at lists.osgeo.org>>, Ryan Thomas <rthomas at geocomm.com <mailto:rthomas at geocomm.com>>, Forest Carter <fcarter at geocomm.com <mailto:fcarter at geocomm.com>>, Neil Erickson <nerickson at geo-comm.com <mailto:nerickson at geo-comm.com>>, Kellsey Schilly <kschilly at geocomm.com <mailto:kschilly at geocomm.com>>, Colin Kelly <ckelly at geocomm.com <mailto:ckelly at geocomm.com>>, Devin Escue <descue at geocomm.com <mailto:descue at geocomm.com>>
> Subject: Re: Different Projection Results in AWS Managed Services
>
> ALERT: This message originated outside of GeoComm. Use CAUTION when opening links and attachments.
>
> proj over time has improvements, and these are usually viewed as
> improvements and/or bug fixes.
>
> For example, 9.2.0 has more NADCON grids:
> https://github.com/OSGeo/PROJ/releases/tag/9.2.0
>
> To understand more, you're going to need to study release notes.
>
> You really need to ask AWS about AWS configuration, rather than asking
> us to guess. You are getting all that cloud goodness which must be
> perceived as valuable, and finding out what they are really doing is
> part of the bargain.
>
>
> The larger point is that getting upset about a small change in proj
> output while not being at least 10x more upset about differences between
> proj and NGS, and not having that being grounded in a thorough
> understanding of the geodetic issues, just does not make any sense.
> From your responses so far, it sounds like there are still a lot of
> open, far more serious issues:
>
> Is your data really in NAD83(1986)?
>
> Do you really want to transform to an ensemble?
> What do you think that means?
>
> Do you understand the dynamic datum issues, and the consequences of
> the lack of epoch tagging?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20250218/0c7e354c/attachment.htm>
More information about the postgis-users
mailing list