![]() |
The coordinate reference system (CRS) is a framework that measures locations on the earth’s surface as coordinates. Geographic Coordinate Reference System uses latitude and longitude to specify a location on Earth (unit in degrees). On the other hand, the Projected Coordinate System employs a two-dimensional XY plane using northing (Y) and easting (X) values in meters. Northing is the distance from the equator, and easting is the distance from the central meridian (longitude). Syntax of osmnx.projection.is_projected() Function
Determine if a Coordinate Reference System is Projected or NotIn this example, using OSMnx, we fetch the street network data for Thiruvananthapuram, Kerala, and retrieve its coordinate reference system (CRS). Then, we determine whether the CRS is projected or not
Output CRS- epsg:4326 Let’s use epsg:4146, geodetic coordinate system for India. In this example snippet, we specify the coordinate reference system (CRS) as “EPSG:4146,” which is a geodetic coordinate system for India. Then, using OSMnx, we determine whether this CRS is projected or not, and print the result accordingly.
Output Is Projected- False In this example, we define the coordinate reference system (CRS) for Kerala as “EPSG:7781,” a projected coordinate system. Using OSMnx, we determine whether this CRS is projected or not, and print the result accordingly.
Output Is Projected- True |
Reffered: https://www.geeksforgeeks.org
Python |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 14 |