3 Creating layers from CartoDruid
This section indicates how to create a vector layer from scratch with CartoDruid.
-
First, open the TOC (Table of Contents).
-
Click the "Add layer" button to open the dialog for selecting the layer type.
3.1 Creation of vector layer
When selecting "Vector Layer," we will have the following options:
|
a. We select "New layer" and the following form will appear:
|
1. At the top, basic layer identification and display fields are shown:
|
|
2. Immediately after, a selection of proposed "special" fields appears, which will be automatically added to the layer if the check is left marked.
|
|
3. In the next section, within the same form, the user can add the fields they need. For each field, the name and type must be indicated. CartoDruid supports types:
|
|
4. Finally, the layer symbology must be selected. Symbology will determine how the layer entities will be drawn (border, background color, transparency, etc.).
|
3.2 Creation of raster layer
For creating a "Raster Layer," we have the following options:
|
If we select MBTiles/Rasterlite file, a file explorer will open to select the corresponding file. After this, the following dialog will appear:
|
We indicate the name and description that will appear in the TOC and the minimum and maximum display scales. |
3.2.1 WMS layer
When we want to add a WMS layer, it must be previously added to the WMS services catalog. For this, when we press on WMS Layer, the following dialog opens:
|
Here we have the list of different WMS service groups we have.
|
When pressing "New WMS Service," the following dialog appears where we indicate the Service characteristics:
|
In this form, we need to specify the following parameters to configure the WMS service:
|
|
Once the service is added to the catalog (by default in the "Default" group), we can:
|
3.2.2 TMS layer
Similarly to WMS services, when we want to add a TMS layer, it must first be loaded into the TMS services catalog. To do this, when we click on TMS Layer, the following dialog will open:
|
Here we have the list of different TMS service groups we have:
|
When pressing "New TMS Service," the following dialog appears where we indicate the Service characteristics:
|
|
|
Once the service is added to the catalog (by default to the "Default" group), we can load it on the map, edit it, delete it, or move it to another group. |
With the data entered in the form, the application will create a sqlite-spatialite database in the /cartodroid/data directory of the device and update the file cartodroid/config/crtdrdLayers.xml to include the definition of the new layer.