代码之家  ›  专栏  ›  技术社区  ›  deerawan

像OpenStreetMap一样显示地图

  •  12
  • deerawan  · 技术社区  · 14 年前

    this cloudmade osm file 为了我的国家,印度尼西亚。我下载了印度尼西亚.osm.bz2.

    我成功地将它导入到我的PostGis中,并在GeoServer上设置了它,但它显示的地图与OpenStreetMap不同。我在GeoServer中选择了planet_osm_polygon作为图层。最后,我用openlayers展示了这个。 alt text http://deerawan.com/blogimages/map_polygon.jpg

    alt text http://deerawan.com/blogimages/map-indo.png

    我从cloudmaked使用的OSM文件有错吗?

    4 回复  |  直到 14 年前
        1
  •  10
  •   igorti    14 年前

    我建议你跟着去 this tutorial 来自Geoserver博客。

        2
  •  4
  •   tonio    14 年前

    没有关于它的显示方式的信息

    你有两个解决方案: -在地图中直接使用OSMOpenLayers.Layer.OSM( http://openlayers.org/dev/examples/osm.html ), -您可以使用MapOSM服务器,也可以使用地图服务器: http://trac.osgeo.org/mapserver/wiki/RenderingOsmData ,不知道这些样式是否适用于geoserver)

        3
  •  4
  •   zpea ginoy george    13 年前

    数据

    Natural Earth 项目。

    样式表

    GeoServer使用 OGC SLD

    我也在研究 tool to convert Mapnik map files 到GeoServer配置。它和 MapQuest Open

        4
  •  0
  •   Shaun McDonald    13 年前

    我想你错过了海岸线和世界边界。有更多关于 osm wiki 关于在哪里下载额外的数据绘制海岸线。