Hi Michael,
Welcome to Mapnik!
What does this query give in pgAdmin:
Select ST_Extent(the_geom) from cookcoroads;
My guess is that your extent is not correct. It must be in the
coordinates of the spatial reference system.
Another thing to try is to remove the hardcoded 'extent' parameter,
and let Mapnik dynamically fetch the extent.
Dane
On Feb 8, 2010, at 7:39 PM, Michael Corey wrote:
Hi all:
I'm new to the listserv, so please forgive me if this has been asked
before.
I have mapnik 0.7 up and running. I'm trying to use postGIS to
display layers so I can query for subsets of data when needed. I can
import this shapefile into postGIS, and when I query it in pgAdmin
everything looks fine. But when I add it to my mapnik XML, I don't
get any errors, but no data is showing on my image.
Here's the postgis part of my XML:
<Style name="roads">
<Rule>
<LineSymbolizer>
<CssParameter name="stroke">#CF3333</CssParameter>
<CssParameter name="stroke-width">1.5</CssParameter>
<CssParameter name="stroke-opacity">1.0</CssParameter>
</LineSymbolizer>
</Rule>
</Style>
<Layer name="cookroadspostgis" status="on" srs="+proj=utm +zone=15
+ellps=GRS80 +datum=NAD83 +units=m +no_defs" clear_label_cache="on">
<StyleName>roads</StyleName>
<Datasource>
<Parameter name="type">postgis</Parameter>
<Parameter name="host">localhost</Parameter>
<Parameter name="dbname">testpostgis</Parameter>
<Parameter name="user">******</Parameter>
<Parameter name="password">*******</Parameter>
<Parameter name="table">cookcoroads</Parameter>
<Parameter name="estimate_extent">false</Parameter>
<Parameter name="extent">-96.0000,14.2500,-90.0000,82.0000</
Parameter>
</Datasource>
</Layer>
Anyone see an issue? There's a note about testing if my postgis
plugin is installed here, but I don't really understand what it's
asking me to do:
http://trac.mapnik.org/wiki/PostGIS
Thanks much!
_______________________________________________
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