duancha1065 2011-12-10 14:09
浏览 76

使用Osmosis创建小型数据库

I read a lot about planet files, osmosis and stuff. What i try do do is create a small mysql database which contains some basic georeference data of locations. Something like this:

loc_id | loc_name | lat    | long  | level | level1 | level2 | level3 | level4 | level5
---------------------------------------------------------------------------------------
123    | germany  | 1.1234 | 1.1234| 2     | 1      | 0      | 0      | 0      | 0
5881   | berlin   | 1.1234 | 1.1234| 3     | 1      | 123    | 5881   | 0      | 0
123123 | kreuzberg| 1.1234 | 1.1234| 4     | 1      | 5881   | 5881   | 123123 | 0

I guess you get the idea. You can ignore the demo coordinates. What i need is a start on how to get this simple structure out of a osm file. I guess its not that easy. Especialy when trying to create that level data. I read that you can use osmosis pipes to arrange that, but i just need a start in the right direction.

  • 写回答

1条回答 默认 最新

  • duancu4731 2011-12-10 14:25
    关注

    You could also use osm2pgsql for getting a postgis database containing this information. The good thing is that Postgis supports various operations to do calculations with your data.

    评论

报告相同问题?

悬赏问题

  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 Revit2020下载问题
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
  • ¥15 单片机无法进入HAL_TIM_PWM_PulseFinishedCallback回调函数
  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 seatunnel 怎么配置Elasticsearch