In LuciadRIA, the model represents the link between the server that provides the data and the map that shows the data in a layer. The purpose of LuciadRIA models is to store and manage geospatial data, while LuciadRIA views and layers take care of the visualization.

LuciadRIA distinguishes between:

  • RasterTileSetModel instances. These models are capable of downloading multi-leveled, tiled raster data to the browser, so that they can be visualized on a map.

  • RasterImageModel instances. These models also download raster data to the browser for visualization, but the raster data consists of images of arbitrary sizes and scales instead of tilesets.

  • FeatureModel instances. These models are capable of exchanging vector features between the browser and the server.

More specialized implementations of these classes are available to connect with certain data sources, for example to connect to a WMS or WFS server. Consult the documentation related to those data formats for more information.

Model properties

Geospatial reference

All model data must be geospatially referenced, so that the location of the data can be determined. Otherwise, you cannot display the data on a map.

In LuciadRIA , a reference is represented by the class CoordinateReference. All data in the model is associated with the same CoordinateReference.

You must configure the model’s CoordinateReference at model construction time. Depending on the nature of the model, you may need to configure the CoordinateReference manually. In other cases, the CoordinateReference is determined automatically from the available data by model utilities or factories.

For more information about geospatial references, see the model references documentation.

Model metadata

A model can be associated with additional information about the model data, or metadata.

The model metadata is represented by the class ModelDescriptor in the API. It specifies:

  • The source of the data

  • The data type

  • A name that can be used to label the data in the view

  • A description

You can retrieve the model descriptor from the model through the modelDescriptor property.