Skip to content

Commit

Permalink
Removed raster from specification and will consider it for a future r…
Browse files Browse the repository at this point in the history
…elease. #50
  • Loading branch information
flippmoke committed Nov 20, 2015
1 parent 553fb2a commit 6a67f2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
12 changes: 5 additions & 7 deletions 2.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ For example, if a tile has an `extent` of 4096, values between 0 and 4095 are co

### 4.2. Features

A feature MUST contain either a `geometry` field or a `raster` field, but MUST NOT contain both. If a feature has a `geometry` field, it MUST also have a `type` field as described in the Geometry Types section.
A feature MUST contain a `geometry` field.

A feature MUST contain a `type` field as described in the Geometry Types section.

A feature MAY contain a `tags` field. Feature-level metadata, if any, SHOULD be stored in the `tags` field.

Expand Down Expand Up @@ -377,15 +379,11 @@ This polygon would be encoded with the following set of commands:
* LineTo(+0,-4) // Cursor at 17,13
* ClosePath // This is an interior ring because area is negative!

### 4.4. Raster Encoding

Currently the use of `raster` within features is considered **experimental**. Encoders MAY support this field, but are not required to do so at this time. In future releases of this specification a more detailed set of requirements for `raster` support may be defined. It is likely in the future that a format or set of formats for images or rasters will be specified as supported for this field.

### 4.5. Feature Attributes
### 4.4. Feature Attributes

Feature attributes are encoded as pairs of integers in the `tag` field of a feature. The first integer in each pair represents the zero-based index of the key in the `keys` set of the `layer` to which the feature belongs. The second integer in each pair represents the zero-based index of the value in the `values` set of the `layer` to which the feature belongs. Every key index MUST be unique within that feature such that no other attribute pair within that feature has the same key index. A feature MUST have an even number of `tag` fields. A feature `tag` field MUST NOT contain a key index or value index greater than or equal to the number of elements in the layer's `keys` or `values` set, respectively.

### 4.6. Example
### 4.5. Example

For example, a GeoJSON feature like:

Expand Down
2 changes: 0 additions & 2 deletions 2.0/vector_tile.proto
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ message Tile {
//
// The original position is (0,0).
repeated uint32 geometry = 4 [ packed = true ];

optional bytes raster = 5;
}

message Layer {
Expand Down
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Vector Tile Spec Changelog
n# Vector Tile Spec Changelog

### 2.0

Expand All @@ -13,7 +13,6 @@ The file [CONTRIBUTING.md] has been added to the repository to better define a r
#### Summary of Changes:

- Clarification of how polygon exterior and interior rings should be oriented and ordered: If present, any polygon interior rings (holes) must be oriented with the opposite winding order than their parent exterior rings and all interior rings must directly follow the exterior ring they belong too. Exterior rings must be oriented CW and interior rings must be oriented CCW (when viewed in screen coordinates).
- Added optional `raster` field on feature intended to store encoded image data representing exact and unbuffered tile extents for a layer. This is an experimental field in this version.
- Noted that first point does not have to be the same as last point prior to calling `ClosePath`.
- Polygon geometries now must not have self intersections or self tangency. (Example: spikes in rings)
- Addded definition of linear ring.
Expand Down

0 comments on commit 6a67f2e

Please sign in to comment.