Skip to main content
Solved

Reccomended approach to create points from XY coords a variety of projections

  • March 6, 2022
  • 2 replies
  • 209 views

miczat
Contributor
Forum|alt.badge.img+4

I have a set of tabluar data with attributes (X, Y, EPSG). Where the ESPG can be any valid coordinate system. My goal is to create a set of points in a common coordinate system.

 

I understand I could use a TestFilter for each EPSG I'm expecting then create points, but the workbench will fail if the data contains an EPSG code I didn't expect.

 

What is the best approach to create points in a single coordinate system without hard-coding the workbench for a set of expected coordinate systems?

 

Thanks

Best answer by takashi

Hi @miczat​ , you can convert EPSG code (integer number) to an appropriate FME coordinate system identifier with the CoordinateSystemDescriptionConverter transformer.

coordinatesystemdescriptionconverter-parametersYou can then set the resulting attribute (called "_newcoordsys" by default) to the Source Coordinate System parameter in subsequent CsmapReprojector.

Note the transformer will set an empty string to "_newcoordsys" if the input EPSG code is not supported by FME.

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.

2 replies

takashi
Celebrity
  • 7843 replies
  • Best Answer
  • March 6, 2022

Hi @miczat​ , you can convert EPSG code (integer number) to an appropriate FME coordinate system identifier with the CoordinateSystemDescriptionConverter transformer.

coordinatesystemdescriptionconverter-parametersYou can then set the resulting attribute (called "_newcoordsys" by default) to the Source Coordinate System parameter in subsequent CsmapReprojector.

Note the transformer will set an empty string to "_newcoordsys" if the input EPSG code is not supported by FME.


miczat
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 5 replies
  • March 7, 2022

Thanks Takashi,  CoordinateSystemDescriptionConverter transformer supplied FME CRS for each EPSG code as _newcooordsys:

imageThen I used that in Reprojector to write out points in a single CRS

 

image.png