So Dane Springmeyer pointed out that the problem I was dealing with was
that my source files are in EPSG:2226, not EPSG:2326, and that my
stand-alone was working because I was using the bounds of the data and
not trying to use actual coordinates. Changed the init string to my
layer and all is good, except...

Now I can center my OpenLayers map on Petaluma with:

     map.setCenter(new OpenLayers.LonLat(-122.634888,38.233865), 12);

But to do the same thing with an OSM layer, I need:

     map.setCenter(new
     OpenLayers.LonLat(-122.634888,38.233865).transform( new
     OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984 new
     OpenLayers.Projection("EPSG:900913") // to Spherical Mercator
     Projection ), 2);

I know it's gotta be like two lines to transform my mapnik.Layer
appropriately.

Thanks.

And, yes, I've gotta go read a whole bunch more stuff on projections.
Sigh.

Dan
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to