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

Function parallel

docs/plot/plot.py:160–164  ·  view source on GitHub ↗

Return LineString for a parallel.

(lat, lon_min, lon_max)

Source from the content-addressed store, hash-verified

158
159
160def parallel(lat, lon_min, lon_max):
161 """Return LineString for a parallel."""
162 lons = np.linspace(lon_min, lon_max, N_POINTS)
163 lats = np.repeat(lat, N_POINTS)
164 return shapely.linestrings(np.stack((lons, lats)).T)
165
166
167def build_graticule(lonmin=-180, lonmax=180, latmin=-85, latmax=85):

Callers 2

build_graticuleFunction · 0.85
plotprojFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected