Hi Jeff,
Glad you got your projection issue figured out.
Re: the other issue below, where Cascadenik does not carry through your layer,
one problem appears that your Datasource should be:
<Datasource>
<Parameter name="type">shape</Parameter>
<Parameter name="file">C:\Shapefiles\PATHS</Parameter>
</Datasource>
Not:
<Datasource>
<CSSParameter name="type">SHAPE</CSSParameter>
<CSSParameter name="file">C:\Shapefiles\PATHS</CSSParameter>
</Datasource>
If making that fix does not help then feel free to send me your mml and I will
take a closer look.
Dane
On Oct 7, 2010, at 1:58 PM, Jeff Scott wrote:
> Thanks Dane and Rob, I worked around the issue of loading cascadenik files
> from
> windows by hosting them on a webserver. I am still having a bit of an issue
> where the datasource I define in the mml file:
>
> <Layer class="points" srs="+proj=latlong +ellps=WGS84 +datum=WGS84 +no_defs" >
> <Datasource>
> <CSSParameter name="type">SHAPE</CSSParameter>
> <CSSParameter name="file">C:\Shapefiles\POINTS</CSSParameter>
> </Datasource>
> </Layer>
> <Layer class="paths" srs="+proj=latlong +ellps=WGS84 +datum=WGS84
> +no_defs"
>>
> <Datasource>
> <CSSParameter name="type">SHAPE</CSSParameter>
> <CSSParameter name="file">C:\Shapefiles\PATHS</CSSParameter>
> </Datasource>
> </Layer>
>
> Is getting lost in the compilation and the created xml is:
>
> <Layer name="layer 9" srs="+proj=latlong +ellps=WGS84 +datum=WGS84 +no_defs">
> <StyleName>text style 7 (PT)</StyleName>
> <StyleName>point style 8</StyleName>
> </Layer>
> <Layer name="layer 18" srs="+proj=latlong +ellps=WGS84 +datum=WGS84
> +no_defs">
> <StyleName>line style 13</StyleName>
> </Layer>
>
> It's not a big deal, but if someone knows why it'd save me a few minutes.
>
>
> Well, I solved my original issue while writing this so I'll just write it up
> in
> case someone else searches for something similar. I'm using google maps to
> display the tiles created by TileCache against a map created by Mapnik from a
> shapefile. Inspecting the shapefile and the end result map the lines all
> looked
> correct, but were shifted down in google maps a little bit. This was because
> the srs in the mapnik xml was:
> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0
> +k=1.0
> +units=m +nadgri...@null
> but in the tilecache.cfg file it was:
> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0
> +k=1.0
> +units=m +nadgri...@null +wktext +no_defs
> updating the config file makes it all look nice.
>
> Thanks again
>
> Jeff
>
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users