AnsweredAssumed Answered

Plug-in Data Source - Geographic Coordinate System

Question asked by finchgregory on Oct 12, 2012
Latest reply on Oct 12, 2012 by finchgregory

We're building a plug-in data source.  The data is typical WGS1984 lat/lng data.  In the plugin data source, we're creating the spatial reference with code similar to the following:

var spatialReferenceFact = new SpatialReferenceEnvironmentClass(); shapeField.SpatialReference_2 = spatialReferenceFact.CreateGeographicCoordinateSystem(6326);

Problem is, when I try to drop the plug-in data source on a map, I get the following error:

Error opening feature class.  The specified WKID (factory code) or WKT (definition string) is not a Projected Coordinate System.

I'm curious why it's wanting a projected coordinate system.  According to the docs, I should be able to use a Geographic Coordinate System with a plug-in data source. 

Any suggestions?