[Geoserver-users] [GeoServer][OSM] Administrative Borders rendering

Hi. First off, thanks for the great product.

I googled and followed any piece of advice for importing OpenStreetMap data into Geoserver. Using the latest nightly build, I got rid of painting problems in 2.0.1, so now Geoserver+PostGis is working fine. I shall run a dedicated server with only one country (Mexico, in this case), so I downloaded and imported all the osm files from http://downloads.cloudmade.com/north_america/mexico.

I fixed the SLD from blog post at (http://blog.geoserver.org/2009/01/30/geoserver-and-openstreetmap/) so that is validated (I may send you the new files), and made a Layer Group with osm_lines, osm_roads and osm_polygons. Now my map looks like these:

http://img641.imageshack.us/i/img2b.png/
http://img641.imageshack.us/i/img1w.png/

How can I show the administrative boundaries and the coastline? I appended the coastline and administative borders into the database, so I was thinking that would show the entire map correctly. Even with other styles, I cannot see the lines, so it's not a SLD issue.

Any piece of advice?
Thanks,
Marco

On 3/10/10 1:11 PM, Marco De Angelis wrote:

Hi. First off, thanks for the great product.

I googled and followed any piece of advice for importing OpenStreetMap data into Geoserver. Using the latest nightly build, I got rid of painting problems in 2.0.1, so now Geoserver+PostGis is working fine. I shall run a dedicated server with only one country (Mexico, in this case), so I downloaded and imported all the osm files from http://downloads.cloudmade.com/north_america/mexico.

I fixed the SLD from blog post at (http://blog.geoserver.org/2009/01/30/geoserver-and-openstreetmap/) so that is validated (I may send you the new files), and made a Layer Group with osm_lines, osm_roads and osm_polygons. Now my map looks like these:

http://img641.imageshack.us/i/img2b.png/
http://img641.imageshack.us/i/img1w.png/

How can I show the administrative boundaries and the coastline? I appended the coastline and administative borders into the database, so I was thinking that would show the entire map correctly. Even with other styles, I cannot see the lines, so it's not a SLD issue.

Any piece of advice?

So on the map we made those slds for we didn't use OSM boundaries or coastlines data, since it wasn't that great at the time. I think it's a lot better now. But the dataset we used was different. See http://demo.opengeo.org/openstreetmap/

So we don't have experience with OSM. But I just tried to import the mexico OSM shapefiles (using the OpenGeo Suite, which has GeoServer at its core) and they all worked fine. One issue that likely will come up for you though is that the OSM data is not polygons - it's just lines. So you can't easily cover the backgrounds right away. You'll have to process the data a bit or use another dataset.

If you do figure it out please do share, along with fixes for the SLDs. Ivan, cced, made them and I'm sure would appreciate a contribution. Something he didn't even to get start on was using the OSM point data - it'd be great to have icons for lots of different OSM features at the finer zoom levels.

Chris

Thanks,
Marco

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Chris, I would like to know where we can find this SLD files.
I have the same problems with Geoserver 2.0.1
Thank you so much!
--
ADRIAN PATANIA
adrianpatania.blogspot.com