# Tutorial: Store, manage and publish your spatial data

NextGIS Web is a data-centric server GIS, allowing you to store, manage and publish spatial data in a flexible and effective way. In this step-by-step tutorial you will learn how to convert your GIS files into shareable Web Maps, tile and OGC services, as well as to create and manage data directly on the server. Register a free cloud account and try it right away!

[`Download tutorial data`](https://nextgis.com/tutorials/store_manage_publish_geospatial_data.zip) (source: [Wrocław Spatial Information System](https://geoportal.wroclaw.pl/))

Basic

1. [Create Account and Web GIS](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#step-1-6-create-free-account-and-web-gis)
2. [Create Resource group](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#step-2-6-access-your-web-gis-and-create-resource-group)
3. [Upload vector layer](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#step-3-6-upload-and-publish-vector-layer)
4. [Upload style](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#step-4-6-upload-a-style)
5. [Upload raster layer](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#step-5-6-upload-and-publish-raster-layer)
6. [Publish Web Map](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#step-6-6-publish-web-map)

Advanced

1. [Add external WMS layer to Web Map](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#add-external-wms-layer-to-web-map)
2. [Add basemaps](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#add-basemaps-to-web-map)
3. [Create vector layer inside Web GIS](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#create-vector-layer-inside-web-gis)
4. [Edit vector layer on Web Map, add file attachments](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#edit-vector-layer-on-a-web-map-add-file-attachments)
5. [Publish OGC API — Features service](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#ogc-api)
6. [What next](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#what-next)

<a id="account"></a>

## Step 1/6 Create free account and Web GIS

Go to my.nextgis.com, click the **Create Account** button and sign up using your email address.

After registration your account page would appear. Select the **Web GIS** menu on the left, come up with a name (ngw-quickstart.nextgis.com in this example) and select the nearest Data center location (DE Falkenstein in this example). Then click **Create Web GIS**.

![image](docs_ngcom/source/_static/tutorial_create_wg_en.png)

When the creation process is complete, the contents of the page will change. Direct link to your new Web GIS will appear.

![image](docs_ngcom/source/_static/tutorial_my_wg_en.png)

<a id="webgis"></a>

## Step 2/6 Access your Web GIS and create resource group

Click on the Web GIS link or type it into your browser.

You’ll see the main interface of your Web GIS.

![image](docs_ngcom/source/_static/tutorial_wg_main_en.png)

In NextGIS Web everything is a resource — layers, Web Maps, folders (groups), connections to services and databases. Resources are organized as files at your computer — in a tree.

Let’s create our first resource, a folder or *resource group* named Wroclaw. To do that, click the blue **Create resource** button on the top of the page.

#### TIP
If you don’t see the **Create resource** button, you should log in first. Click the **Sign in** button in the top right corner and then select **Sign in with NextGIS ID**.

![image](docs_ngcom/source/_static/tutorial_log_in_en.png)

When you click **Create resource**, a window appears showing all available options of what could you create in the current context. Select **Resource group**.

![image](docs_ngcom/source/_static/tutorial_select_group_en.png)

The resource creation window consists of several tabs, in this case we need to set only the name `Wroclaw` on the “Resource” tab.

![image](docs_ngcom/source/_static/tutorial_create_group_en.png)

Click **Create** and you’ll be redirected to the page of the new resource.

![image](docs_ngcom/source/_static/tutorial_group_result_en.png)

The URL in your browser is the path to the resource, and the numbers at the end of the URL are the resource ID.

*Wroclaw* is a child for the *Main resource group* folder where we created it. The parent resource is shown above the resource name.

Now you can upload data to this folder.

<a id="vector"></a>

## Step 3/6 Upload and publish vector layer

[Download the tutorial data](https://nextgis.com/tutorials/store_manage_publish_geospatial_data.zip) and unzip the archive.

Inside the *Wroclaw* folder, click **Create resource** and select the **Vector layer** type of resource.

![image](docs_ngcom/source/_static/tutorial_select_vlayer_en.png)

You’ll see the interface for resource creation with several tabs.

![image](docs_ngcom/source/_static/tutorial_create_vlayer_upload_en.png)

The default tab is called **Vector layer**. Add the file called `bicycle_roads.gpkg` from the tutorial dataset to the field **Select a dataset** by drag-and-drop or click on the field and then select the file.

After the upload completes, the file size is displayed.

Switch to the **Resource tab** and enter the Dislpay name for the new layer, for example, `Bicycle roads`. Then click the **Create** button.

![image](docs_ngcom/source/_static/tutorial_create_vlayer_name_en.png)

The vector layer is created and you are redirected to its page. The numbers at the end of the URL represent the ID of the layer.

This page has the information about the layer:

* Its place in the resource tree (Main resource group / Wroclaw);
* Basic metadata (geometry type, feature count etc.);
* List of fields a.k.a. attribute structure;

![image](docs_ngcom/source/_static/tutorial_vlayer_result_en.png)

In the **External access** section you’ll find an automatically generated URL that allows to access the layer via MVT vector tiles. Right away you can connect this data to a Web app or add it to QGIS using this link. [More on MVT tiles](https://docs.nextgis.com/docs_ngweb/source/external.html).

To view the data open the Feature table by clicking ![button_open_feature_table](docs_ngcom/source/_static/button_open_feature_table.png) **Table** in the menu on the right.

![image](docs_ngcom/source/_static/tutorial_feature_table_en.png)

Select any feature and click **Open** to view it.

In the opened window you see all the properties of the selected feature, including its attributes, geometry and a map representation on top of the default basemap.

![image](docs_ngcom/source/_static/tutorial_feature_preview_en.png)

The feature table allows you to inspect, edit and manage vector layer features as independent database records, without using maps or other applications. ([More on how to do it](https://docs.nextgis.com/docs_ngweb/source/feature_table.html#ngw-feature-table-blank))

<a id="style"></a>

## Step 4/6 Upload a style

If you want to generate **TMS tiles** or **add the layer to a Web Map**, you need to define its appearance a.k.a. a **style**. You can click **Create default QGIS style**, but for this layer we have a special file that determins colors and structures of the lines depending on the attribute values.

On the layer page click **Create resource** button. You’ll see a different set of available resources, because a vector layer could only be a parent for styles and forms. We use QGIS styles as the primary way to define data appearance. Select **QGIS vector style**.

![image](docs_ngcom/source/_static/tutorial_select_qstyle_en.png)

Upload the file called `bicycle_roads.qml` from the tutorial dataset. Then click the **Create** button.

![image](docs_ngcom/source/_static/tutorial_create_qstyle_en.png)

The vector style is created and you are redirected to its page. Click **Preview** in the menu on the right to see how the style looks.

In the **External access** section you’ll find an auto-generated URL you can use to connect this styled data as a Tiled Map Service, for example, add it to QGIS. [More on TMS](https://docs.nextgis.com/docs_ngweb/source/external.html#tms)

Now you can upload another type of layer or skip to the [Web Map creation](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#step-6-6-publish-web-map).

<a id="raster"></a>

## Step 5/6 Upload and publish raster layer

Return to the *Wroclaw* resource group by clicking its name at the current path.

![image](docs_ngcom/source/_static/tutorial_return_folder_en.png)

Click the **Create resource** button and select **Raster layer**.

![image](docs_ngcom/source/_static/tutorial_select_raster_layer_en.png)

On the **Raster layer** tab drag and drop the file called `plan.tif`  from the tutorial dataset or click **Select the dataset** and select the file. Then click the **Create** button.

![image](docs_ngcom/source/_static/tutorial_raster_upload_en.png)

The raster layer is created and you are redirected to its page. Here you can see:

* Its place in the resource tree (Main resource group / Wroclaw);
* Basic metadata (bands, dimensions etc.);

![image](docs_ngcom/source/_static/tutorial_raster_result_en.png)

In the **External access** section you’ll find an auto-generated **Cloud Optimized GeoTIFF** access URL to this data. Right away you can connect this data to external resources using this link.

You can style rasters with QGIS styles by creating child resources. To style RGB(A) rasters, however, you can simply click **Create default QGIS style**. Let’s do it. The default raster style is created and you are redirected to its page.

![image](docs_ngcom/source/_static/tutorial_def_raster_style_result_en.png)

**Raster tiles (TMS)** access URL to this data is automatically generated. Right away you can use this link to connect this data as styled raster tiles to external resources.

You could also click **Preview** in the right menu and explore the uploaded raster.

![image](docs_ngcom/source/_static/tutorial_raster_preview_en.png)

Now let’s create a Web Map with the data we’ve just uploaded.

<a id="webmap"></a>

## Step 6/6 Publish Web Map

Now that we have a couple of styled layers we are ready to publish our first Web Map. Return to the *Wroclaw* resource group and create a new resource — **Web Map**.

![image](docs_ngcom/source/_static/tutorial_select_webmap_en.png)

There are a lot of things that could be set for a Web Map. On the “Resource” tab enter the name for the map, e.g. `Wroclaw`.

![image](docs_ngcom/source/_static/tutorial_webmap_name_en.png)

On the **Layers** tab you define the content of this Web Map. Click the ![button_plus_layer](docs_ngcom/source/_static/button_plus_layer.png) **Layer** button. What is added to the map is the visual representation of the data, so you need to select styles, not layers. That is why checkboxes near layer names are not active. You could enter the layer and select its child style, or simply click ![button_pick_first](docs_ngcom/source/_static/button_pick_first.png) **Select first eligible child resource** on the right side of the layer to select it. Select both  *“Bicycle roads”* and  *“plan”* layers.

![image](docs_ngcom/source/_static/tutorial_webmap_add_layers_en.png)

After that you can click on the layer to edit its properties.

![image](docs_ngcom/source/_static/tutorial_webmap_layer_settings_en.png)

Switch to the **Settings** tab. Find the “Initial extent” row and click the **From layer** button. Then select *Bicycle roads* layer and click the **Pick selected** button. Now the map will open viewing the area of this layer.

![image](docs_ngcom/source/_static/tutorial_webmap_extent_en.png)

Click the **Create** button to finalize Web Map creation.

Web Map resources have a special **Display** mode. It could be accessed from the right panel of the resource interface.

![image](docs_ngcom/source/_static/tutorial_webmap_display_en.png)

Or, if you return to the *Wroclaw* resource group, click the ![button_open_web_map](docs_ngcom/source/_static/button_open_web_map.png) map icon to the right of the Web Map resource name.

When you click ![button_open_web_map](docs_ngcom/source/_static/button_open_web_map.png) **Display**, an interactive Web Map opens. Each map has its own display URL and a lot of tools to explore and manage the data.

![image](docs_ngcom/source/_static/tutorial_webmap_displayed_en.png)

Tabs on the left allow to manage layers, identify, find and edit features, share or print the map. See documentation for more information about Web Map tools and panels: [https://docs.nextgis.com/docs_ngweb/source/webmaps_client.html](https://docs.nextgis.com/docs_ngweb/source/webmaps_client.html)

You can create as many Web Maps as you need, combining available layers and their styles.

Let’s explore what else you can do:

* [Add data published on external servers](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#add-external-wms-layer-to-web-map);
* [Change basemap](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#add-basemaps-to-web-map);
* [Create a vector layer from skratch](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#create-vector-layer-inside-web-gis);
* [Edit vector features on a Web Map and attach files](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#edit-vector-layer-on-a-web-map-add-file-attachments);
* [Publish OGC API — Features service](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#publish-ogc-api-features-service).

<a id="wms"></a>

## Add external WMS layer to Web Map

You can connect external [WMS](../../glossary.html.md#term-WMS), [WFS](../../glossary.html.md#term-WFS), [TMS](../../glossary.html.md#term-TMS) and [PostGIS](../../glossary.html.md#term-PostGIS) data to NextGIS Web. Let’s explore it with the example of Wroclaw orthophoto serving as a public WMS service.

Return to the *Wroclaw* resource group and create a new resource — **WMS connection**.

![image](docs_ngcom/source/_static/tutorial_select_wms_con_en.png)

On the resource tab set the name — `Wroclaw orthophoto service`:

![image](docs_ngcom/source/_static/tutorial_wms_con_name_en.png)

On the WMS Connection tab set the URL: [https://gis1.um.wroc.pl/arcgis/services/ogc/OGC_ortofoto_2024/MapServer/WMSServer](https://gis1.um.wroc.pl/arcgis/services/ogc/OGC_ortofoto_2024/MapServer/WMSServer)

![image](docs_ngcom/source/_static/tutorial_wms_con_link_en.png)

Then click the **Create** button.

Return to the *Wroclaw* group again and create another resource — **WMS layer**.

![image](docs_ngcom/source/_static/tutorial_select_wms_layer_en.png)

On the Resource tab set the name — `Wroclaw orthophoto layer`:

![image](docs_ngcom/source/_static/tutorial_wms_layer_name_en.png)

On the **WMS Layer** tab click the  *“WMS Connection”* field and select **Wroclaw orthophoto service** resource, then click **Pick selected**.

![image](docs_ngcom/source/_static/tutorial_wms_layer_pick_con_en.png)

In the  *“Image format”* dropdown list select **image/png**, and in the *WMS layers* dropdown list select **Ortofotomapa 2024 - GUGiK**.

![image](docs_ngcom/source/_static/tutorial_wms_layer_settings_en.png)

Then click the **Create** button. WMS connection and layer are created.

In the **External access** section you’ll find an auto-generated URL that can be used to connect the data as **raster tiles**. Right away you can add this data to a Web app or a desktop app such as QGIS. Your Web GIS serves as a proxy for the WMS service.

![image](docs_ngcom/source/_static/tutorial_wms_layer_result_en.png)

To **add the WMS layer to the Web Map** return to the *Wroclaw* resource group and click the ![button_edit](docs_ngcom/source/_static/button_edit.png) pencil icon next to the Web Map.

![image](docs_ngcom/source/_static/tutorial_webmap_edit_select_en.png)

On the **Layers** tab click ![button_plus_layer](docs_ngcom/source/_static/button_plus_layer.png) **Layer** button, select  *“Wroclaw orthophoto layer”* and click **Pick selected** button. WMS layer is now added to the Web Map.

![image](docs_ngcom/source/_static/tutorial_webmap_add_wms_en.png)

Save the map and open it in display mode. You’ll see that a detailed orthophotomap from external source is now underlaying the previously uploaded data.

![image](docs_ngcom/source/_static/tutorial_webmap_with_wms_en.png)

<a id="basemap"></a>

## Add basemaps to Web Map

By default Web Maps use the standard OpenStreetMap basemap. But you can connect other basemaps and use them with your Web Maps.

Return to the *Wroclaw* resource group and create a new resource — **Basemap**.

![image](docs_ngcom/source/_static/tutorial_select_basemap_en.png)

Here you can use our public crowdsourced collection of map services, qms.nextgis.com. Start entering the name of the basemap in the **Pick from QMS** field and select what you need from search results.

![image](docs_ngcom/source/_static/tutorial_qms_pick_poistron_en.png)

All other fields will be filled automatically, also a preview will be available to explore the selected basemap.

An alternative way to create a basemap is to enter the URL for the **XYZ tiles** manually.

Use the slider in the top right corner to compare this basemap to the default OSM.

![image](docs_ngcom/source/_static/tutorial_basemap_preview_en.png)

On the **Resource** tab set the name of the basemap.

![image](docs_ngcom/source/_static/tutorial_basemap_name_en.png)

Click the **Create** button.

To add the newly created basemap to the Web Map return to the *Wroclaw* resource group and ![button_edit](docs_ngcom/source/_static/button_edit.png) edit the Web Map resource.

![image](docs_ngcom/source/_static/tutorial_webmap_enter_update_en.png)

On the **Basemaps** tab click ![button_plus_layer](docs_ngcom/source/_static/button_plus_layer.png) **Add** button and select the created Basemap resource. Then click **Pick selected** and save the Web Map.

![image](docs_ngcom/source/_static/tutorial_webmap_add_basemap_en.png)

Open the Web Map in ![button_open_web_map](docs_ngcom/source/_static/button_open_web_map.png) display mode. Now the new basemap is used.

![image](docs_ngcom/source/_static/tutorial_webmap_positron_en.png)

<a id="empty-layer"></a>

## Create vector layer inside Web GIS

It is possible not only to upload data from files, but also to create datasets right inside the Web GIS.

Return to the *Wroclaw* resource group and create a new resource — **Vector layer**.

![image](docs_ngcom/source/_static/tutorial_select_empty_layer_en.png)

Then open the dropdown menu on the “Vector layer” tab and select **Create empty layer**.

![image](docs_ngcom/source/_static/tutorial_create_empty_layer_en.png)

In the changed interface select the **Point** geometry type.

![image](docs_ngcom/source/_static/tutorial_empty_layer_geom_en.png)

On the **Resource** tab set the name for the new layer, e.g. `Bicycle parkings`, and click the **Create** button.

![image](docs_ngcom/source/_static/tutorial_empty_layer_name_en.png)

The vector layer is created and you are redirected to its page. Now you need to add attributes to it. Click ![button_edit](docs_ngcom/source/_static/button_edit.png) **Update** in the right menu.

![image](docs_ngcom/source/_static/tutorial_empty_layer_result_en.png)

Here, on the **Fields** tab, click the ![button_plus_layer](docs_ngcom/source/_static/button_plus_layer.png) **Add** button.

Set up the properties of the new field in the side panel:

* Display name: `Number of parking spaces`,
* Keyname: `parking_spaces`,
* Type: INTEGER.

![image](docs_ngcom/source/_static/tutorial_add_field_en.png)

Then click the **Save** button.

Now it’s time to create a style for the new layer. On the vector layer resource page click **Create resource** and select **QGIS vector style**.

On the **QGIS Style** tab open the dropdown menu and select **User-defined style**.

![image](docs_ngcom/source/_static/tutorial_style_custom_select_en.png)

Simple style constructor is available here. We recommend using QGIS to create styles, but for quick tasks this built-in constructor could be useful. Set up a blue circle with size 12 and white stroke with 1 width. Then click the **Create** button.

![image](docs_ngcom/source/_static/tutorial_style_custom_set_en.png)

A new vector layer is created inside Web GIS.

You can now add it to Web Maps and [publish it via OGC services](https://docs.nextgis.com/docs_ngcom/source/tutorial_webgis.html#publish-ogc-api-features-service).

But first we’ll add some features to the newly created layer using Web interface.

<a id="edit"></a>

## Edit vector layer on a Web Map, add file attachments

Return to the *Wroclaw* resource group and enter the ![button_edit](docs_ngcom/source/_static/button_edit.png) Update mode of the Web Map.

![image](docs_ngcom/source/_static/tutorial_webmap_edit_select_en.png)

First, go to the **Layers** tab, click the ![button_plus_layer](docs_ngcom/source/_static/button_plus_layer.png) **Layer** button and add *Bicycle parkings* layer by clicking ![button_pick_first](docs_ngcom/source/_static/button_pick_first.png) **Select first eligible child resource** on the right side of the layer. Then click **Pick selected**, and drag *Bicycle parkings* layers to the top of the layers list.

![image](docs_ngcom/source/_static/tutorial_webmap_add_empty_en.png)

Next, go to the  **Settings** tab, find the **Layers editing** dropdown menu and select **Enable**. Save the changes.

![image](docs_ngcom/source/_static/tutorial_webmap_enable_editing_en.png)

You have just added the new vector layer to the map and activated layer editing. Now go to the ![button_open_web_map](docs_ngcom/source/_static/button_open_web_map.png) “Display” mode of the map.

![image](docs_ngcom/source/_static/tutorial_webmap_display_en.png)

Zoom in to a place on the map where you would like to place a new bicycle parking. Next, open the layer’s context menu by clicking the three dots to the right of its name, and select ![button_edit](docs_ngcom/source/_static/button_edit.png) **Edit**.

![image](docs_ngcom/source/_static/tutorial_layer_start_edit_en.png)

New tools have appeared on the map.

Select ![+](docs_ngcom/source/_static/button_maptool_plus.png) tool and click on the desired place.

![image](docs_ngcom/source/_static/tutorial_add_point_en.png)

Pop-up modal window appears, where you can set attribute values, e.g. `15` as the number of parking spaces.

![image](docs_ngcom/source/_static/tutorial_add_point_attr_en.png)

There are also two additional tabs available. On the **Description** tab you could enter any rich-text with images to describe the feature. On the **Attachments** tab you could attach an unlimited number of photos or any sort of files to the feature. Change tab to the “Attachments”, click the ![button_upload](docs_ngcom/source/_static/button_upload.png) **Upload** button and select `Bicycle_parking.jpg` and `WRM_Regulations.pdf` files from the tutorial dataset.

![image](docs_ngcom/source/_static/tutorial_add_attachments_en.png)

Click the **OK** button to save the feature.

Then go to the context menu of *Bicycle parkings* layer again and click **Stop editing**.

![image](docs_ngcom/source/_static/tutorial_stop_edit_en.png)

Confirm the edits by clicking the **Save** button in the pop-up dialog.

![image](docs_ngcom/source/_static/tutorial_edit_confirm_en.png)

A new feature is created.

Click on the point symbol on the map. An identification panel will appear, where you can explore the attributes and attachments of the feature.

![image](docs_ngcom/source/_static/tutorial_feature_identify_en.png)

Click on the attached photos and panoramas to view them.

Now that we have data in this layer, let’s publish it via OGC API Features.

<a id="ogc-api"></a>

## Publish OGC API — Features service

We’ll publish this layer with OGC API — Features protocol so that it can be edited in external software. Go back to the *Wroclaw* resource group and create a new resource, **OGC API Features service**.

![image](docs_ngcom/source/_static/tutorial_select_ogcapif_en.png)

Service creation is a simple process. All you need is to select a layer.

On the **OGC API Features service** tab click the ![button_plus_layer](docs_ngcom/source/_static/button_plus_layer.png) **Add** button and select the *Bicycle parkings* layer, then click the **Pick selected** button.

![image](docs_ngcom/source/_static/tutorial_ogcapif_select_layer_en.png)

By default the resource would be called just “OGC API Features service”. To set a custom display name go to the **Resource** tab and enter `Bicycle parkings (features service)`. Then click the **Create** button.

#### NOTE
The name “Bicycle parkings” is already used for the vector layer resource, so you need to add “features service” at the end.

![image](docs_ngcom/source/_static/tutorial_ogcapif_name_en.png)

The service is created and you are redirected to its page. In the **External access** section you can see the endpoint of the published service. Copy the URL to use it in external applications.

![image](docs_ngcom/source/_static/tutorial_ogcapif_result_en.png)

<a id="next"></a>

## What next

Congratulations! You’ve completed the tutorial and learned the basics of geospatial data management in NextGIS Web.

There are still a lot of things to explore. You can learn to:

* manage users and permissions, allowing to set up unique access combinations for each layer, service and map;
* manage coordinate reference systems;
* manage data directly from QGIS, including project publishing, style management and collaborative editing;
* and many more.

Try other tutorials or dive into documentation to learn more.
