Select to view content in your preferred language

Invalid Coordinate System

1001
1
04-19-2013 10:14 AM
RobertPfingsten
Deactivated User
I am getting the following error when synchronizing my cache to a service that has a coordinate projection system in WGS_1984_Web_Mercator_Auxillary_Sphere.  The objects are still synchronized to my mobile cache and I am able to see them on the map.  Are there only select projections that are supported?  Any help/suggestions would be appreciated.

...snippet of code that starts the sync process...
    var agent = new MobileCacheSyncAgent(_fenceCache, _mobileServiceConnection);
    LogFeatureCount("Before Sync: ", _syncRequest.Query);
    agent.FeatureSyncAgents[0].DownloadFilter = new QueryFilter(syncRequest.Query);
    agent.FeatureSyncAgents[0].SynchronizationDirection = SyncDirection.DownloadOnly;
    agent.ProgressChanged += AgentProgressChanged;
    agent.BeginDownloadExtent(_fenceCache.FullExtent, null, this);



System.*System.ArgumentException*System.ArgumentException: Invalid Coordinate System.
   at ESRI.ArcGIS.Mobile.SpatialReferences.SpatialReference.Create(Int32 code)
   at ESRI.ArcGIS.Mobile.SpatialReferences.SpatialReference.CreateWgs84SpatialReference()
   at ESRI.ArcGIS.Mobile.SpatialReferences.SpatialReferenceConverter..ctor(SpatialReference spatialReference2, GeoTransformation geoTransfromation)
   at ESRI.ArcGIS.Mobile.FeatureCaching.MobileCacheSchema.get_SpatialReference()
   at ESRI.ArcGIS.Mobile.FeatureCaching.MobileCacheSchema.WriteRequestHeader(ServerRequestCode requestCode, BinaryWriter binaryWriter)
   at ESRI.ArcGIS.Mobile.FeatureCaching.Synchronization.MapDocumentConnection.GetFeatureCount(FeatureSource featureSource, QueryFilter filter, String versionName)
   at ESRI.ArcGIS.Mobile.FeatureCaching.Synchronization.FeatureSyncAgent.DecomposeExtent(QueryFilter filter, FeatureSyncResults results)
   at ESRI.ArcGIS.Mobile.FeatureCaching.Synchronization.FeatureSyncAgent.Download(QueryFilter downloadFilter, FeatureSyncResults results)
   at ESRI.ArcGIS.Mobile.FeatureCaching.Synchronization.FeatureSyncAgent.DownloadExtent(Envelope extent)
   at ESRI.ArcGIS.Mobile.FeatureCaching.Synchronization.MobileCacheSyncAgent.DownloadExtent(Envelope extent)
   at ESRI.ArcGIS.Mobile.FeatureCaching.Synchronization.MobileCacheSyncAgent.DownloadAsync(Object state)
   at System.Threading.ThreadPool.WorkItem.doWork(Object o)
   at System.Threading.Timer.ring()
0 Kudos
1 Reply
DarrylSanchez
Deactivated User
I was told by Trimble that their coordinate system is not projected.  So if you assume that the coordinate system is geographic your choices would be from the spheroid based geographic coordinate systems is WGS-84-major-auxiliary-sphere.

The choice from the World based geographic coordinate system is WGS 84.  Since the WGS 84 mas did not work I would try the
latter.

In kind spirit,
DCUBED

Also, The ESRI International User Conference is on.  Wish I was there.  My paper that I submitted on 3D GIS was selected to be presented today I think.
0 Kudos