SpatialReference.WKT problem

1548
1
11-07-2013 02:56 AM
Hector_Manuel_MartÃ_Â_nez_Luz
New Contributor II
Hi everyone .. I am having a problem with the spatial reference of graphics .. I am loading Shapefiles, everything work fine except when I want to read the .prj and create a SpatialReference with the WKT of the file .. For some reason the graphics do not load correctly .. In the Viewer Map Contents give me the error that do not recognize the geometry type, anyone know what could be happening? .. I have a theory that probably is wrong because the string when parse it contain \ before each " (because is a string), this could be what is giving trouble .. But then again it just a silly theory, right?

Please help anyone
0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: ckotzabassis

Did you ever get your question answered? I do read the string from PRJ file and when I use the corresponding WKID to create the SpatialReference, everything works fine. When I replace that line with the one using the WKT from PRJ there is a spatial reference object but it does not work.
0 Kudos