osm2pgsql | OpenStreetMap data to PostgreSQL converter | Map library

 by   openstreetmap C++ Version: 1.8.1 License: GPL-2.0

kandi X-RAY | osm2pgsql Summary

kandi X-RAY | osm2pgsql Summary

osm2pgsql is a C++ library typically used in Geo, Map applications. osm2pgsql has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has medium support. You can download it from GitHub.

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 for instructions on how to install and run osm2pgsql.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              osm2pgsql has a medium active ecosystem.
              It has 1358 star(s) with 466 fork(s). There are 74 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 32 open issues and 719 have been closed. On average issues are closed in 414 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of osm2pgsql is 1.8.1

            kandi-Quality Quality

              osm2pgsql has 0 bugs and 0 code smells.

            kandi-Security Security

              osm2pgsql has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              osm2pgsql code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              osm2pgsql is licensed under the GPL-2.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              osm2pgsql releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.
              It has 610 lines of code, 80 functions and 1 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of osm2pgsql
            Get all kandi verified functions for this library.

            osm2pgsql Key Features

            No Key Features are available at this moment for osm2pgsql.

            osm2pgsql Examples and Code Snippets

            No Code Snippets are available at this moment for osm2pgsql.

            Community Discussions

            QUESTION

            Import only point features with osm2pgsql using style file
            Asked 2022-Mar-24 at 09:49

            I am very new osm2pqsgl. I have downloaded a osm.pbf file for all of Europe and I want to add this data to my Postgres database. However, I am only interested in points, no linestrings nor polygon, and within the points I am only interested in these tags and its information (like denomination, or name)

            I have edited the style file from osm2pgsql down to this

            ...

            ANSWER

            Answered 2022-Feb-05 at 17:02

            Not sure if osm2pgsql can do it on the fly, however you can use osmosis for filtering the input files. Another option would be osmium.

            On the other way, I'm not sure if discarding polygons a'priori is a proper assumption. You can find a lot of tourism, religion etc. tags on buildings (or other polygons). I would suggest to calculate centroids for them and union them together.

            Source https://stackoverflow.com/questions/70541035

            QUESTION

            Query all primary roads from PostGis Database filled with OSM Data within a boundary
            Asked 2021-Apr-09 at 13:36

            I imported OpenStreetMap data through osm2pgsql into PgSQL (PostGIS) and I would like to get an SF object from the data containing all primary roads (geometry) within a an area (bbox) into R.

            I got lost since I would like to have also relations and nodes and im not sure if only a query on planet_osm_roads will be sufficient and how the imported data structure is different to osm xml data im normaly working with. I understand it is probably a bit broader question but

            I would appreciate a start so to say to understand the query language better.

            This is my approach but sadly i get an error

            ...

            ANSWER

            Answered 2021-Apr-09 at 09:31

            I figured it out. This is how you would get an SF object out of PostGIS Database filled with OSM Data within 11.2364353533134,47.8050651144447,11.8882527806375,48.2423300001326 BBOX:

            Source https://stackoverflow.com/questions/67008997

            QUESTION

            osm2pgsql (v. 1.4.0) "Unknown option -- t" (Usage error)
            Asked 2020-Dec-22 at 09:52

            I'm trying to import the OSM sample data from Mastering PostGIS, Chapter 1. I'm on Windows and am using this x64 binary (v1.4.0) I found here.

            The call is as in the book

            ...

            ANSWER

            Answered 2020-Dec-22 at 09:52

            You're missing a - in --hstore. With a single dash, it processed -h and -s which exist but it didn't know what to do with -t.

            Source https://stackoverflow.com/questions/65406377

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install osm2pgsql

            You can download it from GitHub.

            Support

            If you have problems with osm2pgsql or want to report a bug, go to https://osm2pgsql.org/support/ .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/openstreetmap/osm2pgsql.git

          • CLI

            gh repo clone openstreetmap/osm2pgsql

          • sshUrl

            git@github.com:openstreetmap/osm2pgsql.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link