Select to view content in your preferred language

CoordinateConversion widget - how to add z-value to added format which is not wgs84

933
2
Jump to solution
01-28-2021 08:31 PM
MichaelLev
Frequent Contributor

I'm using ArcGIS API for javascript version 4.18 CoordinateConversion widget to display mouse coordinates cocurrently for several cordinate systems. I'm following ESRI's code example in CoordinateConversion widget - Custom Formats page. 

This page shows how to add 2 new formats, one is wgs84 with "z", the 2nd is some TM format.

I want to add "z" also with the 2nd format, but I have not succeeded, as I'm new to this area.

I'll appreciate help.

0 Kudos
1 Solution

Accepted Solutions
Noah-Sager
Esri Regular Contributor
Hi @MichaelLev, I think there are two answers here. First, it looks like the second custom format (spatial reference: 102241) does not support the vertical dimension. 

https://desktop.arcgis.com/en/arcmap/latest/map/projections/fundamentals-of-vertical-coordinate-syst...

https://desktop.arcgis.com/en/arcmap/latest/map/projections/pdf/geographic_coordinate_systems.pdf

But if it did support the vertical (z) coordinate system, then I think you would only need to add the z: parseFloat(parts[2]) to the state plane's conversionInfo.

 

Hope this helps!

View solution in original post

0 Kudos
2 Replies
Noah-Sager
Esri Regular Contributor
Hi @MichaelLev, I think there are two answers here. First, it looks like the second custom format (spatial reference: 102241) does not support the vertical dimension. 

https://desktop.arcgis.com/en/arcmap/latest/map/projections/fundamentals-of-vertical-coordinate-syst...

https://desktop.arcgis.com/en/arcmap/latest/map/projections/pdf/geographic_coordinate_systems.pdf

But if it did support the vertical (z) coordinate system, then I think you would only need to add the z: parseFloat(parts[2]) to the state plane's conversionInfo.

 

Hope this helps!

0 Kudos
MichaelLev
Frequent Contributor

Hi @Noah-Sager , my 2nd coordinate system is not wkid:102241 but wkid:2039.

I added z: parseFloat(parts[2]) to the conversionInfo and has not got z dimension, and this was the reason why I opened this question.

After reading your answer, I searched the pdf mansioned by you, and wkid:2039 is also not mentioned in that pdf in the table of coordinate systems that support vertical dimension. So, this is indeed the reason why I can't get z for wid:2039. 

Thank you