导入osm数据到postgres工具

  • flyer456
    了解作者
  • GO
    开发工具
  • 4.7MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 0
    下载次数
  • 2022-05-27 20:47
    上传日期
导入osm数据到postgres数据库工具
osm2pgsql-1.6.0-x64.zip
  • osm2pgsql-bin
  • flex-config
  • places.lua
    1.3KB
  • simple.lua
    5.4KB
  • attributes.lua
    2.7KB
  • README.md
    2KB
  • generic.lua
    6.7KB
  • data-types.lua
    3.8KB
  • unitable.lua
    2KB
  • compatible.lua
    17.8KB
  • with-schema.lua
    647B
  • route-relations.lua
    3.8KB
  • geometries.lua
    6.4KB
  • scripts
  • osm2pgsql-replication
    21.3KB
  • libcurl.dll
    499.5KB
  • lua.dll
    231.5KB
  • COPYING
    17.9KB
  • LIBPQ.dll
    291KB
  • libexpat.dll
    148KB
  • README.md
    7.4KB
  • osm2pgsql.exe
    932.5KB
  • empty.style
    4.6KB
  • proj.dll
    3MB
  • bz2.dll
    73KB
  • sqlite3.dll
    998.5KB
  • zlib1.dll
    85KB
  • default.style
    9.1KB
  • tiff.dll
    433.5KB
  • libcrypto-1_1-x64.dll
    3.3MB
  • libssl-1_1-x64.dll
    674KB
  • lzma.dll
    152.5KB
  • jpeg62.dll
    605KB
  • boost_filesystem-vc143-mt-x64-1_78.dll
    129.5KB
内容介绍
# osm2pgsql https://osm2pgsql.org osm2pgsql is a tool for loading OpenStreetMap data into a PostgreSQL / PostGIS database suitable for applications like rendering into a map, geocoding with Nominatim, or general analysis. See the [documentation](https://osm2pgsql.org/doc/) for instructions on how to install and run osm2pgsql. [![Appveyor Build Status](https://ci.appveyor.com/api/projects/status/7abwls7hfmb83axj/branch/master?svg=true)](https://ci.appveyor.com/project/openstreetmap/osm2pgsql/branch/master) [![Github Actions Build Status](https://github.com/openstreetmap/osm2pgsql/workflows/CI/badge.svg?branch=master)](https://github.com/openstreetmap/osm2pgsql/actions) [![Packaging Status](https://repology.org/badge/tiny-repos/osm2pgsql.svg)](https://repology.org/project/osm2pgsql/versions) ## Features * Converts OSM files to a PostgreSQL DB * Conversion of tags to columns is configurable in the style file * Able to read .gz, .bz2, .pbf and .o5m files directly * Can apply diffs to keep the database up to date * Support the choice of output projection * Configurable table names * Gazetteer back-end for [Nominatim](https://wiki.openstreetmap.org/wiki/Nominatim) * Support for hstore field type to store the complete set of tags in one database field if desired ## Installing Most Linux distributions include osm2pgsql. It is available on macOS with [Homebrew](https://brew.sh/) and Windows builds are also available. See https://osm2pgsql.org/doc/install.html for details. ## Building The latest source code is available in the osm2pgsql git repository on GitHub and can be downloaded as follows: ```sh git clone git://github.com/openstreetmap/osm2pgsql.git ``` Osm2pgsql uses the cross-platform [CMake build system](https://cmake.org/) to configure and build itself. Required libraries are * [expat](https://libexpat.github.io/) * [proj](https://proj.org/) * [bzip2](http://www.bzip.org/) * [zlib](https://www.zlib.net/) * [Boost libraries](https://www.boost.org/), including system and filesystem * [PostgreSQL](https://www.postgresql.org/) client libraries * [Lua](https://www.lua.org/) (Optional, used for Lua tag transforms and the flex output) * [Python](https://python.org/) (only for running tests) * [Psycopg](https://www.psycopg.org/) (only for running tests) The following libraries are included in the `contrib` directory. You can build with other versions of those libraries (set the `EXTERNAL_*libname*` option to `ON`) but make sure you are using a compatible version: * [fmt](https://fmt.dev/) (>= 7.1.3) * [libosmium](https://osmcode.org/libosmium/) (>= 2.17.0) * [protozero](https://github.com/mapbox/protozero) (>= 1.6.3) * [rapidjson](https://rapidjson.org/) (>= 1.1.0) It also requires access to a database server running [PostgreSQL](https://www.postgresql.org/) 9.5+ and [PostGIS](https://www.postgis.net/) 2.2+. Make sure you have installed the development packages for the libraries mentioned in the requirements section and a C++ compiler which supports C++14. We officially support gcc >= 7.0 and clang >= 8. To rebuild the included man page you'll need the [pandoc](https://pandoc.org/) tool. First install the dependencies. On a Debian or Ubuntu system, this can be done with: ```sh sudo apt-get install make cmake g++ libboost-dev libboost-system-dev \ libboost-filesystem-dev libexpat1-dev zlib1g-dev \ libbz2-dev libpq-dev libproj-dev lua5.3 liblua5.3-dev pandoc ``` On a Fedora system, use ```sh sudo dnf install cmake make gcc-c++ boost-devel expat-devel zlib-devel \ bzip2-devel postgresql-devel proj-devel proj-epsg lua-devel pandoc ``` On RedHat / CentOS first run `sudo yum install epel-release` then install dependencies with: ```sh sudo yum install cmake make gcc-c++ boost-devel expat-devel zlib-devel \ bzip2-devel postgresql-devel proj-devel proj-epsg lua-devel pandoc ``` On a FreeBSD system, use ```sh pkg install devel/cmake devel/boost-libs textproc/expat2 \ databases/postgresql94-client graphics/proj lang/lua52 ``` On Alpine, use ```sh apk --update-cache add cmake make g++ boost-dev expat-dev \ bzip2-dev zlib-dev libpq proj-dev lua5.3-dev postgresql-dev ``` Once dependencies are installed, use CMake to build the Makefiles in a separate folder: ```sh mkdir build && cd build cmake .. ``` If some installed dependencies are not found by CMake, more options may need to be set. Typically, setting `CMAKE_PREFIX_PATH` to a list of appropriate paths is sufficient. When the Makefiles have been successfully built, compile with ```sh make ``` The man page can be rebuilt with: ```sh make man ``` The compiled files can be installed with ```sh sudo make install ``` By default, the Release build with debug info is created and no tests are compiled. You can change that behavior by using additional options like following: ```sh cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=ON ``` Note that `Debug` builds will be much slower than release build. For production use `Release` or `RelWithDebInfo` builds are recommended. ### Using the PROJ library Osm2pgsql has builtin support for the Latlong (WGS84, EPSG:4326) and the WebMercator (EPSG:3857) projection. If you need other projections you have to compile with the PROJ library. Both the older API (PROJ version 4) and the newer API (PROJ version 6.1 and above) are supported. Usually the CMake configuration will find a suitable version and use it automatically, but you can set the `USE_PROJ_LIB` CMake cache variable to choose between the following behaviours: * `4`: Look for PROJ library with API version 4. If it is not found, stop with error. * `6`: Look for PROJ library with API version 6. If it is not found, stop with error. * `off`: Build without PROJ library. * `auto`: Choose API 4 if available, otherwise API 6. If both are not available build without PROJ library. (This is the default.) ## Using LuaJIT To speed up Lua tag transformations, [LuaJIT](https://luajit.org/) can be optionally enabled on supported platforms. This can speed up processing considerably. On a Debian or Ubuntu system install the LuaJIT library: ```sh sudo apt-get install libluajit-5.1-dev ``` Configuration parameter `WITH_LUAJIT=ON` needs to be added to enable LuaJIT. Otherwise make and installation steps are identical to the description above. ```sh cmake -D WITH_LUAJIT=ON .. ``` Use `osm2pgsql --version` to verify that the build includes LuaJIT support. The output should show something like ``` Lua 5.1.4 (LuaJIT 2.1.0-beta3) ``` ## Help/Support If you have problems with osm2pgsql or want to report a bug, go to https://osm2pgsql.org/support/ . ## License This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. ## Contributing We welcome contributions to osm2pgsql. See [CONTRIBUTING.md](CONTRIBUTING.md) and https://osm2pgsql.org/contribute/ for information on how to contribute.
评论
    相关推荐
    • GIS.rar
      GIS源代码 提供强大的地质绘图函数库,用c#编写
    • PostGIS.rar
      一款最优秀的开源数据库postgis的功能介绍和使用手册
    • PostGIS.rar
      PostGIS简介 PostGIS是对象关系型数据库系统PostgreSQL的一个扩展,PostGIS提供如下空间信息服务功能:空间对象、空间索引、空间操作函数和空间操作符。
    • PostGIS.in.Action.2nd.Edition.2015.4.zip
      postgresql的数据库功能扩展,可以对空间数据进行管理,操控与分析
    • postgis-2.1.rar
      POSTGIS开发,对使用POSTGIS具有重要帮助。
    • Postgregis+PostGIS
      Postgregis+PostGIS,开源的空数据库。
    • GIS开发 PostGIS WebGIS 开源地图 移动GIS
      GIS开发 ArcGIS_Server简介.pdf 中间件在GIS开发中的应用.pdf 移动GIS开发手册.pdf 无线通信-开源框架下WEBGIS的设计与实现.pdf 使用Flex_API开发WebGIS应用.pdf ... Integrating_PostGIS_in_Web_Applications.pdf
    • linux离线安装postgresql与sde与postgis.zip
      需要在linux服务器内网部署postgresql与gis的人
    • postgis开发手册.zip
      此压缩包包括PostGIS 2.2.0dev 开发手册(伏念译) 、PostGIS 3.1.4dev Manual(双语-彩云小译网页翻译) 、PostGIS 3.1.4dev ...PostGIS 包括对基于 GIS 的 R-Tree 空间索引的支持,以及对 GIS 对象进行分析和处理的功能。
    • qpopper2.53.tar.Z
      pop3 server