Error: Problems found with '[bookmarkname]' bookmark

Kia ora,

I’m wanting to use Riskscape Wizard to run a risk model, and in attempting to choose and configure my layers, I get the error: Problems found with ‘[bookmark_emma1]’ bookmark - No bookmark with id ‘bookmark_emma1’ exists, and no supported file with that name could be found either. Below is my code, using -P C:\riskscape\bookmark_emma1.ini to attempt to fix the issue, as well as a screenshot of my riskscape folder set up, and bookmark contents for a sanity check. Would I be able to get some clarity on the specifics of the error?

Microsoft Windows [Version 10.0.22631.4169]
(c) Microsoft Corporation. All rights reserved.

C:\Users\emma> cd …

C:\Users> cd …

C:> cd riskscape

C:\riskscape> cd bin

C:\riskscape\bin> riskscape -P C:\riskscape\bookmark_emma1.ini wizard
13:47:09.774 [main] WARN nz.org.riskscape.engine.OsUtils - Changed console to use UTF-8 encoding (was chcp 850)
There were problems during engine initialization, run riskscape with --show-project-errors for more details
RiskScape™ Copyright Institute of Geological and Nuclear Sciences Limited
& National Institute of Water and Atmospheric Research Limited is distributed
for research purposes only under the terms of AGPLv3.

This wizard will guide you through the questions required to build a risk model. The following sets of questions will be covered:

  • input-data: Specify the input data sources for your risk model
  • geoprocess: Optionally modify each vector layer before it gets used by the model
  • sample: Specify how to spatially match up each element at risk against the hazard-layer
  • analysis: How to determine the consequences that the hazard has on the exposure layer
  • event-impact-report: Change how the final event impact results are presented and saved to file
  • reports: Add another output file to your model
    Use ctrl-c to see a help menu at any time

Choose a set of questions to answer next

1: Choose and configure exposures layer
2: Choose and configure hazards layer
3: Choose and configure first hazard layer (Multi-Hazard)
4: Choose and configure areas layer
5: Choose and configure resources layer

2

input-hazards >> Hazard layer

Choose a hazard layer. This contains spatial data about the intensity of the hazard.

bookmark_emma1
Some problems were detected with the value given:
[ERROR] Problems found with ‘bookmark_emma1’ bookmark

  • No bookmark with id ‘bookmark_emma1’ exists, and no supported file with that name could be found either.

Choose a hazard layer. This contains spatial data about the intensity of the hazard.

bookmark_emma1.ini
Some problems were detected with the value given:
[ERROR] Problems found with ‘bookmark_emma1.ini’ bookmark

  • No bookmark with id ‘bookmark_emma1.ini’ exists, and no supported file with that name could be found either.

Choose a hazard layer. This contains spatial data about the intensity of the hazard.

and my bookmark contents:
[Master_Innundation_Peru]
format = geotiff
location = C:\riskscape\bin\Data\Hazard\Master_Innundation_Peru.tif
crs-name = EPSG:2134

[BuildingsNew]
format = shapefile
location = C:\riskscape\bin\Data\Asset\BuildingsNew.shp
skip-invalid = true
crs-name = EPSG:2134

Kia ora,

Firstly, we don’t recommend that you use C:\riskscape\bin as a place to do project work. This is where the RiskScape software itself is installed. When you want to upgrade RiskScape, these files will need to be deleted and replaced.

If you run the riskscape_prompt.bat file in that directory, it’ll open up a command-prompt in the %USERPROFILE%\RiskScape\Projects directory (so something like C:\Users\emma\RiskScape\Projects). That’s a better place to keep all your project data and files.

Now, for the actual problem you’re hitting, try creating a new project.ini file in the directory you want to work in (e.g. C:\Users\emma\RiskScape\Projects\Masters) and move your data there. Copy-paste the following contents into project.ini and save the file.

[bookmark Master_Innundation_Peru]
format = geotiff
location = Data\Hazard\Master_Innundation_Peru.tif
crs-name = EPSG:2134

[bookmark BuildingsNew]
format = shapefile
location = Data\Asset\BuildingsNew.shp
skip-invalid = true
crs-name = EPSG:2134

You should now be able to run the wizard like this:

cd C:\Users\emma\RiskScape\Projects\Masters
riskscape wizard

Hopefully your bookmarks now show up as choices in the wizard. If they don’t:

  1. Check that the project.ini file is in the correct place (the dir command is useful). Windows also likes to add .txt extensions if you use Notepad, e.g. RiskScape won’t find project.ini.txt automatically.
  2. Check your bookmarks are valid. riskscape --show-project-errors bookmark list can help with this.

You may also find the tutorial on creating RiskScape project files and bookmarks helpful:
https://riskscape.org.nz/docs/intro/project-tutorial.html

Hope that helps.
Tim