San Luis Obispo

From OpenStreetMap Wiki
Jump to: navigation, search
San Luis Obispo, San Luis Obispo, USA
Latitude: (35.274167, Longitude: -120.663056
Browse San Luis Obispo map
Edit map
External links:
Use this template for your city

San Luis Obispo is a city in San Luis Obispo, USA at latitude 35° 16′ 27″ North, longitude 120° 39′ 47″ West.

OpenStreetMap images (and underlying map data) are freely available under the OpenStreetMap License.

First meeting: October 13, 2010 7:00PM

  • Location: South Bay Training Center (old Sunnyside Elementary School) 880 Manzanita Drive Los Osos, CA 93402
  • BRING A LAPTOP ! (..if you can..if not there will be some desktops at the facility)

Walking Papers example: [1]

ogr2osm translation file

msg j03lar50n for a copy of public domain road shapefile in EPSG:2229

~caveats~: z-levels a.k.a. 'key:layer' will need to be addressed manually.

Incomplete, but it's a start j03lar50n and corevette think this is complete:

def translateAttributes(attrs):
    if not attrs:
        return
    tags = {}

    if int(attrs['SPD_PST']) > 0:
        tags.update({'maxspeed':attrs['SPD_PST'] + ' mph'})

    if attrs['FULLNAME']:
        tags.update({'name:fullname':attrs['FULLNAME'],'source:maxspeed':'sign' })

    if attrs['ONE_WAY'] in ('FT', 'TF'):
        tags.update({'oneway':'yes'})
    else:
        tags.update({'oneway':'no'})

    if attrs['CATEGORY'] == 'ROAD':
        tags.update({'highway':'residential'})
    elif attrs['CATEGORY'] in ('ALLEY', 'CAMPGROUND', 'MOBILE HOME PARK', 'PARK ROAD', 'PIER'):
        tags.update({'highway':'service'})
    elif attrs['CATEGORY'] == 'DRIVEWAY':
        tags.update({'highway':'service','service':'driveway'})
    elif attrs['CATEGORY'] == 'FREEWAY':
        tags.update({'highway':'motorway'})
    elif attrs['CATEGORY'] == 'HIGHWAY':
        tags.update({'highway':'primary'})
    elif attrs['CATEGORY'] == 'RAMP':
        tags.update({'highway':'motorway_link'})
    elif attrs['CATEGORY'] == 'TRAIL':
        tags.update({'highway':'path'})
    elif attrs['CATEGORY'] == 'CEMETERY':
        tags.update({'highway':'service'})

    if attrs['PAVED'] == 'YES':
        tags.update({'surface':'paved'})
    elif attrs['PAVED'] == 'NO':
        tags.update({'surface':'unpaved'})

    return tags