Vega projections
map longitude and latitude data to projected x
and y
coordinates. When working with geospatial data in OmniSci, you can use projections to define geographic points and regions.
General projections
property JSON format:
When you specify a projection, you must reference it in the Marks Property using the transform
object. For example, if you define the projection my_mercator_projection
:
you then reference it as follows:
The projections specification has the following properties:
Use Vega projection projection
alongside array columns:
Property
Data Type
Required
Description
name
string
X
User-assigned name of the projection.
type
string
X
Projection type. Currently supported types:
mercator
: Mercator map projection.
bounds
object
Specifies the longitude and latitude bounding box for the projection. Default values:
x
: [-180.0, 180.0]
y
: [-85.0, 85.0]