Projection Polyconic is not supported

Aug 14, 2010 at 4:24 PM


I have a bunch of Shape Files in Co-ordinate System Everest_Bangladesh_Polyconic. Secondly, I have polygons stored as Geometry in SQL Server 2008. I would like to overlay the Polygons from database over the polygons from these Shape Files. I am using SharpMap for my application and below is the code I used to transform the Co-ordinates:

string path = @"D:\SHP Files\luse.shp";

ShapeFile shpProvider = new ShapeFile(path, true);

VectorLayer shpLayer = new VectorLayer("ShapeFileLayer");
shpLayer.DataSource = shpProvider;

FeatureDataTable features = dbFactory.GetFeatures();

VectorLayer polyLayer = new VectorLayer("PolyLayer");
polyLayer.DataSource = new GeometryFeatureProvider(features);

CoordinateSystemFactory cFac = new CoordinateSystemFactory();
ICoordinateSystem wgs84CS = cFac.CreateFromWkt(@"PROJCS[""WGS 84 / UTM zone 13N"",GEOGCS[""WGS 84"",DATUM[""WGS_1984"",SPHEROID[""WGS 84"",6378137,298.257223563,AUTHORITY[""EPSG"",""7030""]],AUTHORITY[""EPSG"",""6326""]],PRIMEM[""Greenwich"",0,AUTHORITY[""EPSG"",""8901""]],UNIT[""degree"",0.01745329251994328,AUTHORITY[""EPSG"",""9122""]],AUTHORITY[""EPSG"",""4326""]],PROJECTION[""Transverse_Mercator""],PARAMETER[""latitude_of_origin"",0],PARAMETER[""central_meridian"",-105],PARAMETER[""scale_factor"",0.9996],PARAMETER[""false_easting"",500000],PARAMETER[""false_northing"",0],UNIT[""metre"",1,AUTHORITY[""EPSG"",""9001""]],AUTHORITY[""EPSG"",""32613""]]");

CoordinateTransformationFactory ctFac = new CoordinateTransformationFactory();

polyLayer.CoordinateTransformation = ctFac.CreateFromCoordinateSystems(shpProvider.CoordinateSystem, wgs84CS);



However, this code throws an exception saying "Projection Polyconic is not supported".


P.S: I have already posted this in SharpMap discussion forum also. However, I thought I would post it here as well, because it seemed, the exception is being thrown by Proj.Net. When this question is eventually answered, I will ensure the answer is posted in both forums.

Sep 8, 2010 at 6:30 AM

I think the error message says it all - Proj.NET does not currently support the Polyconic projection.

For details of supported projections, see