yuuhayashi / citygml-osm

CityGMLデータをOSMデータに変換する
Other
19 stars 3 forks source link

Import Manual v1.0 (English version / 英語版) #97

Closed mapconcierge closed 2 years ago

mapconcierge commented 2 years ago

ここに貼り付けよろしく! 息吹

ibuki commented 2 years ago

@mapconcierge 初めまして。人違いだと思いますので、メンションご確認ください。

mapconcierge commented 2 years ago

@ibuki さん、失礼しました!! 間違えました!

ibuki76 commented 2 years ago

Plateau building data: Import procedure into OpenStreetMap

English Ver.

1. Download the Citygml file of the target area.

Download the file to be worked on from the G-Spatial Information Center .

After downloading the file, extract the zip file. The building data is stored under udx/bldg in the extracted directory.

Open the gml file in a text editor and confirm the survey year, as in <uro:surveyYear>2017</uro:surveyYear> .

198915896-906cc5e9-1e12-4e86-b188-feda4564991e

2. Download the conversion script

Download yuuhayashi / citygml-osm .

Extract the downloaded file and store citygml-osm-osm-jar-with-dependencies.jar in the file where the Plateau building data (in citygml format, under udx/bldg by default) is extracted.

3. Run scripts from 1st to 3rd

Start a Terminal (or Command Line, Powershell, etc.) and navigate to the folder where citygml was extracted.

Once there, type the following command.

$ java -Dfile.encoding=utf-8 -jar citygml-osm-jar-with-dependencies.jar 1st
$ java -Dfile.encoding=utf-8 -jar citygml-osm-jar-with-dependencies.jar 2nd
$ java -Dfile.encoding=utf-8 -jar citygml-osm-jar-with-dependencies.jar 3rd

In each command, the following processes are performed.

This process will result in four files with the same name but different file extensions ( .gml, .osm, .org.osm , and .mrg.osm ).

198910401-f95d3555-4adc-40e2-a451-236e47c62491

The above commands will produce the same results as if you had kicked in run.sh (or run.bat ), which is included in the distributed scripts.

The script will run against all gml files stored in the same directory. Therefore, if the number of files is large, it will take some processing time. If necessary, please separate directories accordingly.

4. Open .mrg.osm file with JOSM

Load a file with the extension .mrg.osm into JOSM. After importing the .mrg.osm file in JOSM, display the OSM image layer in the background for clarity.

The goal of this process is to edit the imported file and remove any objects that you do not want to import.

5. Install the todo plugin

Follow these steps to enable the todo plugin.

6. Filter settings

Set the following four filters in the JOSM filters.

In the composite file .mrg.osm , if there is an overlap between existing OSM data and PLATEAU data in the same area, the target object is given the tag "MLIT_PLATEAU:fixme" . A human must check if this object should be imported and handle it appropriately.

Basically, by processing the "MLIT_PLATEAU:fixme"=* , you can create a file that is ready for uploading. Use the JOSM filter to make it easier to find the target object.

Explanation of the values contained in "MLIT_PLATEAU:fixme"=*

7 Edit .mrg.osm

Edit .mrg.osm in JOSM.

Checking data to which "MLIT_PLATEAU:fixme" is not assigned

Activate the filter "MLIT_PLATEAU:fixme"=* to display only untagged data (i.e., objects with PLATEAU data as is).

198911791-4ab02fe8-bc8d-4a3b-a264-63183cb90912

Set the background image to a satellite photo taken as recently as possible, such as Bing or Maxar, and delete any building objects that clearly do not exist. At this time, compare the survey year of the gml data confirmed in step 1. with the year the background image was taken, and always delete objects according to the newer year.

Correspondence to data with "MLIT_PLATEAU:fixme"=*

With the filters type:node and "MLIT_PLATEAU:fixme"="delete 削除されます" activated, inverse "MLIT_PLATEAU:fixme"="delete 削除されます" , press <Ctrl + A> and select all objects in the layer Select all objects in the layer.

This will ensure that no nodes are selected when selecting objects.

Processing of "MLIT_PLATEAU:fixme"="PLATEAUデータで更新されています"

198913056-9eff3b3c-b61e-4a17-9768-bb52225e1733

Processing for "MLIT_PLATEAU:fixme"="delete 削除されます"

198913581-d756cfd2-b7de-45df-8e91-2f9b7bf8ab95

In case you are not sure what to do?

In most cases, PLATEAU building data is very superior and there is no need to worry about replacing the geometry.

However, PLATEAU data is not perfect either. If it is difficult to determine from aerial photos such as Bing what the current building conditions are and whether the building shape in the PLATEAU dataset is indeed correct, use the following clues to gather information.

For areas where PLATEAU data has been imported, we plan to use the Tasking Manager to perform a post-check process for geometry, etc., after the work is complete. Any major mistakes can be checked during the post-verification process.

8. Save the checked file

Save the checked file as a file with a name.

Save the target layer from the JOSM menu or from the JOSM layer list.

When saving, name the file checked.osm .

9. Conversion to a file for upload (run 4th script)

Convert the checked.osm file to a file for uploading.

From the Terminal (or Command Line, Powershell, etc.), enter the following command.

$ java -Dfile.encoding=utf-8 -jar citygml-osm-jar-with-dependencies.jar 4th

This will generate upload.osm based on checked.osm .

10. Upload to osm.org

Open upload.osm in JOSM and upload to osm.org .

Validation is performed with upload.osm opened in the layer.

Review any warnings or errors that appear as a result of the validation, and then upload the data. For example, there may be error handling of duplicate nodes at the edges, or relationships where no members exist.

When uploading, please add the following tags to the change set

 source = MLIT_PLATEAU
 source_ref = https://wiki.openstreetmap.org/wiki/MLIT_PLATEAU/imports_outline

The following format is also recommended as a comment on the change set The mesh number is the first 8 digits of the file you are working on.

Plateau import: [target municipality] [mesh number].

Example: Plateau import: Niiza-shi 53395404

11. Edit the target list in OSM wiki

OSM wiki has a list of file names for each municipality to be imported.

For each mesh number that has been imported, please note that it has been imported. If there are any remarks, please state them in the remarks field.


This is the end of the process.