Skip to main content
Solved

Why the process of reprojection from geographic coordinates to projected and finally to geographic coordinates, produces a very tiny displacement from the original information.

  • February 13, 2023
  • 4 replies
  • 68 views

rubeng
Contributor
Forum|alt.badge.img+2

If I reproject geographic information from geographic coordinates to projected coordinates, and before I convert to geographic coordinates again, the final information has a little displacement regard the original information. I don´t have any other process in between. The displacement is very tiny, but I need to know why is it produced. I´ve make the same process in Arcgis and it doesn´t appear this displacement.

I can see the displacement in QGIS because this application allows to make a very big zoom to the information. I think that ArcGis doesn´t allow to make such a very big zoom.

Best answer by rubeng

I can´t do that, beacause in between the projection transformations I will change the geometry splitting many features. And after splitting features I need to get back to geographic coordinates.

 

But I think I´ve found the solution. There is a transformer called "esrireprojector" that works good, without displacement after the reprojections . This transformer seems to use Arcgis reprojection library, and as I said in Arcgis there wasn't any problem with the sequence of reprojection.

 

Thanks.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • February 13, 2023

It all comes down to mathematics, geometry precision (number of decimals used) and decimal to binary (and reverse) conversion.

A computer stores decimal numbers as binary (1 and 0) with a given precision (integer, float, double, signed/unsigned). When you convert from dec to bin and back to dec, if you use enough decimals, you get a different number. Generally the last decimal is different.

The same thing applies to CRS reprojection. Each operation introduces a very small conversion error, and they accumulate fast.


rubeng
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • 2 replies
  • February 13, 2023

But it is a big problem not to have the posibility of manage decimals used into the reprojection transformer, because if you need a high precision you are in trouble.

 

And I also have tried a similar translation with Arcgis and it doesn´t happen. The library that uses Arcgis to reproject the information seems to work with fewer decimals then.

 

Thanks


redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3699 replies
  • February 13, 2023

Why do you transform from geographic to projected and back to geographic? Can you maybe get away with using a GeometryExtractor to store the geometry in an attribute first, then transform to projected, do whatever you need to do there and then use a GeometryReplacer to replace the projected geometry with the original (geographic) one, thereby avoiding the second transformation alltogether?


rubeng
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • 2 replies
  • Best Answer
  • February 14, 2023

I can´t do that, beacause in between the projection transformations I will change the geometry splitting many features. And after splitting features I need to get back to geographic coordinates.

 

But I think I´ve found the solution. There is a transformer called "esrireprojector" that works good, without displacement after the reprojections . This transformer seems to use Arcgis reprojection library, and as I said in Arcgis there wasn't any problem with the sequence of reprojection.

 

Thanks.