Skip to main content
Solved

Is there a way to extract coordinate system from datasets to be standard ESRI coordinate system names?


aguan
Contributor
Forum|alt.badge.img+11
  • Contributor

I am using the CoordinateSystemExtractor to extract CRS from shape files. The output attribute _coordsys is an abbreviated name and hard to make use of it downstream. For example. the shape file prj file has the name “NAD_1927_BLM_Zone_15N”, which is an ESRI standard name. But the _coordsys value is _NAD27.BLM-15N.ft_0. I would hope the output is NAD_1927_BLM_Zone_15N so that I can use it directly in EsriReprojector. Any idea to achieve this? I have an excel file with over 150 global CRSs that need to reprojected to WGS 84. Both the sources and transformations in this excel file use standard ESRI names. Want to use this excel file to reproject all source datasets (shape files) into WGS 84 using just one EsriReprojector for which both the source and destination CRS parameters are set directly from the excel file. If you know a solution, please send reply to my work email - allen.guan@woodside.com. Appreciate the help.

Best answer by ebygomm

If provided in an attribute the value must be in the form

ESRIWKT|<name>|<esriwkt> where <name> is the coordinate system name, and <esriwkt> is the WKT (Well-Known Text) representing the coordinate system.

 

Edit: just tested using that syntax and it works ok for me 

 

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

5 replies

ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • April 15, 2025

Have you looked at the CoordinateSystemDescriptionConverter?

 

You should be able to go from NAD27.BLM-15N.ft to ESRI WKT and then extract the name for use in the Esri Reprojector


aguan
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • April 15, 2025

@ebygomm, that works perfect. Thanks. I missed this transformer in search.


aguan
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • April 15, 2025

@ebygomm, one more issue. In the EsriReprojector, the Source Coordinate System parameter can’t be set from a string attribute value. For example, an upstream attribute CRSName has the value NAD_1927_BLM_Zone_15N. If I set the Source Coordinate System parameter to be this attribute CRSName, this transformer will give an error “No definition was found for coordinate system `NAD_1927_BLM_Zone_15N'”. Looks like Source Coordinate System parameter is an object, not a string. However the Geographic Transformation parameter can take a string attribute. Any idea how to work around this? I am trying to avoid using a hundred EsriReprojector, each having to manually select the Source Coordinate System parameter from the drop down list. Strangely, it does give an option to select an attribute for the entry.


ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • Best Answer
  • April 16, 2025

If provided in an attribute the value must be in the form

ESRIWKT|<name>|<esriwkt> where <name> is the coordinate system name, and <esriwkt> is the WKT (Well-Known Text) representing the coordinate system.

 

Edit: just tested using that syntax and it works ok for me 

 


aguan
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • April 16, 2025

@ebygomm . That is fantastic help. It works. Here is the attribute example I created to be used as the input CRS for EsriReprojector. Thank you very much.

ESRIWKT|NAD_1927_BLM_Zone_15N|PROJCS["NAD_1927_BLM_Zone_15N",GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",1640416.666666667],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-93.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Foot_US",0.3048006096012192]]


Reply


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