Class/Object

geotrellis.vectortile.protobuf

ProtobufTile

Related Docs: object ProtobufTile | package protobuf

Permalink

case class ProtobufTile(layers: Map[String, ProtobufLayer], tileExtent: Extent) extends VectorTile with Product with Serializable

A concrete representation of a VectorTile, as one decoded from Protobuf bytes. This is the original/default type for VectorTiles.

import geotrellis.vectortile.protobuf._

val bytes: Array[Byte] = ...  // from some `.mvt` file
val key: SpatialKey = ...  // preknown
val layout: LayoutDefinition = ...  // preknown
val tileExtent: Extent = layout.mapTransform(key)

val tile: VectorTile = ProtobufTile.fromBytes(bytes, tileExtent)
Linear Supertypes
Product, Equals, VectorTile, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ProtobufTile
  2. Product
  3. Equals
  4. VectorTile
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ProtobufTile(layers: Map[String, ProtobufLayer], tileExtent: Extent)

    Permalink

    This is not meant to be called directly.

    This is not meant to be called directly. See this class's companion object for the available helper methods.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  8. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  9. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  10. val layers: Map[String, ProtobufLayer]

    Permalink

    Every Layer in this Tile, with its name as a lookup key.

    Every Layer in this Tile, with its name as a lookup key.

    Definition Classes
    ProtobufTileVectorTile
  11. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  13. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  15. val tileExtent: Extent

    Permalink

    The Extent of this Tile in some CRS.

    The Extent of this Tile in some CRS. A Tile's extent can be easily found from its Key and LayoutDefinition:

    val key: SpatialKey = ...
    val layout: LayoutDefinition = ...
    
    val tileExtent: Extent = layout.mapTransform(key)
    Definition Classes
    ProtobufTileVectorTile
  16. def toBytes: Array[Byte]

    Permalink

    Encode this VectorTile back into its original form of Protobuf bytes.

  17. def toProtobuf: Tile

    Permalink

    Encode this VectorTile back into a mid-level Protobuf object.

  18. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Product

Inherited from Equals

Inherited from VectorTile

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped