Choosing how to publish your data
Live or cached vector data, a vector set, a geoservice of your own or an external one: what each way does and when to use it.
Studio offers several ways to bring data into an app. They differ in how current the data is, how fast the map is, and what users can do with the data. This page compares them. The pages linked in the tables describe each way step by step.
The short version
| If ... | use ... |
|---|---|
| users edit the data in the app, or must always see the current state | live vector data |
| the data is large and changes rarely or on a schedule | cached vector data |
| you need a background map made of many layers | a vector set |
| other software or the mobile app should use your data as a map service | My Geoservices |
| the data is already offered as a service by someone else | a geoservice |
| you have terrain, 3D meshes, point clouds or panoramas | 3D data |
The ways compared
| Live vector data | Cached vector data | Vector set | |
|---|---|---|---|
| What it is | Features are read from your database every time the map moves. | The Tile Service writes the features into a tile cache in the warehouse. Apps read the cache. | Several cached layers in one tile cache with several scale levels. Geometries are simplified for small scales. |
| How current | Always current | As of the last cache run | As of the last cache run |
| Select, tooltips, queries | yes | yes. Queries always run on the database. | yes |
| Create and edit geometries in a browser app | yes | no | no |
| Used by | Browser apps, dashboards, desktop apps | Browser apps, dashboards, desktop apps | Browser apps, dashboards, desktop apps |
| Needs | A primary key column and a valid coordinate system | The same, and the Tile Service | Cached layers as members, and the Tile Service |
| Read more | Lesson 3: Import vector data | Cached vector data | Vector Sets |
| My Geoservices | Geoservice | 3D data | |
|---|---|---|---|
| What it is | The server publishes your vector data as WMS, WMTS and WFS. For WMS and WMTS it draws the map images with one style set. | A WMS, WMTS, WFS or tile service of another server. The app requests it directly from that server. | Terrain, 3D tiles and panoramas that Luciad Fusion delivers, and Google 3D tiles. |
| How current | WMS and WFS: always current. WMTS: a cache, filled on demand or in advance. | Whatever the other server delivers | Whatever Luciad Fusion delivers |
| Select, tooltips, queries | Tooltips through feature info | WMS: feature info and legend graphic. WFS: select. | – |
| Used by | Any software that reads WMS, WMTS or WFS, the mobile app, and your own apps as a geoservice | Browser apps, dashboards, desktop apps | Browser apps and dashboards |
| Needs | Vector data. The Tile Service only to fill a WMTS cache in advance. | The service must be reachable from the server and from the devices of the users. | Luciad Fusion and a Professional license |
| Read more | My Geoservices in M.App Enterprise | Different Geoservices in M.App Enterprise | Lesson 6: Using 3D data |
Live or cached?
This is the decision you make most often. You make it per layer, with the option Caching of the vector data. The list of vector data shows the state as Is Cached or Not Cached.
Live costs a database query for every map movement of every user. That is fine for layers with a moderate number of features in view and for everything users edit. It gets slow when one view contains very many features.
Cached moves that work to the Tile Service. The app then only loads prepared tiles. The price is that the cache shows the state of its last run.
What to know about caches
- A cached layer does not appear in an app until its cache has been built once. Switching on
Cachingdoes not build the cache. - You start a cache run with the button
Cachein the row of a desktop app, a Map View or a vector set. It caches all cached layers of that app in the coordinate system of the app. The run appears underCache → Orderswith its state and progress. - For regular updates create a job under
Cache → Jobs. A job repeats every given number of hours, days or weeks. See Cache orders and jobs. - Edits do not update a cache. If the data of a cached layer changes in the database, apps keep showing the old state until the next cache run.
Refresh geometry informationon a cached layer recalculates its extent and starts new cache runs for this layer and for every vector set it belongs to.- A new cache replaces the old one in one step. Users do not see a half-built cache. The previous version is deleted from the warehouse after three days.
- The Tile Service must run and use the same master database as the server. See Lesson 1: Installing M.App Enterprise.
Vector set or single cached layers?
A vector set is made for background maps: many layers, shown at all scales, not edited. Because it stores several scale levels with simplified geometries, it stays fast when the user zooms out. For the same reason it is not the right choice for layers whose exact geometry matters, such as parcels at a large scale.
Only layers with Caching switched on can be added to a vector set. In a desktop app the coordinate system of the app must be the one of the vector set.
When to publish a service of your own
Use My Geoservices when something outside your browser and desktop apps should show your data: another GIS, a web site, or the mobile app, which takes background maps as tile services.
- WMS and WFS read the database at every request.
- WMTS is a tile cache. With
OnDemanda tile is drawn the first time someone requests it and kept from then on; a change to the service empties this cache. WithoutOnDemandyou fill the cache in advance withCache Wmts. - WFS returns at most the number of features set in
Maximum feature count. The default is 5000. - A service can be protected with an API key.
Rules of thumb
- Start live. Switch a layer to cached when the map gets slow and the data does not have to be current to the minute.
- Keep every layer live that users edit in a browser app.
- Put the layers of your background map into one vector set.
- Give every cached layer a job, or make the cache run part of the process that updates the data.
- Use an external geoservice only if the browsers of your users can reach it. See Network, ports and firewall.