Re: [osmosis-dev] problems with xapi, relations and osmosis
You need to check both of your OSM files downloaded from XAPI. The first one contains the full relation details as you expect. The second one contains an empty relation. Both have the same version number. The Osmosis *--merge* task is intentionally simple and doesn't alter relation contents in any way. In your case it is seeing that the relation exists in both inputs, it determines that both have the same version number, and picks the second one. The second one is written to the result file. The real question to ask is Why does XAPI return an empty relation for my second query?. But that will have to be asked on the dev mailing list ;-) Brett On Thu, Mar 11, 2010 at 6:22 AM, Jan Tappenbeck o...@tappenbeck.net wrote: hi ! i have following statement to download NODES for memorial-elements: http://xapi.openstreetmap.org/api/0.6/node[memorial:type=stolperstein][bbox=5.5,47.4,15.0,55.3] on the other way i have following statement for download the main-relation of this categorie: http://xapi.openstreetmap.org/api/0.6/relation[name=Stolpersteine][bbox=5.5,47.4,15.0,55.3] in the next moment i want to merge the files, and some other, with OSMOSIS. because there are some NODES in the first and the secound download-files. in the new file only this line exists for the relation relation id=407359 version=75 timestamp=2010-03-05T21:26:43Zuid=32786 user=Netzwolf changeset=4044847/ this is the osmosis-statement and the message: OSMOSIS_command: D:\DATEN\JAN\openstreetmap\osmosis\bin\osmosis.bat --read-xml xapi4osm_node_1.osm --sort-0.6 --read-xml xapi4osm_relation_1.osm --sort-0.6 --r ead-xml xapi4osm_node_2.osm --sort-0.6 --read-xml xapi4osm_relation_2.osm --sort -0.6 --merge --merge --merge --write-xml D:\DATEN\JAN\openstreetmap\osmosis\sto lpersteine.osm 10.03.2010 20:21:17 org.openstreetmap.osmosis.core.Osmosis run INFO: Osmosis Version 0.32 10.03.2010 20:21:17 org.openstreetmap.osmosis.core.Osmosis run INFO: Preparing pipeline. 10.03.2010 20:21:17 org.openstreetmap.osmosis.core.Osmosis run INFO: Launching pipeline execution. 10.03.2010 20:21:17 org.openstreetmap.osmosis.core.Osmosis run INFO: Pipeline executing, waiting for completion. 10.03.2010 20:21:17 org.openstreetmap.osmosis.core.Osmosis run INFO: Pipeline complete. 10.03.2010 20:21:17 org.openstreetmap.osmosis.core.Osmosis run INFO: Total execution time: 468 milliseconds. did anybody now why the relation in the merge-file is only one line and so uncomplete ??? regards Jan :-) ___ osmosis-dev mailing list osmosis-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/osmosis-dev ___ osmosis-dev mailing list osmosis-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/osmosis-dev
Re: [osmosis-dev] problems with xapi, relations and osmosis
On Fri, Mar 12, 2010 at 11:38 PM, Jan Tappenbeck o...@tappenbeck.net wrote: Am 12.03.2010 12:30, schrieb Brett Henderson: You need to check both of your OSM files downloaded from XAPI. The first one contains the full relation details as you expect. The second one contains an empty relation. Both have the same version number. The Osmosis *--merge* task is intentionally simple and doesn't alter relation contents in any way. In your case it is seeing that the relation exists in both inputs, it determines that both have the same version number, and picks the second one. The second one is written to the result file. The real question to ask is Why does XAPI return an empty relation for my second query?. But that will have to be asked on the dev mailing list ;-) HI ! but i did not understand your new question ! * when you download by http://xapi.openstreetmap.org/api/0.6/node[memorial:type=stolperstein][bbox=5.5,47.4,15.0,55.3]then there are only NODES - RIGHT ! * when you download by http://xapi.openstreetmap.org/api/0.6/node[memorial:type=stolperstein][bbox=5.5,47.4,15.0,55.3]then there are ALL RELATIONS-Members (even Nodes) and the RELATION defintion. Both of the above URLs are identical. I think you meant: URL1 - http://xapi.openstreetmap.org/api/0.6/node[memorial:type=stolperstein][bbox=5.5,47.4,15.0,55.3]http://xapi.openstreetmap.org/api/0.6/node%5Bmemorial:type=stolperstein%5D%5Bbbox=5.5,47.4,15.0,55.3%5D and URL2 - http://xapi.openstreetmap.org/api/0.6/relation[name=Stolpersteine][bbox=5.5,47.4,15.0,55.3]http://xapi.openstreetmap.org/api/0.6/relation%5Bname=Stolpersteine%5D%5Bbbox=5.5,47.4,15.0,55.3%5D Unless I'm mistaken, URL1 returns a file containing the following entry: relation id='407359' user='Netzwolf' uid='32786' timestamp='2010-03-05T21:26:43Z' version='75' changeset='4044847' /relation ONLY the MERGE file include the RELATION-Definition by ONE LINE - so i did not see a Problem by XAPI. OSMOSIS lose the relation-MEMBERS - OSMOSIS-Question ! Can you please open your two OSM files and check them before you add more !!'s to your emails ;-) Cheers, Brett ___ osmosis-dev mailing list osmosis-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/osmosis-dev
Re: [osmosis-dev] problems with xapi, relations and osmosis
Am 12.03.2010 13:52, schrieb Brett Henderson: On Fri, Mar 12, 2010 at 11:38 PM, Jan Tappenbeck o...@tappenbeck.net mailto:o...@tappenbeck.net wrote: Am 12.03.2010 12:30, schrieb Brett Henderson: You need to check both of your OSM files downloaded from XAPI. The first one contains the full relation details as you expect. The second one contains an empty relation. Both have the same version number. The Osmosis *--merge* task is intentionally simple and doesn't alter relation contents in any way. In your case it is seeing that the relation exists in both inputs, it determines that both have the same version number, and picks the second one. The second one is written to the result file. The real question to ask is Why does XAPI return an empty relation for my second query?. But that will have to be asked on the dev mailing list ;-) HI ! but i did not understand your new question ! * when you download by http://xapi.openstreetmap.org/api/0.6/node[memorial:type=stolperstein][bbox=5.5,47.4,15.0,55.3] then there are only NODES - RIGHT ! * when you download by http://xapi.openstreetmap.org/api/0.6/node[memorial:type=stolperstein][bbox=5.5,47.4,15.0,55.3] then there are ALL RELATIONS-Members (even Nodes) and the RELATION defintion. Both of the above URLs are identical. I think you meant: URL1 - http://xapi.openstreetmap.org/api/0.6/node[memorial:type=stolperstein][bbox=5.5,47.4,15.0,55.3] http://xapi.openstreetmap.org/api/0.6/node%5Bmemorial:type=stolperstein%5D%5Bbbox=5.5,47.4,15.0,55.3%5D and URL2 - http://xapi.openstreetmap.org/api/0.6/relation[name=Stolpersteine][bbox=5.5,47.4,15.0,55.3] http://xapi.openstreetmap.org/api/0.6/relation%5Bname=Stolpersteine%5D%5Bbbox=5.5,47.4,15.0,55.3%5D Unless I'm mistaken, URL1 returns a file containing the following entry: relation id='407359' user='Netzwolf' uid='32786' timestamp='2010-03-05T21:26:43Z' version='75' changeset='4044847' /relation ONLY the MERGE file include the RELATION-Definition by ONE LINE - so i did not see a Problem by XAPI. OSMOSIS lose the relation-MEMBERS - OSMOSIS-Question ! Can you please open your two OSM files and check them before you add more !!'s to your emails ;-) Cheers, Brett Hi Brett, the URL's are not identical !!! URL1 ask for NODE and URL2 ask for RELATION !!! regards Jan :-) ___ osmosis-dev mailing list osmosis-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/osmosis-dev
Re: [osmosis-dev] problems with xapi, relations and osmosis
On Sat, Mar 13, 2010 at 12:05 AM, Jan Tappenbeck o...@tappenbeck.net wrote: Am 12.03.2010 13:52, schrieb Brett Henderson: On Fri, Mar 12, 2010 at 11:38 PM, Jan Tappenbeck o...@tappenbeck.netwrote: Am 12.03.2010 12:30, schrieb Brett Henderson: You need to check both of your OSM files downloaded from XAPI. The first one contains the full relation details as you expect. The second one contains an empty relation. Both have the same version number. The Osmosis *--merge* task is intentionally simple and doesn't alter relation contents in any way. In your case it is seeing that the relation exists in both inputs, it determines that both have the same version number, and picks the second one. The second one is written to the result file. The real question to ask is Why does XAPI return an empty relation for my second query?. But that will have to be asked on the dev mailing list ;-) HI ! but i did not understand your new question ! * when you download by http://xapi.openstreetmap.org/api/0.6/node[memorial:type=stolperstein][bbox=5.5,47.4,15.0,55.3]then there are only NODES - RIGHT ! * when you download by http://xapi.openstreetmap.org/api/0.6/node[memorial:type=stolperstein][bbox=5.5,47.4,15.0,55.3]then there are ALL RELATIONS-Members (even Nodes) and the RELATION defintion. Both of the above URLs are identical. I think you meant: URL1 - http://xapi.openstreetmap.org/api/0.6/node[memorial:type=stolperstein][bbox=5.5,47.4,15.0,55.3]http://xapi.openstreetmap.org/api/0.6/node%5Bmemorial:type=stolperstein%5D%5Bbbox=5.5,47.4,15.0,55.3%5D and URL2 - http://xapi.openstreetmap.org/api/0.6/relation[name=Stolpersteine][bbox=5.5,47.4,15.0,55.3]http://xapi.openstreetmap.org/api/0.6/relation%5Bname=Stolpersteine%5D%5Bbbox=5.5,47.4,15.0,55.3%5D Unless I'm mistaken, URL1 returns a file containing the following entry: relation id='407359' user='Netzwolf' uid='32786' timestamp='2010-03-05T21:26:43Z' version='75' changeset='4044847' /relation ONLY the MERGE file include the RELATION-Definition by ONE LINE - so i did not see a Problem by XAPI. OSMOSIS lose the relation-MEMBERS - OSMOSIS-Question ! Can you please open your two OSM files and check them before you add more !!'s to your emails ;-) Cheers, Brett Hi Brett, the URL's are not identical !!! URL1 ask for NODE and URL2 ask for RELATION !!! Have you opened the files and actually checked them yet? I'm only going to say this once more. Download the OSM files from both URLs. OPEN! them both. Search for the text relation id='407359'. It appears in both files. One contains relation members, the other one doesn't. Brett ___ osmosis-dev mailing list osmosis-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/osmosis-dev