Opened 3 years ago
Closed 3 years ago
#22059 closed defect (needinfo)
no errorr, but question for developer
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | template_report | Cc: |
Description
I open shape file in JOSM ====> then save local as myareas.osm. JOSM generete automatic negative node id. This is okay. But by the next session a day later, it uses the same node id. Because the identical node id 's, it is not possible to merge this areas with osmosis. How can I tell to JOSM, which negative node id 's it should use ?
What is the expected result?
What happens instead?
Please provide any additional information below. Attach a screenshot if possible.
URL:https://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2022-04-04 22:26:00 +0200 (Mon, 04 Apr 2022) Build-Date:2022-04-05 01:30:55 Revision:18427 Relative:URL: ^/trunk Identification: JOSM/1.5 (18427 de) Windows 7 32-Bit OS Build number: Windows 7 Professional (7601) Memory Usage: 133 MB / 247 MB (48 MB allocated, but free) Java version: 1.8.0_331-b09, Oracle Corporation, Java HotSpot(TM) Client VM Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel Screen: \Display0 1920×1080 (scaling 1.00×1.00) \Display1 1920×1080 (scaling 1.00×1.00) Maximum Screen Size: 1920×1080 Best cursor sizes: 16×16→32×32, 32×32→32×32 System property file.encoding: Cp1252 System property sun.jnu.encoding: Cp1252 Locale info: de_DE Numbers with default locale: 1234567890 -> 1234567890 Plugins: + BuildingGeneralization (36) + DirectDownload (35951) + DirectUpload (35951) + HouseNumberTaggingTool (35951) + ImproveWay (32) + InfoMode (35940) + alignways (35951) + austriaaddresshelper (1597341117) + buildings_tools (35951) + colorscheme (35893) + continuosDownload (99) + dataimport (35932) + ejml (35924) + jaxb (35952) + josm-batch-downloader (1.0.4) + log4j (35924) + merge-overlap (35893) + namemanager (35893) + notesolver (0.4.1-2) + openvisible (35893) + pbf (35893) + poly (35893) + turnrestrictions (35893) Tagging presets: + https://josm.openstreetmap.de/josmfile?page=Presets/CommonKeyboardShortcuts&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/Heritage&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/LaneAttributes&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/BuildingPreset&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/Historical_Objects&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/MastAndTower&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/ParkingLanes&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/Quick-highways&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/SourceSpain&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/WifiHotspots&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/Windrad&zip=1 Map paint styles: - https://josm.openstreetmap.de/josmfile?page=Styles/Surface-DataEntry&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/ShowID&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/ColourGPSData&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Enhanced_Lane_and_Road_Attributes&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1
Attachments (0)
Change History (4)
comment:1 by , 3 years ago
comment:2 by , 3 years ago
Don-vip probably knows more, but I believe we always start numbering negative numbers at -1
, and then increment that as new data comes in. If the new data comes in, and has a negative id
, we then increment the negative number counter to that negative id - 1. Order matters for this. If we encounter -1000
and then -999
, -999
will become -1001
. If we then encounter -1001
, -1001
should then become -1002
.
IIRC, we use a static field to store that negative id counter, so if you load an ordered file with -1000
as the most negative number, and then you load another ordered file with -100
as the most negative number, you will have an object with -1100
instead of -100
.
You may want to use osmium renumber to renumber the ids, if you really want to use osmosis to merge the files.
comment:3 by , 3 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
@thomasmorgenstern: Do the above responses answer your question?
comment:4 by , 3 years ago
Resolution: | → needinfo |
---|---|
Status: | needinfo → closed |
There is no way to tell JOSM what negative ids it should use. You also cannot be sure that it uses the given values when you open an *.osm file that contains negative ids.I don't know why it is done this way.
You should be able to merge layers inside JOSM instead of using osmosis.