sivell

The specified WKID (factory code) or WKT (definition string) is not a Geographic Coor

Discussion created by sivell on Nov 12, 2010
Latest reply on Apr 24, 2018 by arnaudrodier
The Geocode service I am using has the spatial reference 2278. I am trying to project it to 4236, but I got the above error with this code:

           com.esri.schemas.arcgis._10.SpatialReference  outSR = new com.esri.schemas.arcgis._10.GeographicCoordinateSystem();
            com.esri.schemas.arcgis._10.SpatialReference  inSR = new com.esri.schemas.arcgis._10.GeographicCoordinateSystem();
            inSR.setWKID(2278);
            outSR.setWKID(4236);
            ArrayOfGeometry outAG = project( inSR, outSR, false, null, null, inAG);


If I replace 2278 with 4236 then there is no errors.
I am new to ArcGis, so please help.

Thanks,
Vu

Outcomes