Skip to content

Instantly share code, notes, and snippets.

@juan-fdz-hawa
Created December 9, 2016 17:31
Show Gist options
  • Save juan-fdz-hawa/6e79e4a1bacd480b2dcd577345dbbef3 to your computer and use it in GitHub Desktop.
Save juan-fdz-hawa/6e79e4a1bacd480b2dcd577345dbbef3 to your computer and use it in GitHub Desktop.
//Sets up a array to contain the x and y coordinates
double[] xy = new double[2];
xy[0] = 0;
xy[1] = 0;
//An array for the z coordinate
double[] z = new double[1];
z[0] = 1;
//Defines the starting coordiante system
ProjectionInfo pStart = KnownCoordinateSystems.Geographic.World.WGS1984;
//Defines the ending coordiante system
ProjectionInfo pEnd = KnownCoordinateSystems.Projected.NorthAmerica.USAContiguousLambertConformalConic;
//Calls the reproject function that will transform the input location to the output locaiton
Reproject.ReprojectPoints(xy, z, pStart, pEnd, 0, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment