Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 86 lines (61 sloc) 2.99 KB

GeoPackage Styles Extension

Warning

This subsection is under discussion and may change radically.

Extension Title

Styles

Introduction

This extension provides a mechanism for styles in a GeoPackage.

Extension Author

Image Matters LLC, in collaboration with the participants of the OGC Vector Tiles Pilot and the OWS Context SWG.

Extension Name or Template

im_styles (will become gpkg_styles if adopted by OGC)

Extension Type

New requirement dependent on GeoPackage Core (Clause 1).

Applicability

This extension allows for stylesheets to be stored in a GeoPackage. How those stylesheets are used is outside of the scope of this specification, but they could be incorporated into OWS Context (see [owscontext_extension].

Scope

read-write

Specification

gpkg_extensions

To use this extension, add the following rows to this table.

Table 1. gpkg_extensions Table Rows
table_name column_name extension_name definition scope

gpkgext_stylesheets

null

im_styles

a reference to this file

read-write

gpkgext_symbols

null

im_styles

a reference to this file

read-write

Note

The values in the definition column SHOULD refer in some human-readable way to this extension specification. If the extension is adopted by OGC, it will gain the "gpkg_" prefix and get a different definition permalink.

gpkgext_stylesheets

This table contains stylesheets, organized by style set and option. The columns of this table are:

  • id is a primary key

  • layer_set is text defining a layer set that is suitable for styling in a common way

  • style is text describing a specific implementation for a layer set

  • format is the format of the stylesheet (e.g., mbstyle or sld)

  • stylesheet is the actual stylesheet BLOB

  • title is an optional text title

  • description is an optional text description

gpkgext_symbols

This table contains symbols, organized by style set and option. The columns of this table are:

  • id is a primary key

  • symbol_id is an string identifier such as a URI that can uniquely identify the symbol

  • content_type is the media type (formerly MIME type, e.g., image/svg+xml or image/png) of the symbol

  • symbol is the actual symbol BLOB

  • title is an optional text title

  • description is an optional text description

Note

As with other GeoPackage tables, this specification takes no position on how either of these tables are to be used by a client.

You can’t perform that action at this time.