# Updating Data

You can update the data of a vector or raster spatial DS, or a non-spatial DS. This operation replaces the DS data with that of the newly selected file.

## Steps

**1. Open the update interface**

Select the **Update Data** function to access the interface, which allows you to:

* Upload a new file,
* Or select a file already present in JMap Cloud.

If the selected file is not compatible with the existing DS, an error message is displayed.

**2. Review and modify the information**

The interface displays the current DS information, such as:

* The name,
* The Coordinate Reference System (CRS) (for spatial DS),
* The description,
* The tags.

You can keep or modify these as needed.

**3. Review and configure the attributes**

The attributes of the new file are displayed. You can choose to index certain attributes to facilitate searching and to enable simple searches.

Depending on the file format, certain additional parameters must be completed. These are described in the *File Settings*section of the chapter on creating spatial data sources or non-spatial tabular data sources.

A new table is then created in JMap Cloud containing the new data. The old table is automatically deleted.

**4. Finalize the update**

Click **Save**. Once processing is complete, the DS status changes to **Ready**.

{% hint style="info" %}
If the CRS of the new file differs from the one initially configured for the DS, the data will not be displayed on the map when you use the **Display Information** function.
{% endhint %}

## Impact on Map Layers

The new file may differ from the original file in format, CRS, geometries, or attributes.

In that case, you will need to update the configuration of the map layers that use this data source.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.jmapcloud.io/en/jmap-cloud-portal/user-guide-for-jmap-cloud-portal/integrating-data-data-sources/managing-data-sources/updating-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
