When performing a transform from NAD1983UTM11 to WGS1984, there are no issues.
N,E,Z coordinates in, Lat/Long generated (decimal degrees).
Data used is:
xy(0) = 337286.313 (easting)
xy(1) = 4694674.076 (northing)
z(0) = 182.366 (elevation)
myProjIn = DotSpatial.Projections.KnownCoordinateSystems.Projected.NationalGridsCanada.NAD1983MTM1
myProjOut = DotSpatial.Projections.KnownCoordinateSystems.Geographic.World.WGS1984
Reproject.ReprojectPoints(xy, z, myProjIn, myProjOut, 0, 1)
Results:
xy(0)=82.1054299846804 (longitude)
xy(1)=42.391001348558135 (latitude)
z(0)=182.366 (height)
Correct!
When performing a transform from WGS1984 to NAD1983UTM11, there are issues.
Lat/Long/Height in (decimal degrees), NEZ not generated?
Data used is:
xy(0) = 82.105429984679 (longitude)
xy(1) = 42.3910013476671 (latitude)
z(0) = 182.366 (height)
myProjIn = DotSpatial.Projections.KnownCoordinateSystems.Geographic.World.WGS1984
myProjOut = DotSpatial.Projections.KnownCoordinateSystems.Projected.NationalGridsCanada.NAD1983MTM1
Reproject.ReprojectPoints(xy, z, myProjIn, myProjOut, 0, 1)
Results:
xy(0)=1.#IND
xy(1)=1.#IND
z(0)=182.366
Also, if my projection of WGS1984 is a GeographicInfo, how do I go about setting this to a ProjectionInfo, because Reproject.ReprojectPoints is excpecting both systems to be Projections.ProjectionInfo and not a Projections,GeographicInfo.
For example, the user is selecting the GeographicInfo and ProjectionInfo values from list boxes.
Dim myGeographic As New DotSpatial.Projections.GeographicInfo
myGeographic.Name = ComboBox2.Text
Dim myProjection As New DotSpatial.Projections.ProjectionInfo
myProjection.Name = ComboBox5.Text
So how does myGeographicInfo become a ProjectionInfo required by Reprohject?
Thanks,
Terry
