Select to view content in your preferred language

Coordinate system Projecting geometries with 3.0 flexviewer api/agslib 3.0 API  issue

1866
0
01-18-2013 09:46 AM
AliSleiman
New Contributor
Hi,

When using a very plain coordinate system (WebMercator) such as:

???PROJCS["NAD_1983_UTM_Zone_14N",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["Transverse_Mercator"],PARAMETER["False_Easting",1640416.666666667],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-99.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Foot_US",0.3048006096012192]]???

When using the same service with the ArcGIS foe Flex Viewer 3.0 version I got the following attached file show error. Here is my code sample:

private var MySpatialRefNumber:Number = 4269;
private var MySpatialRef:SpatialReference = new SpatialReference(MySpatialRefNumber);
pParameters.geometries = [MyMapPoint as Geometry];
pParameters.outSpatialReference = MySpatialRef;
geometryServicePointToMyPoint.project(pParameters);  // Here is the line the errors

a Geometry service suppose to convert and project any point to appropriate coordinate system (WebMercator, projected or Geographic), but in this case it fails and it does seem like an 3.0 API issue.

Any one has tried this with 3.0 version and do you know if there is a solution or workaround?

When using this same coordinate system with the 3.1 version of the viewer and the 3.1 agslib and changing the wraparound180=???false??? our widget projected properly and no error were presented and was successful. When Using the Application Builder 3.1 this also worked. However, I had to change manually wraparound180 to ???false??? in the config.xml file to make it work with the above service.

Is there a way through the application builder to configure this wraparound180 option?

Thanks,
Ali
Software Engineer
Tags (2)
0 Kudos
0 Replies