我正在尝试使用OpenStreetMap下载和转换华盛顿特区的osgEarth数据。
我正在使用来自openstreetmap_flat.earth的osgEarth示例。
<map name="OpenStreetMap" type="projected" version="2">
<options>
<profile>spherical-mercator</profile>
<lighting>false</lighting>
<terrain engine="quadtree" range_mode="PIXEL_SIZE_ON_SCREEN" tile_pixel_size="256"/>
</options>
<image name="osm" driver="xyz">
<url>http://[abc].tile.openstreetmap.org/{z}/{x}/{y}.png</url>
<profile>spherical-mercator</profile>
<cache_policy usage="none"/>
</image>
</map>我的直流区的边框是SW(-77.0518,38.8414) NE(-76.9488,38.9589)
我使用osgearth_package和以下命令行选项来执行我的下载。目标是得到19个层次的DC区域的细节。我相信我正在输入坐标作为UTM,但我可能是可悲的错误。
osgearth_package --tms ../openstreetmap_flat.earth --out c:/osgearth/ --out-earth osm.earth --max-level 19 --verbose --bounds -8564949.622936 4698767.775034 -8587714.346282 4698703.947754输出不太正确。我得到了南美洲和非洲的部分地区。此外,虽然我得到了更高层次的细节从DC地区,它远没有接近19层。更像是5级。
我只期望DC区域出现在我的地图上,有19个层次的细节,没有别的。
我做错了什么吗?有什么建议吗?
发布于 2015-10-26 18:09:28
我认为你的问题是球状墨卡托对UTM。osgearth_package http://docs.osgearth.org/en/latest/user/tools.html#osgearth-package的文档
例如-界xmin包的界(以地图坐标;default=entire映射),您可以提供多个界。
所以,我认为你的边界坐标应该在球状墨卡托中,而不是在UTM中。
https://stackoverflow.com/questions/33321955
复制相似问题