Mapnik2GeoTools can connect to GeoServer through the REST API and set up
your layers and styles for you. What it does is:
* configure one layer/resource for each table
* configure one style for each sld
* configure a layergroup with all the layers and styles in the correct
order (based on the layer order from the mapnik XML.)
You can of course make all these changes yourself, but for 91 styles it
might take a while.
BTW, Mapnik styles for OpenStreetMap often sneak subqueries into database
"table" names:
<Parameter name="table">
(select way, "addr:housenumber" from &prefix;_polygon where
"addr:housenumber" is not null and building is not null) as housenumbers
</Parameter>
GeoServer doesn't allow this so Mapnik2GeoTools creates .sql files you can
use to create real tables that can be used instead - if you don't run them
then you will not be able to apply all the styles.
--
David Winslow
OpenGeo - http://opengeo.org/
On Tue, Apr 23, 2013 at 4:05 AM, Hebert_Miller <[email protected]> wrote:
> Hello List,
>
> 1. I copied some OSM data with osm2pgsql to my potgresql database resulting
> in 4 tables to symbolize:
>
> osm_planet_line
> osm_planet_point
> osm_planet_polygon
> osm_planet_roads
>
> 2. I used mapnik2geotools to translate the black and white mapnik osm style
> to geoserver sld.
>
>
> https://trac.openstreetmap.org/browser/subversion/applications/rendering/parking/mapnik/bw-mapnik
>
> The Transformation is giving me back many sld style files(91).
>
> Now my question is:
>
> How can I associated the styles with my 4 layers?
>
> Thanks,
>
> Herbert Miller
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/mapnik2geotools-and-multiple-SLD-with-one-layer-tp5048989.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users