help for convertion From EPSG:3004 to EPSG:4326 WGS 84 #65
Closed
andreagiaconi
started this conversation in
General
Replies: 1 comment 1 reply
-
use PHPCoord\CoordinateReferenceSystem\Geographic2D;
use PHPCoord\CoordinateReferenceSystem\Projected;
use PHPCoord\Point\ProjectedPoint;
// Centre of Colosseum
$from = ProjectedPoint::createFromEastingNorthing(Projected::fromSRID(Projected::EPSG_MONTE_MARIO_ITALY_ZONE_2), new Metre(2311958), new Metre(4640635));
$toCRS = Geographic2D::fromSRID(Geographic2D::EPSG_WGS_84);
$to = $from->convert($toCRS);
$latitude = $to->getLatitude()->asDegrees()->getValue(); // 41.890190969258
$longitude = $to->getLongitude()->asDegrees()->getValue(); // 12.492307541037 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello to everyone,
I have the coord (x and y, decimal) from a system EPSG:3004
How can I convert it to create a link for marker in Google Maps (EPSG:4326 WGS 84)?
Thank You a lot for help !
Beta Was this translation helpful? Give feedback.
All reactions