There are two methods for creating new dataset pages - you can either upload files to the plugin configuration to have pages created automatically, or you can manually create pages and add the data yourself.
You will need a valid GeoJSON file, as described in Prepare Dataset Files.
The process:
Here are how the various properties in the GeoJSON file will be used to create and popuplate your new dataset page.
"name"
is set for the JSON object, the page title/dataset name will be set to this value. Otherwise the dataset's id will be used.pages/datasets/
folder (the datasets folder will be created if it does not exist). The name of the page's folder will be determined by the dataset name.You do not need to worry about a new dataset overwriting an existing one. If the generated dataset id or page route is identical to an existing dataset's, then the id/route will be modified until it is unique. Example: A dataset exists at pages/datasets/some-points
. A new dataset is uploaded, and the determined route is the same. The new dataset will instead be placed at pages/datasets/some-points-1
.
A new page is automatically created in the pages/datasets/
folder when you upload a new dataset file via the plugin configuration. However, you also have the option to create a dataset page directly.
If you do not already have a "datasets" folder, you may want to start by creating that as a place to keep all of your datasets. As an added bonus, if you later create a page by uploading a file, the automatically created dataset will be in the same place as your other datasets. However, it is not required to place datasets in any particular location for them to be valid, so you do not have to do this if you do not want to.
To create a "datasets" folder:
datasets
.To create a new dataset page:
Note that you do not need to worry about the dataset page showing up in the site navigation or the site map. Dataset pages are automatically set to be non-routable and non-visible. If you are creating a datasets folder following the instructions above (choosing Add Folder instead of just Add or Add Page), then the folder should also be hidden by default.
Of course, the new dataset page would be rather meaningless without any features. Click the Add New Feature button on the Features tab to add a new feature: Make sure to provide valid coordinates or the new feature will not be saved! You can also add properties to features by adding items to the Feature Properties list. Feature properties will be updated to match this list after the page is saved. You can find more information on adding features and properties in the Update Dataset Pages guide.