Skip to main content
Solved

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


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.

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

7 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+35

Have you tried renaming PARM1 to ​ORG_LONG?


virtualcitymatt wrote:

Have you tried renaming PARM1 to ​ORG_LONG?

image.png


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

Probably should be ORG_LNG.


geomancer wrote:

Probably should be ORG_LNG.

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


geomancer
Evangelist
Forum|alt.badge.img+47
  • 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.


geomancer wrote:

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+47
  • Evangelist
  • August 18, 2022
geomancer wrote:

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

 


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