On Jan 29, 2011, at 2:49 AM, Peter Peterse wrote: > Hello, > > on the export problem I think I find something.
What did you find? To confirm, the colors are correct when viewed in the QGIS window, but change when you do Plugins -> Quantumnik -> Export Map Graphics ? > I have more than one of the same shape files imported. Sure, that should work. Both QGIS and Quantumnik attempt to give shapefiles unique layer names. > With a query I > changed the style. What do you mean? > I think that the query isn't converted in the mapnik.xml. I see one problem at least below in your stylesheet. It looks like (from the nik2img debug output) that your data is in projected coordinates (e.g large numbers like 204561.770373), whereas QGIS is reporting that your data is in EPSG:4326, which is appearing in the Mapnik 'srs' definition. So, you need to tell QGIS what projection your data is in. The gocha is that if QGIS cannot detect the projection of your data the default setting it to assume EPSG:4326. I recommend changing this behavior in the Preferences > CRS setting to "Prompt for unknown projections". Then if you set the correct projection in the project properties (is it the spherical mercator, or EPSG:3857, from OSM data?) things should start working more predictably. > > ========= > <?xml version="1.0" encoding="utf-8"?> > > <Map srs="+init=epsg:4326" bgcolor="rgb(255,255,255)"> > > <Style name="TERREIN_VLAK1_style"> > > <Rule> > > <PolygonSymbolizer> > > <CssParameter name="fill">rgb(207,150,123)</CssParameter> > > <CssParameter name="gamma">0.7</CssParameter> > > </PolygonSymbolizer> > > <LineSymbolizer> > > <CssParameter name="stroke-width">0.96</CssParameter> > > </LineSymbolizer> > > </Rule> > > </Style> > > <Style name="TERREIN_VLAK_style"> > > <Rule> > > <PolygonSymbolizer> > > <CssParameter name="fill">rgb(1,144,50)</CssParameter> > > <CssParameter name="gamma">0.7</CssParameter> > > </PolygonSymbolizer> > > <LineSymbolizer> > > <CssParameter name="stroke-width">0.96</CssParameter> > > </LineSymbolizer> > > </Rule> > > </Style> > > <Style name="WATERDEEL_VLAK_style"> > > <Rule> > > <PolygonSymbolizer> > > <CssParameter name="fill">rgb(90,229,210)</CssParameter> > > <CssParameter name="gamma">0.7</CssParameter> > > </PolygonSymbolizer> > > <LineSymbolizer> > > <CssParameter name="stroke-width">0.96</CssParameter> > > </LineSymbolizer> > > </Rule> > > </Style> > > <Layer name="TERREIN_VLAK" srs="+init=epsg:4326"> > > <StyleName>TERREIN_VLAK_style</StyleName> > > <StyleName>TERREIN_VLAK1_style</StyleName> > > <Datasource> > > <Parameter > name="file">C:/Users/peter/Downloads/SHAPE_ongeclipt/TERREIN_VLAK.shp</Parameter> > > <Parameter name="type">shape</Parameter> > > </Datasource> > > </Layer> > > <Layer name="WATERDEEL_VLAK" srs="+init=epsg:4326"> > > <StyleName>WATERDEEL_VLAK_style</StyleName> > > <Datasource> > > <Parameter > name="file">C:/Users/peter/Downloads/SHAPE_ongeclipt/WATERDEEL_VLAK.shp</Parameter> > > <Parameter name="type">shape</Parameter> > > </Datasource> > > </Layer> > > </Map> > > <!-- nik2img.py mapnik.xml out.png -d 1039 315 -e 204561.770373 > 447095.837513 208717.668385 448344.614597 --> > > <!-- <MinScaleDenominator>801714269.952</MinScaleDenominator> --> > > ========= > > I hope that you can help me. > > Regards, > Peter > > > On 29-1-2011 11:27, Peter Peterse wrote: >> Hello, >> >> As you may already read I'm trying to create a map with QGIS and Quantumnik. >> The first problem which I had is that the panel Mapnik Rendered Maps >> stays white. >> The second problem is that the map doesn't look like I see in QGIS when >> i export map graphics. >> Some screen shots >> Rendered map with QGIS: >> <http://osm.peterse-uithuizen.com/peter/Winsum-noord_QGIS.png> >> >> Rendered map with export map graphics: >> <http://osm.peterse-uithuizen.com/peter/Winsum-noord_Mapnik.png> >> >> Does any one knows whats wrong? >> >> Thanks for your help. >> >> Regards, >> Peter >> _______________________________________________ >> 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 _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

