whosonfirst / py-mapzen-whosonfirst-export

Export tools for the Who's On First documents
BSD 3-Clause "New" or "Revised" License
2 stars 3 forks source link

edtf: value incorrectly converted in date: property #18

Closed stepps00 closed 5 years ago

stepps00 commented 5 years ago

London: https://spelunker.whosonfirst.org/id/101750367/

This record has an edtf:inception date of "0043~", though that date is being converted to "2043" in the date: properties. I tested an export of the record with a value of "0043?", instead, which didn't change anything.

Perhaps this is an issue with the edtf Python module, I'm not sure.

thisisaaronland commented 5 years ago

Yeah, it's a bug in the edtf library...

https://github.com/whosonfirst/py-mapzen-whosonfirst-export/blob/master/mapzen/whosonfirst/export/__init__.py#L187-L197

stepps00 commented 5 years ago

This is no longer an issue.. exportifying the record of London now results in:

    "date:inception_lower":"0043-01-01",
    "date:inception_upper":"0043-12-31",