-
Notifications
You must be signed in to change notification settings - Fork 85
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
Valid WKTs for SRIDs 4326 and 3857? #62
Comments
You should use // Coordinate systems
var cs4386 = ProjNet.CoordinateSystems.GeographicCoordinateSystem.WGS84;
var cs3857 = ProjNet.CoordinateSystems.ProjectedCoordinateSystem.WebMercator;
// Transformation
var ctfac = new CoordinateTransformationFactory();
var trans = ctfac.CreateFromCoordinateSystems(cs4326, cs3857); |
Thanks for the help. That did the trick |
Yes this helped. But why don't the WKT definitions, as mentioned by OP, lead to the correct results? That is odd and feels uncomfortable. |
@Bernoulli-IT I tried to run code posted by @Rumpelstinsk and no exception is thrown |
I think I misplaced my previous comment as I bumped into a similar issue where a conversion resulted in an incorrect y value. My bad. |
This is a valid question. From #37 (comment):
|
I get WKT from https://epsg.io/4326 and https://epsg.io/3857
However that codes throw me an exception when I try to use them:
I take a look to SRID.csv file of your project, but i couldn't find any ID with 3857.
So, Where can I find the correct WKT for both SRIDs?
The text was updated successfully, but these errors were encountered: