Skip to main content
Solved

How to solve "Invalid longitude value given for projection origin"?

  • August 16, 2022
  • 7 replies
  • 125 views

I'm using a coordinate system that is not in FME’s Coordinate System Gallery. I added a custom coordinate system by creating a new .fme file and using the online tool. When I use it in my FME model it give me the message: "Invalid longitude value given for projection origin".

My .fme file has this information:

COORDINATE_SYSTEM_DEF PTRA08-UTM/ITRF93 \\

  DESC_NM "PTRA08 / UTM zone 26N EPSG:5015" \\

  GROUP EUROPE \\

EL_NAME GRS1980 \\

  ORG_LAT 0 \\

  PARM1 -27.0 \\

  PROJ UTM \\

  QUAD 1 \\

  SCL_RED 0.9996000000 \\

  SOURCE "https://www.dgterritorio.gov.pt/geodesia/sistemas-referencia/regioes-autonomas/PTRA08-UTM-ITRF93" \\

  UNIT METER \\

  X_OFF 500000 \\

  Y_OFF 0

 

I think the error is in PARM1, but I think it's ok... -27

Best answer by geomancer

Studying the documentation on Local Coordinate Systems, it appears that for proj UTM you must provide PARM1 ("UTM zone number. Note that this must be an integer value between 1 and 60, even though it is carried in a variable of the double type.") and PARM2 ("The hemisphere of the zone. Use a positive value for northern hemisphere and a negative value for the southern hemisphere.")

Also the documentation states that the sting SOURCE has a maximum length of 63.

There may be other issues.

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.

7 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+47

Have you tried renaming PARM1 to ​ORG_LONG?


  • Author
  • August 17, 2022

Have you tried renaming PARM1 to ​ORG_LONG?

image.png


geomancer
Evangelist
Forum|alt.badge.img+60
  • Evangelist
  • August 17, 2022

Probably should be ORG_LNG.


  • Author
  • August 17, 2022

Probably should be ORG_LNG.

I tried that and the parameter was accepted but the error persisted


geomancer
Evangelist
Forum|alt.badge.img+60
  • Evangelist
  • Best Answer
  • August 17, 2022

Studying the documentation on Local Coordinate Systems, it appears that for proj UTM you must provide PARM1 ("UTM zone number. Note that this must be an integer value between 1 and 60, even though it is carried in a variable of the double type.") and PARM2 ("The hemisphere of the zone. Use a positive value for northern hemisphere and a negative value for the southern hemisphere.")

Also the documentation states that the sting SOURCE has a maximum length of 63.

There may be other issues.


  • Author
  • August 17, 2022

Studying the documentation on Local Coordinate Systems, it appears that for proj UTM you must provide PARM1 ("UTM zone number. Note that this must be an integer value between 1 and 60, even though it is carried in a variable of the double type.") and PARM2 ("The hemisphere of the zone. Use a positive value for northern hemisphere and a negative value for the southern hemisphere.")

Also the documentation states that the sting SOURCE has a maximum length of 63.

There may be other issues.

Thank you! I think that this error is solved..

Now it's a different error: "A fatal error has occurred. Check the logfile above for details

is not a supported projection."


geomancer
Evangelist
Forum|alt.badge.img+60
  • Evangelist
  • August 18, 2022

Studying the documentation on Local Coordinate Systems, it appears that for proj UTM you must provide PARM1 ("UTM zone number. Note that this must be an integer value between 1 and 60, even though it is carried in a variable of the double type.") and PARM2 ("The hemisphere of the zone. Use a positive value for northern hemisphere and a negative value for the southern hemisphere.")

Also the documentation states that the sting SOURCE has a maximum length of 63.

There may be other issues.

I see you have modified the text in your original post. Assuming this is your current setup, you are still missing PARM2.

The settings below work for me (at least I can assign the coordinate system to a test object with the CoordinateSystemSetter), but it may not be correct or complete for your purpose:

COORDINATE_SYSTEM_DEF PTRA08-UTM/ITRF93 \
DESC_NM "PTRA08 / UTM zone 26N EPSG:5015" \
GROUP EUROPE \
EL_NAME GRS1980 \
PROJ UTM \
PARM1 -27 \
PARM2 1 \
SCL_RED 0.9996000000 \
SOURCE "https://www.dgterritorio.gov.pt/geodesia/sistemas-referencia/regioes-autonomas/PTRA08-UTM-ITRF93" \
UNIT METER \
X_OFF 500000