<a id="ngcom-data-upload"></a>

# How to upload data

Raster and vector geodata are uploaded to [Web GIS](description.html.md#ngcom-description) by creating [Raster layer](#ngcom-raster-layer) and [Vector layer](#ngcom-vector-layer) resources respectively.

#### NOTE
The size limit for uploaded files depends on the selected plan. For **Premium** - 50 GiB, for **Free** - 5 GiB and **Mini** - 10 GiB.

<a id="ngcom-data-preview"></a>

## Quick preview

To quickly view the downloaded data - click on the **Preview** button on the right menu in the **Additional** section.

#### NOTE
For vector data, previews are available for both the layer and the style. For rasters - for style only. For TMS and WFS layers, preview is also available.

The preview function in the frontend is described [here](https://docs.nextgis.com/docs_ngweb/source/layers.html#data-preview)

<a id="ngcom-raster-layer"></a>

## Raster data

### Input data requirements

* Supported format: [GeoTIFF](../../glossary.html.md#term-GeoTIFF)
* Inputs must be geographically referenced and have correctly set CRS description as GeoTIFF metadata.

### Creating raster layer

1. Open the [Resource group](https://docs.nextgis.com/docs_ngweb/source/create_resource.html#create-resource-group-to-manage-data) where you want to create a data layer (by default the main page of Web GIS has Main resource group displayed);
2. Press **Create resource** and select **Raster layer**;
3. In the opened dialog, go to Resource tab and type a name for the new layer in the field Display name. Then go to Raster layer tab and select a file with raster geodata;
4. Press Create button. If Raster layer is created successfully, you’ll see its name in Child resources pane of the relevant Resource group.

If you plan to add this raster to QGIS directly from your Web GIS, turn on Upload as Cloud Optimized GeoTIFF (COG) checkbox.

#### IMPORTANT
If you plan to display the Raster layer on a [Web Map](webmap_create.html.md#ngcom-webmap-create) or publish it using [WMS](../../glossary.html.md#term-WMS) protocol, you need to create a [Style](https://docs.nextgis.com/docs_ngcom/source/styles.html#ngcom-styles) for it first.

<a id="ngcom-raster-requirements"></a>
![image](docs_ngcom/source/_static/create_raster_layer_select_en.png)![image](docs_ngcom/source/_static/create_raster_layer_upload_en.png)![image](docs_ngcom/source/_static/create_raster_layer_resourse_name_save_en.png)

Read more about upload of raster geodata to Web GIS [here](../../docs_ngweb/source/layers.html.md#ngw-create-raster-layer).

#### SEE ALSO
If you need to upload large rasters, here’s [how to calculate if you have enough storage](https://docs.nextgis.com/docs_ngweb/source/layers.html#ngw-raster-volume)

<a id="ngcom-vector-layer"></a>

## Vector data

### Input data requirements

Supported formats: ESRI Shapefile (zip-archived, no sub-folders, no sub-archives, one zip - one layer), GeoPackage, GeoJSON, GML, KML, CSV or XLSX. For CSV and XLSX only points are supported, coordinates must be in lat and lon columns.

Use NextGIS Connect if you need to upload data in other formats.

#### WARNING
Avoid using Unicode symbols in data field names. While such data can be uploaded, you may experience problems working with it via WFS, in NextGIS Mobile or visualization (especially if styles are using such fields). Use plain Latin for field names and set up field aliases to show Unicode names.

### Creating vector layer

1. Open [Resource group](https://docs.nextgis.com/docs_ngweb/source/create_resource.html#create-resource-group-to-manage-data) where you want to create a data layer (by default from the main page of Web GIS you can access Main resource group);
2. Press **Create resource** and select **Vector layer**;
3. In the opened dialog, go to Vector layer tab and select a file with vector geodata or select geometry type for an empty vector layer;
4. Then in Resource tab type a name for the new layer in the field Display name.
5. Press Create button. If Vector layer is created successfully, you’ll see its name in Child resources pane of the relevant Resource group.

#### IMPORTANT
If you plan to display Vector layer on a [Web Map](webmap_create.html.md#ngcom-webmap-create) or publish it using [WMS](../../glossary.html.md#term-WMS) protocol you need to add a [Style](styles.html.md#ngcom-styles) for it first.

![image](docs_ngcom/source/_static/create_vector_layer_select_en_2.png)![image](docs_ngcom/source/_static/create_vector_layer_upload_en.png)![image](docs_ngcom/source/_static/create_vector_layer_resourse_name_save_en_3.png)

Web GIS can process multy-layer datasets. If an archive contains several layers, then after it is uploaded, you will be asked to select which layer will be used for creating Vector layer resource.

Read more about upload of vector geodata to Web GIS [here](../../docs_ngweb/source/layers.html.md#ngw-create-vector-layer).

#### NOTE
You can also upload raster and vector geodata to Web GIS with QGIS.
