Hi List- I've been trying to get some shapefile data in any projection
besides GCS WGS84 (EPSG:4326) and can't seem to get tiles generated. I
think i'm just not understanding the "*+proj...*" strings and how to
correctly implement them.
So, if my shapefile data is already in the desired projection: EPSG:102700,
NAD_1983_StatePlane_Montana_FIPS_2500_Feet
- can i just specify the projection in my "*mapfile.xml*" like:
<?xml version="1.0" encoding="utf-8"?>
<Map srs="
+proj=lcc +lat_1=45 +lat_2=49 +lat_0=44.25 +lon_0=-109.5
+x_0=600000.0000000001 +y_0=0 +ellps=GRS80 +datum=NAD83
+to_meter=0.3048006096012192 +no_defs
" bgcolor="#4682b4">
<Style name="base Style">
/* STYLE STUFF */
</Style>
<Layer name="base" srs="
+proj=lcc +lat_1=45 +lat_2=49 +lat_0=44.25 +lon_0=-109.5
+x_0=600000.0000000001 +y_0=0 +ellps=GRS80 +datum=NAD83
+to_meter=0.3048006096012192 +no_defs
" status="1" clear_label_cache="0">
<StyleName>base Style</StyleName>
<Datasource>
<Parameter name="file">/mapnik/data/basemap_MTSP</Parameter>
<Parameter name="type">shape</Parameter>
</Datasource>
</Layer>
</Map>
- When i try this, the tiles (via tilecache.py) are rendered, but the
output is just the bg color, and none of the data is rendered. Do i need to
furthur specify the projection in the *tilecache.cfg* file? such as:
[base]
type=Mapnik
mapfile=/mapnik/python/mapfile.xml
srs=EPSG:102700
projection= +proj=lcc +lat_1=45 +lat_2=49 +lat_0=44.25 +lon_0=-109.5
+x_0=600000.0000000001 +y_0=0 +ellps=GRS80 +datum=NAD83
+to_meter=0.3048006096012192 +no_defs
- I've also tried this procedure with shapefile data that is already in
the UTM12N projection *EPSG: 32612* without success.
Any ideas?
Thanks!
-Jamie Robertson
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users