Interesting, I was able to get the FlorentDotMe styles to work with
the default output of osm2pgsql without problem. I am guessing that all the
format transformations, spatialite -> shapefile -> postgis have resulted in
a schema change that makes them incompatible, like perhaps some field names
changed case, or were truncated.

I have also been playing around with doing a translation of the mapnik
stylsheets used on http://www.openstreetmap.org to GeoServer SLD. Not
complete at this point but you can see the result here:

  http://dev.opengeo.org/~jdeolive/osm.html

I would be happy to share the SLD's if interested but I imagine you will
have the same issue you did with the Florent styles.

The tool I used is the same idea as David's existing translator:

  https://github.com/dwins/mapnik2geotools

-Justin

On Mon, Nov 12, 2012 at 7:59 AM, Paul Meems <bontepaar...@gmail.com> wrote:

> Thanks Ákos and Sjoerd for your replies.
>
> I've tried https://github.com/FlorentDotMe/OSM-Styles-for-GeoServer and I
> couldn't get those to work with my data.
> Off-list I've been mailing with Sjoerd and tried the SLD files from
> Osminaboxbut with the same result: I'm missing attributes in my data.
> It seems
> http://download.geofabrik.de/openstreetmap/europe/netherlands.osm.pbfdoesn't 
> have all the attributed needed.
>
> I'll try again with the Europe extract and let you know.
>
> Thanks,
>
> Paul
>
>
>
> 2012/11/12 Sjoerd Brandsma <sbrand...@gmail.com>
>
>> Hi Paul,
>>
>> The guys from Osminabox did a good job on that. You can download it from
>> http://dev.ifs.hsr.ch/redmine/projects/osminabox/wiki
>> We are using europe data from geofabrik with the styles from osminabox.
>>
>> Best regards,
>> Sjoerd
>>
>>
>> On Mon, Nov 12, 2012 at 2:21 PM, Paul Meems <bontepaar...@gmail.com>wrote:
>>
>>> I've downloaded an OpenStreetMap extract for The Netherlands from
>>> http://download.geofabrik.de/openstreetmap/europe/
>>> I've imported the pbf file into SpatiaLite using GDAL. Eventually I will
>>> import the data into my PostGIS database.
>>> For now I export the lines table in SpatiaLite to shapefile. Next I
>>> create a layer from this shapefile in Geoserver.
>>>
>>> Now I'm looking for some SLD files that can handle the data.
>>> I've found several old ones but they either won't validate or they use
>>> fields I don't have.
>>> I tried modifying the SLDs I found but that didn't worked out very well.
>>>
>>> I'm assuming other people have been using Geofabrik data with Geoserver
>>> (v2.2.1) as well.
>>> Can you share your SLD file?
>>>
>>> Thanks,
>>>
>>> Paul
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_d2d_nov
>>> _______________________________________________
>>> Geoserver-users mailing list
>>> Geoserver-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>>
>>>
>>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_nov
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to