Commit Graph

34 Commits

Author SHA1 Message Date
Scott Crosby f0ea2798ed Rename BlockHeader to BlobHeader 2010-12-21 11:39:02 -06:00
Scott Crosby 2b9b791603 Revert "Make a duplicate class OSMHeaderBlock that contains the same header data. Deprecate the old HeaderBlock."
Keep the old name.

This reverts commit 0618651553.
2010-12-21 11:36:21 -06:00
Scott Crosby 7575c1c9bd Change output when dumping granularity. 2010-12-14 11:26:13 -06:00
Scott Crosby 5233aaac0f Remap how we handle compression. 2010-12-14 11:24:58 -06:00
Scott Crosby b26c2e7da1 Define NODATE as Date(-1), or a date before 1970. 2010-12-14 11:24:47 -06:00
Scott Crosby f9de3cfc3c Code for building a test file. 2010-12-14 11:21:53 -06:00
Scott Crosby 0618651553 Make a duplicate class OSMHeaderBlock that contains the same header data. Deprecate the old HeaderBlock. 2010-12-14 10:03:05 -06:00
Scott Crosby ebb5cc57ca Remove dead code that causes a warning. 2010-12-14 10:02:20 -06:00
Scott Crosby f2d631527f Set the default date to be Jan 1 1970, not the current date. 2010-12-14 10:01:45 -06:00
Scott Crosby 3b1400109a Leave the LZMA support enabled, so that existing implementations will compile. 2010-12-11 11:36:17 -06:00
Scott Crosby 67d5ae5a1e Depreciate lzma and bzip2 compressed blocks.
No encoder has ever supported bzip2 or lzma. bzip2 has a poor
time/compression ratio, so obsolete it right now. lzma can be
considered for future use, so indicate it as a proposed extension.
2010-12-11 11:23:28 -06:00
Scott Crosby c8ebe317b8 Rremove the tag number for the proposed, but disabled, BBox extension.
The tag number is a duplicate with another field.
2010-11-16 11:39:01 -06:00
Scott Crosby 704cb83b3b For uncompressed data, store the uncompressed size. 2010-11-16 11:35:29 -06:00
Scott Crosby a879cdef06 Put the protobufs into a package.
Suggestion of ChristianVetter
2010-10-16 22:05:17 -05:00
Scott Crosby 571610d0d2 Obsolete the Changeset Message. 2010-10-07 11:55:09 -05:00
Scott Crosby b1e265f444 Allow timestamps to be 64 bit.
FORMAT-COMPATIBLE CHANGE --- doesn't change the encoding format.
API-INCOMPATIBLE CHANGE --- does break the API.
2010-10-07 11:54:53 -05:00
Scott Crosby 5f48470e21 Warn about files too big that they may cause failures. 2010-10-07 11:51:31 -05:00
Scott Crosby 6d760534c4 Allow bigger blocks before erroring out, and comment the bounds. 2010-09-16 13:42:05 -05:00
Scott Crosby 7be01e2217 Add in more error detection. 2010-09-15 11:41:26 -05:00
Scott Crosby eb251c32ea Whitespace and comment tweaks to protobuf. 2010-09-13 08:59:21 -05:00
Scott Crosby a1b2112264 Document more of the API for BinaryParser. 2010-09-08 07:48:54 -05:00
Scott Crosby e60be5b100 Strip off all non-osmosis metadata.
Until the metadata management in osm/osmosis is more thought out,
just match the existing schema.
2010-09-08 07:48:17 -05:00
Scott Crosby 8a7f784de2 Change API for invoking per-type primitivegroup serializers.
Before, when calling the per-type serializer, we passed it the
encapsulating primitiveblock, into which it would place a newly allocated
primitive group.

Instead, have it return the new group, and then we store in the primitive
block. This will help with re-using per-type serializers for serializing
into non-primitiveblocks.
2010-09-08 07:47:23 -05:00
Scott Crosby fbfba3bdea Don't sort the first 127 entries in the string table.
Gives a small .1% gain. In my design, I try to use the smallest integers as
much as possible so that deflate's entropy coder works more efficiently.
2010-09-02 14:22:41 -05:00
Scott Crosby 4f013ebbfc Be a bit more careful with error handling and printing warning messages. 2010-09-02 07:42:30 -05:00
Scott Crosby d5d93f9609 Clean up protocolbuffer definitions and document them. 2010-09-01 15:22:39 -05:00
Scott Crosby 382c2ce46a Include new 'denseinfo' fields. 2010-09-01 15:19:35 -05:00
Scott Crosby cd67ed44e7 Make the granularity state protected instead of private.
Subclasses need to be able to access it.
2010-09-01 15:19:35 -05:00
Scott Crosby 44c9870213 Remove unused imports. 2010-08-30 08:33:51 -05:00
Scott Crosby f933cf162e Revert "Excise references to now-obsolete Nodes"
This reverts commit a625c34e7d.
2010-08-30 08:30:13 -05:00
Scott Crosby a625c34e7d Excise references to now-obsolete Nodes 2010-08-25 11:41:34 -05:00
Scott Crosby 3c4e232984 Support new-format dense nodes that can contain keys and values.
To do this, I need to reserve string id #0 as a delimiter and cannot
generate it anymore.

Forward-compatible format change, in that old files cannot contain
new-format dense nodes, thus the delimiter bug is a non-issue.
2010-08-25 11:40:11 -05:00
Scott Crosby 8f0c4a8bc2 Protobufs and common Java code for binary format. 2010-08-25 11:40:06 -05:00
Scott Crosby efe47008e3 XX 2010-08-08 23:54:23 -05:00