Cartopy CRS definition for NZTM2000
✓ Published0🌍 Public
Aalpha-beta-soup
Last edited Aug 29, 2019
Created on Aug 29, 2019
This example defines a custom Cartopy coordinate reference system for the NZTM2000 projection, implementing the TransverseMercator class with parameters from EPSG:2193. It sets the globe’s ellipsoid axes, central meridian at 173°E, scale factor, and false easting/northing, then overrides the boundary and x/y limits to match New Zealand’s extent. The code uses cartopy.crs.TransverseMercator and shapely.geometry.LineString to specify the projection’s rectangular bounds, providing a reusable CRS for plotting geospatial data in this local projection.
AI-generated description