Description:
- Python interface to PROJ (cartographic projections and coordinate transformations library).
Resources:
Example 1
Section titled “Example 1”Use a CRS (coordinate reference system)
from pyproj import CRS
# These are all variations of the same "4326" CRScrs = CRS.from_epsg(4326)crs = CRS.from_string("EPSG:4326")crs = CRS.from_proj4("+proj=latlon")crs = CRS.from_user_input(4326)
crsExample 2
Section titled “Example 2”Transform coordinates
import numpyfrom pyproj import Transformer, transform
transformer = Transformer.from_crs(2263, 4326)x_coords = numpy.random.randint(80000, 120000)y_coords = numpy.random.randint(200000, 250000)
transformed = transformer.transform(x_coords, y_coords)
transformedganymede is made by Eugo