Convert Lat/Long to Albers Conical Equal Area

Nov 14, 2011 at 11:38 AM

Hello,

I have loaded shapefiles in the projection of Albers Conical Equal Area, and I have some Lat/Long coordinates I'd like to place on the map.

I've created a point layer and it worked fine for other projections, what am I doing wrong here?



DotSpatial.Data.FeatureSet pointF = new DotSpatial.Data.FeatureSet(FeatureType.Point);

DotSpatial.Projections.ProjectionInfo source = DotSpatial.Projections.KnownCoordinateSystems.World.WGS1984;
DotSpatial.Projections.ProjectionInfo dest = map.Projection;

DotSpatial.Topology.Point point = new DotSpatial.Topology.Point(x, y);
IFeature currentFeature = pointF.AddFeature(point);

pointF.Projection = source;
pointF.Reproject(dest);

MapPointLayer pointLayer = (MapPointLayer)map.Layers.Add(pointF);