Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error reprojecting from UTM to Wgs84 #942

Closed
jany-tenaj opened this issue Feb 28, 2017 · 1 comment
Closed

Error reprojecting from UTM to Wgs84 #942

jany-tenaj opened this issue Feb 28, 2017 · 1 comment
Labels
no reaction user didn't react to questions

Comments

@jany-tenaj
Copy link
Contributor

Copied from codeplex issue 63640:

Hello Guys,

I have a problem while reprojecting from UTM (MGI / Austria GK West) to WGS84 (Lat/Lon), I have an error of about 500 m in Latitude and 50 m in Longitude, thats my VB.net code:

' lines
Sub processLines(fs As IFeatureSet)

    ' set EPSG code
    fs.Projection.AuthorityCode = 31254

    '  Destination projection information
    Dim dest As DotSpatial.Projections.ProjectionInfo = KnownCoordinateSystems.Geographic.World.WGS1984
    dest.GeographicInfo = fs.Projection.GeographicInfo

    ' set EPSG code
    dest.AuthorityCode = 4326

    ' reproject
    fs.Reproject(dest)

I´m using Qgis to echeck the results. Thanks in Advance!

Oliver

@mogikanin
Copy link
Contributor

Oliver, please provide sample coordinates (actual values, expected values).

@jany-tenaj jany-tenaj added the no reaction user didn't react to questions label Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no reaction user didn't react to questions
Projects
None yet
Development

No branches or pull requests

2 participants