Creating and Editing Data
Create an Empty Dataset
Click on
Add Resource > create dataset
Fill the form with some values; first of all insert a
name
andtitle
and selectPolygon
asgeometry type
Add three
attributes
and click theCreate
buttonlabel
:String
value
:Float
date
:Date
GeoNode will create the new empty dataset with the selected
geometry type
andattributes
and will redirect you directly to the detail page
Edit the Dataset Data
Click on
Edit > Edit Data
Click on the
pencil
to enter theedit mode
Click on the
add New Feature
buttonClick on the
pencil
againDraw a small
polygon
over thedataset
and click on thefloppy disk
button to saveDouble-click on the
attributes table
columns to enable theedit mode
on the valuesInsert some values as shown below; the date-time attributes must be provided in ISO format
Save and repeat the operation as many times you want
Once finished, go back to the dataset detail page; you will notice that GeoNode will show some features, but the bounding box is still the whole world; remember to clean the image cache of the browser to show the new features
Update the Dataset Bounding Box
Logout and login again as an
admin
; from the context menù, click onGeoServer
If you are still logged in as
test_user1
on GeoServer, follow the steps belowGo to the GeoServer
Data > Layers
sectionSelect and click on the
Test layer
you just createdScroll down to the
Bounding Boxes
section, update them as shown in the figure, andSave
In order to allow GeoNode getting the updated
bbox
you can either:Edit the Metadata again and just click on the
Update
buttonRunning the
updatelayers
management command from thePython shell
Open a new
terminal
window and move to/opt/geonode
Run the following commands
cd /opt/geonode/ workon geonode ./manage_local.sh updatelayers -f test_layer
Go back to
Test layer
detail page and refresh now the dataset will be zoomed on the right location
Delete Data
Enter the
Edit Data
mode againSelect (click over) a polygon and click on the
Trash Bin
iconConfirm the deletion and verify the polygon disappeared from the map
Go back to the dataset details page, refresh the browser image cache, and verify the feature is not present anymore
Refresh the Thumbnail
You can refresh the thumbnail of the dataset by clicking
Edit
>Edit Info
an then in the current thumbnail.Click
Apply
to set the thumbnail to the current dataset preview.