import pyproj # Create a CRS object from WGS84 EPSG code crs = pyproj.CRS.from_epsg(4326) # Print the CRS object print(crs)
+proj=longlat +datum=WGS84 +no_defs +type=crs
import pyproj # Create a CRS object from UTM Zone 10N EPSG code crs = pyproj.CRS.from_epsg(32610) # Print the CRS object print(crs)
+proj=utm +zone=10 +datum=WGS84 +units=m +no_defs +type=crsIn these examples, we used the pyproj library in Python to create a CRS object from its EPSG code using the from_epsg() function. The library pyproj is used for geospatial transformations, it provides a range of functions for converting between coordinate systems and for defining custom coordinate system combinations.