[OSM-dev] Slippy map tiles mismatch

Jon Burgess jburgess777 at googlemail.com
Wed Feb 24 22:57:01 GMT 2010


On Tue, 2010-02-23 at 18:46 -0500, Matt Hampel wrote:
> >> 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>

The style looks reasonable. Did you update the projection string in
generate_tiles.py as I mentioned earlier?

> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev






More information about the dev mailing list