[OSM-dev] Slippy map tiles mismatch

Matt Hampel matthew.hampel at gmail.com
Tue Feb 23 23:46:55 GMT 2010


>> I have tried using two shapefiles (one reprojected into NAD83) and two
>> corresponding projections in the Map element.
>>
>> NAD83:
>> <Map srs="+proj=latlong +ellps=NAD83 +datum=NAD83 +no_defs">
>
> The default osm.xml map style uses the google-style 900913 projection.
> If you want to generate a latlong map then you will also have to update
> the projection string in generate_tiles.py. Have you done this?
>
>
>> Layer SRS WKT:
>> GEOGCS["GCS_North_American_1983",
>>     DATUM["North_American_Datum_1983",
>>         SPHEROID["GRS_1980",6378137.0,298.257222101]],
>>     PRIMEM["Greenwich",0.0],
>>     UNIT["Degree",0.0174532925199433]]
>>
>
> That should be OK, but I wanted to see the <Datasource> block in your
> style for this shapefile. There are some easy mistakes which can be made
> in setting up the layer projection and extent.
>
>        Jon

Sorry about that. I've posted the whole XML file here:
http://paste.ly/HV (made via cascadenik)

Hopefully this is what you're looking for?
        <Datasource>
      <Parameter name="type">shape</Parameter>
      <Parameter
name="file">/Users/matth/Projects/D-ACIS/area/geo/raw/michigan.shapefiles/michigan_highway.shp</Parameter>
    </Datasource>




More information about the dev mailing list