osmium diff

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

osmium diff

elisabeth benoit

Hello,

I am currently using version 1.10 of osmium and running a diff between two osm.pbf time-filtered at different dates.

In osmium diff documentation, it says:

"If objects appear in both files and are identical they are preceded by a space (’ `) character, if they are in both files, but different, they are preceded by an asterisk ('*`). Otherwise they get a minus ('-`) or plus ('+’) character to show that they are only in the first or second file, respectively."

I launch this command

osmium diff time-filtered-20200501.osm.pbf time-filtered-20200514.osm.pbf -c -f compact > diff.compact

But in diff.compact file I dont have any *, all objects are preceded by + ou - as if objects were only added or removed. I know some objects have been modified, but they appear as added.

For instance, I get +w4040099 v20 as if way 4040099 had been added.

Does anyone know why this is not conform to the documentation?

Best regards,
Elisabeth

_______________________________________________
dev mailing list
[hidden email]
https://lists.openstreetmap.org/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: osmium diff

Jochen123
Hi!

I don't have your original input files and only one line from the output
doesn't give me much to go on, but my guess is that there is a
misunderstanding here, what it means for an object to be different the
way "osmium diff" sees it.

If you have two versions of the same object, they will be seen as two
different objects. So

-w123 v1 ...
+w123 v2 ...

means that one file has version 1 of way 123 and the other has version
2. If you see

*w123 v1 u123 ...

It means that version 1 of way 123 is in both files but has different
attributes somewhere.

Jochen

On Tue, May 19, 2020 at 02:13:29PM +0200, elisabeth benoit wrote:

> Date: Tue, 19 May 2020 14:13:29 +0200
> From: elisabeth benoit <[hidden email]>
> To: [hidden email]
> Subject: [OSM-dev] osmium diff
>
> Hello,
>
> I am currently using version 1.10 of osmium and running a diff between two
> osm.pbf time-filtered at different dates.
>
> In osmium diff documentation, it says:
>
> "If objects appear in both files and are identical they are preceded by a
> space (’ `) character, if they are in both files, but different, they are
> preceded by an asterisk ('*`). Otherwise they get a minus ('-`) or plus
> ('+’) character to show that they are only in the first or second file,
> respectively."
>
> I launch this command
>
> osmium diff time-filtered-20200501.osm.pbf time-filtered-20200514.osm.pbf
> -c -f compact > diff.compact
>
> But in diff.compact file I dont have any *, all objects are preceded by +
> ou - as if objects were only added or removed. I know some objects have
> been modified, but they appear as added.
>
> For instance, I get *+w4040099 v20 *as if way 4040099 had been added.
>
> Does anyone know why this is not conform to the documentation?
>
> Best regards,
> Elisabeth

> _______________________________________________
> dev mailing list
> [hidden email]
> https://lists.openstreetmap.org/listinfo/dev


--
Jochen Topf  [hidden email]  https://www.jochentopf.com/  +49-351-31778688

_______________________________________________
dev mailing list
[hidden email]
https://lists.openstreetmap.org/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: osmium diff

elisabeth benoit

ok, thanks, that's clear.

best regards,
Elisabeth

Le mar. 19 mai 2020 à 15:53, Jochen Topf <[hidden email]> a écrit :
Hi!

I don't have your original input files and only one line from the output
doesn't give me much to go on, but my guess is that there is a
misunderstanding here, what it means for an object to be different the
way "osmium diff" sees it.

If you have two versions of the same object, they will be seen as two
different objects. So

-w123 v1 ...
+w123 v2 ...

means that one file has version 1 of way 123 and the other has version
2. If you see

*w123 v1 u123 ...

It means that version 1 of way 123 is in both files but has different
attributes somewhere.

Jochen

On Tue, May 19, 2020 at 02:13:29PM +0200, elisabeth benoit wrote:
> Date: Tue, 19 May 2020 14:13:29 +0200
> From: elisabeth benoit <[hidden email]>
> To: [hidden email]
> Subject: [OSM-dev] osmium diff
>
> Hello,
>
> I am currently using version 1.10 of osmium and running a diff between two
> osm.pbf time-filtered at different dates.
>
> In osmium diff documentation, it says:
>
> "If objects appear in both files and are identical they are preceded by a
> space (’ `) character, if they are in both files, but different, they are
> preceded by an asterisk ('*`). Otherwise they get a minus ('-`) or plus
> ('+’) character to show that they are only in the first or second file,
> respectively."
>
> I launch this command
>
> osmium diff time-filtered-20200501.osm.pbf time-filtered-20200514.osm.pbf
> -c -f compact > diff.compact
>
> But in diff.compact file I dont have any *, all objects are preceded by +
> ou - as if objects were only added or removed. I know some objects have
> been modified, but they appear as added.
>
> For instance, I get *+w4040099 v20 *as if way 4040099 had been added.
>
> Does anyone know why this is not conform to the documentation?
>
> Best regards,
> Elisabeth

> _______________________________________________
> dev mailing list
> [hidden email]
> https://lists.openstreetmap.org/listinfo/dev


--
Jochen Topf  [hidden email]  https://www.jochentopf.com/  +49-351-31778688

_______________________________________________
dev mailing list
[hidden email]
https://lists.openstreetmap.org/listinfo/dev