Answers for "sketchup writer: move to locad coordinate system puts a small rotation in the model" https://knowledge.亚搏在线safe.com/questions/86630/sketchup-writer-move-to-locad-coordinate-system-pu.html The latest answers for the question "sketchup writer: move to locad coordinate system puts a small rotation in the model" Answer by xdenduijn https://knowledge.safe.com/answers/105433/view.html

Hi@daveatsafe,

I think I exactly did what you suggested.However, I still notice a rotation in my output SketchUp file...

When I manually move my data to a local coordinate system my data is about 100m off.When I just set the option 'Move to Local Coordinate System' to Yes there is just a small rotation in my SketchUp file.

When looking at the data in FME Data Inspector in 2D mode, after manually moving to a local coordinate system and just before writing to SketchUp, the basemap alligns well.The resulting SketchUp file however looks less good..

Attached you can find:
- My workspace (built with FME 2019.1 built 19608)

- Input data (an FFS file built 19608) and

- Two output datasets: 1) the resulting SKP file when manually moving the data to a local coordinate system and 2) the resulting SKP file when simply using the 'Move to Local Coordinate System' option in the Writer.

All data is in the attached data.zip file.

I also attached a couple images that show the results in SketchUp.

Any idea what is causing the problem?

Xander

Wed, 08 Jan 2020 16:13:32 GMT xdenduijn
Answer by daveatsafe https://knowledge.safe.com/answers/86664/view.html

Hi@barzo,

In most coordinate systems, if you are not on the center or reference point for the projection, there is a slight angle between grid north and true north.When FME reprojects the data to a local coordinate system, it applies that rotation, since your model will be at the center of that new projection.

If you do not want to apply the rotation, you can move to a local coordinate system manually:

  • Pick a reference point on the model that you want to be the new origin.
  • Use a LocalCoordinateSystemSetter to set the new coordinate system.Set the Origin Coordinate System to SWEREF-99-13-30, and the Origin X and Y to the location of the reference point
  • We still need to move the data to fir the new coordinate system.Use an Offsetter transformer, with the X Offset and Y Offset set to negative Origin X and negative Origin Y.

The model will now be in a local coordinate system suitable for writing to Sketchup, and you can set the option "Move to Local Coordinate System" set to no.

Fri, 08 Feb 2019 17:41:41 GMT daveatsafe