sharpmap 2.0的坐标系统没有多弄懂,至于屏幕坐标如何转map 坐标,个人仅仅使用空间建立对应坐标关机,进行计算。
借鉴 网上一篇文章,http://hi.baidu.com/zhouyang027/item/59633425770bd953c28d595b
但是似乎开源代码总是更新。写上自己的修改后的 代码
ICoordinateFactory<Coordinate> coordinatefactory = new CoordinateFactory();
ICoordinateSystemFactory<Coordinate> cFac = new CoordinateSystemFactory<Coordinate>(coordinatefactory,geometryfactory);
IEllipsoid ellipsoid = cFac.CreateFlattenedSphere( 6377563.396, 299.32496, LinearUnit.Meter,"Airy 1830");
IHorizontalDatum datum = cFac.CreateHorizontalDatum(DatumType.HorizontalGeocentric, ellipsoid, null,"Airy 1830");
//创建地理坐标系
Coordinate min = coordinatefactory.Create(-180, -90);
Coordinate max = coordinatefactory.Create(180, 90);
IExtents<