Skip to main content
Solved

Reproject a geojson feature create a weird geometry

  • November 28, 2018
  • 5 replies
  • 28 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.

View original
Did this help you find an answer to your question?

5 replies

  • Author
  • 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
  • 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
  • November 28, 2018
david_r wrote:

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
  • November 28, 2018
baschec wrote:

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
  • November 28, 2018
david_r wrote:

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings