Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

Commented Unassigned: Projection - British National Grid (OSGB36) [24909]

$
0
0
Trying to reproject British National Grid (OSGB36) coordinates to Lat Long (WGS1984) produces wrong coordinates. Trying to convert from WGS1984 to OSGB36 produces value '-1.#IND'. This issue was reported several years ago but apparently was never fixed or is broken again.
http://dotspatial.codeplex.com/discussions/242230
Comments: ** Comment from web user: screamin_chicken **

A workaround is to either modify the projection string in DotSpatial.Projections.ProjectedCategories.NationalGrids or use ProjectionInfo.FromProj4String instead of KnownCoordinateSystems.Projected.NationalGrids.BritishNationalGridOSGB36. The projection string should look like this:
```
ProjectionInfo.FromProj4String("+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +towgs84=446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894 +units=m +no_defs")
```

A link I found related to the OSGB36 projection string.
http://stackoverflow.com/questions/1426941/proj-4-library-and-osgb36


Viewing all articles
Browse latest Browse all 3973

Latest Images

Trending Articles



Latest Images