MapSuite Team,
I have an existing application that only uses ShapeFileFeatureLayer with a MapUnit of Feet and a projection of: NAD_1983_StatePlane_Illinois_East_FIPS_1201_Feet.
I am now implementing a WmsRasterLayer and the WMS Server has projections such as EPSG:3857, EPSG:3785, and others.
I’ve attempted code like this, but an exception is encountered.
An unhandled exception of type ‘System.TypeInitializationException’ occurred in ThinkGeo.MapSuite.Wpf.dll
Additional information: The type initializer for ‘fSQ=.3UU=’ threw an exception.
Proj4Projection proj4Projection = new Proj4Projection();
proj4Projection.InternalProjectionParametersString = Proj4Projection.ConvertPrjToProj4(the projection string from below);
proj4Projection.ExternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(3857);
TheAssetsStatic.aTheMapLayerItemWmsRasterNearMap.TheWmsRasterLayer.ImageSource.Projection = proj4Projection;
TheAssetsStatic.aTheMapLayerItemWmsRasterNearMap.TheWmsRasterLayer.ImageSource.Projection.Open();
How can the WmsRasterLayer be projected the same as all the existing ShapeFileFeatureLayer?
Thanks,
Dennis
The full Projection File–>
PROJCS[“NAD_1983_StatePlane_Illinois_East_FIPS_1201_Feet”,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”,984250.0],PARAMETER[“False_Northing”,0.0],PARAMETER[“Central_Meridian”,-88.33333333333333],PARAMETER[“Scale_Factor”,0.999975],PARAMETER[“Latitude_Of_Origin”,36.66666666666666],UNIT[“Foot_US”,0.3048006096012192]]