scripts/generate_lat_lon_geojson.py
def latitudes(*, increment=1):
    """Create a GeoDataFrame of latitudes at the given increment.

    increment: decimal degrees
    """
    degrees_range = (0, 90)
    lats = []

    for lat in numpy.arange(degrees_range[0], degrees_range[1], increment):
        lats.append({
            'wgs84Degrees': _decimal_degrees_to_dms(lat, lat_or_lon='lat'),
            'wgs84Decimal': float(lat),
            'label': _decimal_degrees_to_dms(
                lat, lat_or_lon='lat', include_secs=False
            ),
            'geometry': LineString([(-180, lat), (180, lat)]),
        })

    return geopandas.GeoDataFrame(lats)
Create a GeoDataFrame of latitudes at the given increment.

    increment: decimal degrees
    
Create a GeoDataFrame of latitudes at the given increment.
increment: decimal degrees
Create a GeoDataFrame of latitudes at the given increment . increment : decimal degrees
def latitudes(*, increment=1):
    degrees_range = (0, 90)
    lats = []
    for lat in numpy.arange(degrees_range[0], degrees_range[1], increment):
        lats.append({
            'wgs84Degrees': _decimal_degrees_to_dms(lat, lat_or_lon='lat'),
            'wgs84Decimal': float(lat),
            'label': _decimal_degrees_to_dms(
                lat, lat_or_lon='lat', include_secs=False
            ),
            'geometry': LineString([(-180, lat), (180, lat)]),
        })
    return geopandas.GeoDataFrame(lats)
def latitudes ( * , increment = 1 ) : degrees_range = ( 0 , 90 ) lats = [ ] for lat in numpy . arange ( degrees_range [ 0 ] , degrees_range [ 1 ] , increment ) : lats . append ( { 'wgs84Degrees' : _decimal_degrees_to_dms ( lat , lat_or_lon = 'lat' ) , 'wgs84Decimal' : float ( lat ) , 'label' : _decimal_degrees_to_dms ( lat , lat_or_lon = 'lat' , include_secs = False ) , 'geometry' : LineString ( [ ( - 180 , lat ) , ( 180 , lat ) ] ) , } ) return geopandas . GeoDataFrame ( lats )
Create a GeoDataFrame of latitudes at the given increment.
Create a GeoDataFrame of latitudes at the given increment .
"""Create a GeoDataFrame of latitudes at the given increment.

    increment: decimal degrees
    """
increment