Creating and Editing Data
Creare an Empty Layer
-
Click on
Data > Create Layer
- 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 layer with the selected
geometry type
andattributes
and will redirect you directly to the detail page
Edit the Layer Data
-
Click on
Editing Tools > Layer > Edit Data
-
Go to
Boulder
area by using thegeocoding
widget -
Click on the
pencyl
in order to enter theedit mode
-
Click on the
add new geometry
button -
Click on the
Pencyl
again -
Draw a small
polygon
over theBoulder Airport
and click on thefloppy disk
button -
Double-click on the
attributes table
columns in order to enable theedit mode
on the values -
Insert 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 layer 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 in order to show the new features
Update the Layer 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 below -
Go to the GeoServer
Data > Layers
section -
Select and click on the
Test Layer
you just created -
Scroll down to the
Bounding Boxes
section, update them as shown in the figure, andSave
-
Go back to GeoNode; from the layer details page click on the
Refresh Attributes and Statistics
button -
The page will be refreshed and now the layer will be zoomed on the right location
Delete Data
-
Enter the
Edit Data
mode again -
Select (click over) a polygon and click on the
Trash Bin
icon -
Confirm the deletion and verify the polygon disappear from the map
-
Go back to the layer details page, refresh the browser image cache, and verify the feature is not present anymore
Refresh the Thumbnail
-
Last thing to do is to refresh the layer thumbnail