Skip to main content
Solved

Change coordinatesystem in a dxf?


Forum|alt.badge.img

Hi!

I am trying to transform a dxf-file from SWEREF99 13 30 to SWEREF99 TM. I simply set the coordinatesytem to the one I want in the writer and executes. The result is a file that is more than ten times as big as the original. Why is this?

Thankyou.

Best answer by mark_f

Regarding the large file, there is a parameter that "Explode Blocks into Entities"

This would increase the file size.

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

10 replies

mygis
Contributor
Forum|alt.badge.img+12
  • Contributor
  • September 6, 2017

Hi @tobiasp, can you try using the FME's quick translator?


Forum|alt.badge.img
  • Author
  • September 6, 2017
mygis wrote:

Hi @tobiasp, can you try using the FME's quick translator?

Hi! The new file still comes out much larger. I just dont understand why changing the coordinatesystem will make the filesize go from ~10 mb to more than 200? Is this normal? : )

 

 


Forum|alt.badge.img+2
  • Best Answer
  • September 6, 2017

Regarding the large file, there is a parameter that "Explode Blocks into Entities"

This would increase the file size.


lifalin2016
Contributor
Forum|alt.badge.img+29
  • Contributor
  • September 6, 2017
Hi Tobias,

 

 

DXF files are basic text files, so have you had a look inside them with a text editor ? Maybe the answer is obvious just from looking at them ?

 

 

Cheers

 

 


geosander
Forum|alt.badge.img+7
  • September 6, 2017

Hi @tobiasp,

When I look at the definitions of both coordinate systems, they are quite similar. The only differences between them are the central meridian ("13 30" has 13.5 while "TM" has 15) and the scale factor. "SWEREF99 13 30" has a scale factor of 1 (so no scaling occurs), whereas "TM" has a scale factor of 0.9996. This might be the cause of your "exploding" file size: all coordinates that were integers before become doubles now and all floating point coordinates that were rounded to (let's say) 3 decimals might end up with a lot more.

What you could try (to see if the file size gets any smaller) is to make a workspace with a DXF reader, followed by a Reprojector (or CsmapReprojector if the file contains Z values) transformer set to convert to "SWEREF99 TM" and then a CoordinateRounder where you round to 3 decimals for example (if mm resolution is good enough). Finally, add a DXF writer and set the Coordinate System to <Not Set>, so it will take the one set by the Reprojector.

Hope this helps!


geosander
Forum|alt.badge.img+7
  • September 6, 2017
geosander wrote:

Hi @tobiasp,

When I look at the definitions of both coordinate systems, they are quite similar. The only differences between them are the central meridian ("13 30" has 13.5 while "TM" has 15) and the scale factor. "SWEREF99 13 30" has a scale factor of 1 (so no scaling occurs), whereas "TM" has a scale factor of 0.9996. This might be the cause of your "exploding" file size: all coordinates that were integers before become doubles now and all floating point coordinates that were rounded to (let's say) 3 decimals might end up with a lot more.

What you could try (to see if the file size gets any smaller) is to make a workspace with a DXF reader, followed by a Reprojector (or CsmapReprojector if the file contains Z values) transformer set to convert to "SWEREF99 TM" and then a CoordinateRounder where you round to 3 decimals for example (if mm resolution is good enough). Finally, add a DXF writer and set the Coordinate System to <Not Set>, so it will take the one set by the Reprojector.

Hope this helps!

And also try what @mark_1spatial suggests (uncheck the reader parameter "Explode Blocks into Entities"). Although that setting should be switched off by default when doing a DXF-DXF Quick Translation. But when you make a workspace, it's switched on.

 


Forum|alt.badge.img
  • Author
  • September 6, 2017
mark_f wrote:

Regarding the large file, there is a parameter that "Explode Blocks into Entities"

This would increase the file size.

I knew this problem could be solved by unchecking a box somewhere! Thankyou very much!

 

 


Forum|alt.badge.img
  • Author
  • September 6, 2017
geosander wrote:

Hi @tobiasp,

When I look at the definitions of both coordinate systems, they are quite similar. The only differences between them are the central meridian ("13 30" has 13.5 while "TM" has 15) and the scale factor. "SWEREF99 13 30" has a scale factor of 1 (so no scaling occurs), whereas "TM" has a scale factor of 0.9996. This might be the cause of your "exploding" file size: all coordinates that were integers before become doubles now and all floating point coordinates that were rounded to (let's say) 3 decimals might end up with a lot more.

What you could try (to see if the file size gets any smaller) is to make a workspace with a DXF reader, followed by a Reprojector (or CsmapReprojector if the file contains Z values) transformer set to convert to "SWEREF99 TM" and then a CoordinateRounder where you round to 3 decimals for example (if mm resolution is good enough). Finally, add a DXF writer and set the Coordinate System to <Not Set>, so it will take the one set by the Reprojector.

Hope this helps!

Hi! Interesting theory, I will have a look at this even if my problem was solved by changing the parameter. Thanks for your time!

 

 


Forum|alt.badge.img
  • Author
  • September 6, 2017
geosander wrote:

Hi @tobiasp,

When I look at the definitions of both coordinate systems, they are quite similar. The only differences between them are the central meridian ("13 30" has 13.5 while "TM" has 15) and the scale factor. "SWEREF99 13 30" has a scale factor of 1 (so no scaling occurs), whereas "TM" has a scale factor of 0.9996. This might be the cause of your "exploding" file size: all coordinates that were integers before become doubles now and all floating point coordinates that were rounded to (let's say) 3 decimals might end up with a lot more.

What you could try (to see if the file size gets any smaller) is to make a workspace with a DXF reader, followed by a Reprojector (or CsmapReprojector if the file contains Z values) transformer set to convert to "SWEREF99 TM" and then a CoordinateRounder where you round to 3 decimals for example (if mm resolution is good enough). Finally, add a DXF writer and set the Coordinate System to <Not Set>, so it will take the one set by the Reprojector.

Hope this helps!

You are right, the file does come out smaller, but still a lot bigger than the original file.

 

 


geosander
Forum|alt.badge.img+7
  • September 6, 2017
tobiasp wrote:
You are right, the file does come out smaller, but still a lot bigger than the original file.

 

 

Yeah, I already expected that the file wouldn't be that much smaller. Mark's suggestion makes the biggest difference!

 


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