Skip to main content
Solved

Reproject a geojson feature create a weird geometry

  • November 28, 2018
  • 5 replies
  • 39 views

Hi,

I'm using a JSONfragmenter to create a polygon from an attribute containing a geojson polygon.Everything goes fine, but if I add a reprojector the geometry become out of control:

 

Here is a minimal example of my problem:

Best answer by david_r

Since you're reprojecting between the Swiss reference frames LV03 and LV95, you should not be using the Reprojector, but the ReframeReprojector that was developed by Swisstopo for this specific use case.

I just tried it with your sample workspace and the result seems correct.

Alternatively you can also use the CsmapReprojector with a specific transformation method:

It will be somewhat faster than the ReframeReprojector, but slightly less accurate.

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.

5 replies

  • Author
  • 5 replies
  • November 28, 2018

In addition, I'm sure that i'm using the right projection. But the output coordinates of the reprojector don't make any sense.


david_r
Celebrity
  • 8394 replies
  • Best Answer
  • November 28, 2018

Since you're reprojecting between the Swiss reference frames LV03 and LV95, you should not be using the Reprojector, but the ReframeReprojector that was developed by Swisstopo for this specific use case.

I just tried it with your sample workspace and the result seems correct.

Alternatively you can also use the CsmapReprojector with a specific transformation method:

It will be somewhat faster than the ReframeReprojector, but slightly less accurate.


  • Author
  • 5 replies
  • November 28, 2018

Since you're reprojecting between the Swiss reference frames LV03 and LV95, you should not be using the Reprojector, but the ReframeReprojector that was developed by Swisstopo for this specific use case.

I just tried it with your sample workspace and the result seems correct.

Alternatively you can also use the CsmapReprojector with a specific transformation method:

It will be somewhat faster than the ReframeReprojector, but slightly less accurate.

Ho, wow, thanks, indeed it works. But I still don't get why the classic reprojector doesn't work in this case? It's not the first time that I'm using a reprojector to switch between LV03 and LV95 but it's the first time that I get this error.


david_r
Celebrity
  • 8394 replies
  • November 28, 2018

Ho, wow, thanks, indeed it works. But I still don't get why the classic reprojector doesn't work in this case? It's not the first time that I'm using a reprojector to switch between LV03 and LV95 but it's the first time that I get this error.

Unfortunately I have no idea about the regular Reprojector, I actually never use it. My order of preference is:

  • Are the coordinates in Switzerland? ReframeReprojector
  • If not, use the CsmapReprojector

Btw, the Reprojector may have inaccuracies up to about a meter compared to the ReframeReprojector, which is basically why you shouldn't use it inside Switzerland. The CsmapReprojector is much better, but may still be off by some centimeters.


  • Author
  • 5 replies
  • November 28, 2018

Unfortunately I have no idea about the regular Reprojector, I actually never use it. My order of preference is:

  • Are the coordinates in Switzerland? ReframeReprojector
  • If not, use the CsmapReprojector

Btw, the Reprojector may have inaccuracies up to about a meter compared to the ReframeReprojector, which is basically why you shouldn't use it inside Switzerland. The CsmapReprojector is much better, but may still be off by some centimeters.

Oh that's really good to know, thanks a lot for those useful informations.