Skip to main content
Solved

testing to determine if the coordinate system is present and valid.

  • October 6, 2020
  • 1 reply
  • 236 views

gisbradokla
Enthusiast
Forum|alt.badge.img+17

I have a workbench that is chocked full of transformers trying to fix, set, extract, validate and write the coordinate system. I can see the CS in the feature details and have a tester to get from an attribute that has just been updated with the CS. however trying to route any features to a sampler and then an xlsx list always ends up empty. however when i get the output and go to look at the cs output in the _coordsys there are features that are empty or contain spaces. even on a support call with safe they could not see any problem with the method i am using to get this. yet still the data is empty.

reading from dwg files and using the realdwg reader. I have the custom Fix_Coord_System transformer built by Safe.coordsysfix

I then proceed to set the coordinate system, extract it back out to an attribute, and test that attribute (BTW I have also tried to test the system @coordsys value to no avail) .SetGameMatchtestcoordsyssince i am just testing an attribute i am trying to test for at least 1 erroneous value "FME" and "NULL" values, with all unfiltered values going to Has CS port. this produces no results when the workbench is run but as stated i can go to the output and sort on the CS attribute i have created and there are features with no CS.

Best answer by virtualcitymatt

You should also test for Empty Sting and Attribute is Missing. I don't think the coordsys extracted will be 'null' if a feature if missing the coordsys.

Also keep in mind that sometimes FME will use an XY-(some measurement unit)

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.

1 reply

virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • Best Answer
  • October 7, 2020

You should also test for Empty Sting and Attribute is Missing. I don't think the coordsys extracted will be 'null' if a feature if missing the coordsys.

Also keep in mind that sometimes FME will use an XY-(some measurement unit)