Coordinate transformation

Topics: General Topics, Algorithms, SharpMap v0.9 / v1.x
Nov 15, 2007 at 9:19 PM
I am having a problem performing an on-the-fly coordinate transform. When the layer plots, it is off by approximately 7 degrees latitude and 2 degrees longitude from the actual location.

This is happening on several different layers that are known to be correct.

Here is my streets.prj file:
PROJCS"NAD_1983_StatePlane_California_I_FIPS_0401_Feet",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Foot_US",0.3048006096012192]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",6561666.666666666],PARAMETER["False_Northing",1640416.666666667],PARAMETER["Central_Meridian",-122.0],PARAMETER["Standard_Parallel_1",40.0],PARAMETER["Standard_Parallel_2",41.66666666666666],PARAMETER["Latitude_Of_Origin",39.33333333333334],UNIT["Foot_US",0.3048006096012192]

Here is my code:
ShapeFile sf = new ShapeFile(@"c:\streets.shp");

VectorLayer layer = new VectorLayer("streets");
layer.DataSource = sf;

transform = ctFac.CreateFromCoordinateSystems(
sf.CoordinateSystem,
GeographicCoordinateSystem.WGS84
);

layer.CoordinateTransformation = transform;