MCPcopy Create free account
hub / github.com/OSGeo/PROJ / meridian

Function meridian

docs/plot/plot.py:153–157  ·  view source on GitHub ↗

Return LineString for a meridian.

(longitude, lat_min, lat_max)

Source from the content-addressed store, hash-verified

151
152
153def meridian(longitude, lat_min, lat_max):
154 """Return LineString for a meridian."""
155 lons = np.repeat(longitude, N_POINTS)
156 lats = np.linspace(lat_min, lat_max, N_POINTS)
157 return shapely.linestrings(np.stack((lons, lats)).T)
158
159
160def parallel(lat, lon_min, lon_max):

Callers 6

_exportToWKTMethod · 0.85
_exportToJSONMethod · 0.85
alterUnitMethod · 0.85
build_graticuleFunction · 0.85
plotprojFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected