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
I don't know what is wrong with it but it cause the lat/lng coordinates to be roughly 150 meters offset.
Interestingly the solution assumed Postgis and manually modifying it to use ST_Transform(geom, 4326) resulted in correct lat/lng coordinates.
I asked it to reflect on what could be causing the offset and Claude.ai replied with:
PostGIS handles this correctly because it includes the proper transformation grid file (nl_nsgi_rdcorr2018.gsb) and datum shift parameters, while our ProjNet implementation was doing a simpler, less accurate transformation.
It provided a fix (modify the CoordinateTransformer to include these parameters) but stated:
However, even with these parameters, you might still see small differences compared to PostGIS because PostGIS uses a more sophisticated grid-based transformation that accounts for local variations in the datum shift across the Netherlands.
Sharing this here because this wasted several hours of diagnosing an incorrect AI response and I assumed that conversion to be correct because it was a package.
The text was updated successfully, but these errors were encountered:
Never heard of this project but https://claude.ai/ used it in a response.
I have a data set of EPSG:28992 points. The reponse used ProjNet to convert these to WGS 84. It boils down to the following code:
I don't know what is wrong with it but it cause the lat/lng coordinates to be roughly 150 meters offset.
Interestingly the solution assumed Postgis and manually modifying it to use
ST_Transform(geom, 4326)
resulted in correct lat/lng coordinates.I asked it to reflect on what could be causing the offset and Claude.ai replied with:
It provided a fix (modify the CoordinateTransformer to include these parameters) but stated:
Sharing this here because this wasted several hours of diagnosing an incorrect AI response and I assumed that conversion to be correct because it was a package.
The text was updated successfully, but these errors were encountered: