You are here:GeoTux»Geo-Blogs»Desktop GIS»Export/Import functionality for AutoFields

Statistics

Invitados: 29
Usuarios registrados: 3145
Usuarios en línea:
-
Registrados hoy:
-

Register

RSS

Blogs and News:
Recibe las actualizaciones en Geo-Noticias y Geo-Blogs

Get them by e-mail
Recibir Geo-Noticias y Geo-Blogs por e-mail

¿What is this about?

Latest Geo-Tweets

Friday, 21 April 2017 15:06

Export/Import functionality for AutoFields

Written by  German Carrillo
Rate this item
(0 votes)

One of the most requested features for the QGIS plugin 'AutoFields' has been implemented: a way to export and import AutoFields configurations.

 

If you are new to AutoFields, read AutoFields plugin for QGIS first.

 

Think about delivering AutoFields configurations along with your geographic data to your customers; think about sharing AutoFields with your colleagues; or perhaps just working on two environments and keeping your data and their configuration in sync. All of these scenarios are now possible with AutoFields v0.5.0. In this post I show you how.

 

Exporting AutoFields

Once you have configured AutoFields in QGIS, you can export them to a JSON file. To do so, click on the "Export to JSON file" button to open the following dialog:


Select the AutoFields you would like to export, choose whether you want the exported AutoFields to be removed from QGIS, set the JSON file path, and click OK.

 

Importing AutoFields

To import AutoFields you should have a JSON file. Click on the "Import AutoFields from a JSON file" button and select the JSON file. If such file is valid (i.e., if it contains AutoFields), this dialog will be opened:

 

 

As you can see, all AutoFields from the JSON file are listed. You can assign each AutoField to a layer (and field) already loaded in QGIS. To make the import process easier, the plugin attempts to match AutoFields with layers/fields for you.

Arrows indicate the way AutoFields are assigned to layers/fields:

 

Gray
The AutoField will not be imported and will be ignored in the import process.
Orange
The AutoField will be assigned, but overwriting an existing AutoField on the given layer/field.
Green
The AutoField will be assigned normally (without any problem).
Red
It will be impossible to do the import, because two or more AutoFields from the JSON file are being assigned to the same layer/field; in that case, you won't be able to proceed unless you change troublesome assignations.

 

 

Assigning a disabled AutoField to another layer

Finally, complementing export/import functionality, you can now select a disabled AutoField, right click on it, and assign it to another layer already loaded into QGIS.

 

 

 

Sometimes you change the location of your layer (e.g., a Shapefile), which disables all AutoFields you had configured on it. Using this functionality, you can easily "transfer" those disabled AutoFields to their corresponding updated layer.



Remember that you can contribute to AutoFields translating, reporting bugs, proposing new functionalities or, why not?, implementing them by yourself and sharing them with the project. You can do all of that from the AutoFields repository in GitHub: https://github.com/gacarrillor/autofields

Last modified on Friday, 21 April 2017 18:40
More in this category: « AutoFields plugin for QGIS

Add comment


Security code
Refresh

 

On-line users

Latest Geo-Forums

More Topics »

Latest Comments