Vector data
Upload data
For this example we will add a Roads layer from OpenStreetMap data for Moldova
(you can download OpenStreetMap data for your country here).
Download the archive and extract it somewhere on your file system.
Go to Database tab.
Click Upload button to add new data and populate fields with the following values:
- Name: moldova_roads
- Encoding: UTF-8
- dbf: Select roads.dbf from the Moldova folder
- shp: Select roads.shp from the Moldova folder
- shx: Select roads.shx from the Moldova folder
- SRID: 4326
- History: No
Click Submit to upload your data. If errors or warnings appear then the upload process failed (notices are for informational purposes), read carefully through them and correct your data or uploading options.
For more detailed information see Database.
Create layer
After uploading your data to the database, you can create layers from it.
To create a layer go to Layers tab.
Right click on the Root node under Manage layers and click Add
- Type. Container
- Name. Moldova
Click Submit, then check Active checkbox and click Submit. This will create a container node with name "Moldova".
Click Expand under Manage layers, right click on the Moldova node and select Add.
- Type. Vector
- Class. mdroads
- Table. moldova_roads
- Name. Roads
Click Submit, this will redirect you to "edit" tab of this layer. Check Active checkbox and click Submit.
This will create a vector layer Mdroads using the moldova_roads table in the Moldova container with a default class and style with random color.
By default layer will be visible to members of the Registered role.
Add visual styles
Lets create three visual styles for Roads to get better understanding of classes and styles. First style will be applied to trunk and primary roads, second style will be for secondary and tertiary, and third one for all other types of roads.
In the Layers tab under Manage layers, click Expand. Right click on Roads node and select Edit.
Click on Fields tab. Select "type" field, than double click on Visibility value and set Everywhere.
In order to use table fields in class expressions you need to set Visibility value of the field to Mapstyle or Everywhere.
Click on Classes and Styles tab.
Click Add in Classes table.
Select newly created row and populate (double click to edit) it with the following values:
- Name. mdroads_tr_pr
- Expression. ('[type]'='primary' or '[type]'='trunk')
Class mdroads_tr_pr should be selected (highlighted).
Click Add in Styles data table.
New empty row will be added, populate (double click to edit) it with the following values:
Add one more style, click Add in Styles data table.
New empty row will be added, populate (double click to edit) it with the following values:
Click Add in Classes table.
Select newly created row and populate (double click to edit) it with the following values:
- Name. mdroads_sc_tt
- Expression. ('[type]'='secondary' or '[type]'='tertiary')
Class mdroads_sc_tt should be selected (highlighted).
Click Add in Styles data table.
New empty row will be added, populate (double click to edit) it with the following values:
Add one more style, click Add in Styles data table.
New empty row will be added, populate (double click to edit) it with the following values:
Select mdroads_default in Classes data table, then select the only available style in Styles data table.
Click Submit to apply the changes.
You can now see how your styles for Roads layer are rendered.
For more details on vector layer options descriptions see Edit vector layer.
Raster data
Upload data
You should copy your raster data to the Giscuit "raster".
Raster data should be in one of the GDAL Raster Formats.
Download sample raster data from here.
Unpack and move files to "C:\ms4w\Apache\htdocs\giscuit\raster" (Microsoft Windows) or "/vaw/www/giscuit/raster" (Linux) folder.
Create layer
To create a layer go to Layers tab, right click on the Moldova node under Manage layers and click Add
- Type. Raster
- Class. HYP50MSR
- Data. HYP_50M_SR.tif
- Tile index. Leave this field empty
- Tile item. Leave this field empty
- Name. Satellite image
Click Submit, this will redirect you to "edit" tab of this layer.
Check Active checkbox and set SRID value to 4326, then click Submit.
For more details on raster layer options descriptions see Edit raster layer.