Hello, arcpy newbie here... sorry if I am asking a basic question. I am looking for help on transforming lat/long decimal degrees to a different spatial reference, specifically a well-known-text (WKT) custom reference that we are using.
I have sent a street address to an address locator (findAddressCandidates) and it returns JSON back to me. If the candidate score is near 100, then I parse the JSON to grab the lat/long. That all works fine. But, now I would like to use an insertCursor to add this point to my feature class. I am unclear how I would convert a lat long to the custom spatial ref., WKT?
I have been trying many different things in the past few days but nothing works for me. I have tried passing the WKT in the URL for the address locator. It seems like the locator does not recognize the WKT and converts it to the default 4326 spatial reference (not what I want).
FYI.. this is the custom spatial reference that I am using:
PROJCS["NAD_1983_Lambert_Conformal_Conic",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",1840330.965],PARAMETER["False_Northing",527997.6316666666],PARAMETER["Central_Meridian",-92.0],PARAMETER["Standard_Parallel_1",41.15],PARAMETER["Standard_Parallel_2",45.0],PARAMETER["Latitude_Of_Origin",40.15],UNIT["Foot_US",0.3048006096012192]]
Thanks, --Rick
Solved! Go to Solution.
Thanks Dan/Randy. I'll check out the code snippets, I'm sure one (or both) will work for me.