0

I'm writing gis application using DotSpatial 2.0

Now I have data from town hall and

Shapefile sf = Shapefile.OpenFile(Path); 

throws

DotSpatial.Projections.ProjectionException

'Projection Not Found'

ProjectionInfo proj = ProjectionInfo.Open(Path);

throws:

DotSpatial.Projections.InvalidEsriFormatException

Could anyone tell what is wrong with this file? and how to handle this case?

The file content is:

PROJCS["ETRS89 / Poland CS2000 zone 6", 
GEOGCS["ETRS89", 
    DATUM["European Terrestrial Reference System 1989", 
        SPHEROID["GRS 1980", 6378137.0, 298.257222101,
            AUTHORITY["EPSG","7019"]], 
        TOWGS84[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
        AUTHORITY["EPSG","6258"]],
    PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
    UNIT["degree", 0.017453292519943295],
    AXIS["Geodetic longitude", EAST],
    AXIS["Geodetic latitude", NORTH],
    AUTHORITY["EPSG","4258"]],
PROJECTION["Transverse_Mercator", AUTHORITY["EPSG","9807"]],
PARAMETER["central_meridian", 18.0], 
PARAMETER["latitude_of_origin", 0.0], 
PARAMETER["scale_factor", 0.999923], 
PARAMETER["false_easting", 6500000.0], 
PARAMETER["false_northing", 0.0], 
UNIT["m", 1.0], 
AXIS["Easting", EAST], 
AXIS["Northing", NORTH], 
AUTHORITY["EPSG","2177"]]

Other applications like SpatialManager and ArcMap read it corectly.

CAD Developer
  • 1,532
  • 2
  • 21
  • 27

0 Answers0