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

    increment: decimal degrees
    """
    degrees_range = (-180, 180)
    lons = []

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

    return geopandas.GeoDataFrame(lons)
Create a GeoDataFrame of longitudes at the given increment.

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

    increment: decimal degrees
    """
increment