You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2022-04-29 14:29:42

FesterShinetop
New Member
Registered: 2022-04-29
Posts: 1

Different number of nodes (schools) in OSM data in shp- and pbf-fomat

Dear OSM-experts,

I am quite new to OSM, and trying to use its data for my research topic.
First of all: thanks for making this possible!

I just stumble over an issue, which I cannot explain myself:

I downloaded the osm data for the Karlsruhe district (Regierungsbezirk Karlsruhe, NUTS2) at Geofabrik in .shp.zip and .osm.pbf format.

When I unpacked the .shp.zip-file and opened the file gis_osm_buildings_a_free_1.shp in arcMaps. Filtering for schools in the attribute table I found 1450 polygons.

After filtering the .osm.pbf.file for schools with Osmosis (osmosis --rbf karlsruhe-regbez-latest.osm.pbf --nkv keyValueList="amenity.school" --wx schools.osm), I opened the resulting file in JOSM. The file contained only 301 nodes and a school in my neighborhood, which is included in the shp ist oviously missing.

Can somebody explain, where this discrepancx might come from?

Thanks
Fester

Offline

#2 2022-04-29 20:20:05

Tordanik
Moderator
From: Germany
Registered: 2008-06-17
Posts: 2,840
Website

Re: Different number of nodes (schools) in OSM data in shp- and pbf-fomat

Schools can be represented as points (nodes) or polygons (closed ways or multipolygon relations). It looks like your Osmosis command only considers nodes.


OSM in 3D: OSM2World

Offline

Board footer

Powered by FluxBB