Obtaining the Data
Visit the City of St. Louis Open Data project page and navigate to the "Urban Development" section. Once there, look for "Park Data" and click through. From this page, download the "Parks Shapefile." The download is a .zip
file which contains the .shp
file along with its sidecar files. Don't unzip the downloaded file just yet.
Staging the Shapefile
At this point, make sure your GeoServer VM is up and running in VirtualBox.
For GeoServer to be able to use the shapefile, it must be placed within GeoServer's data directory. Where is this directory? Our GeoServer VM is helpful enough to tell us when we log into it:
Note near the bottom of the login message that the data directory is /var/opt/boundless/suite/geoserver/data
. This directory lives within the virtual machine, so we first need to place the .zip
file on the VM before we can move it to the data directory.
The welcome message also tells us that /media/sf_share
is the directory on the VM that is shared with our host operating system. To see which directory on the host system is mapped to this directory on the VM, go to the VirtualBox application, right-click on the Boundless GeoServer I VM, and select Settings. Select the Shared Folders pane and you'll see the the directory on the host that is mapped to shared directory on the guest (i.e. the VM). In the example below, it is /Users/chris
.
Now, move the file to the GeoServer data directory. Note that we need to prepend the commands with sudo since our VM user doesn't have permission to write to the destination directory. Also recall that the password on the VM is empty (i.e. just press Enter when prompted for a password).
Then go to this directory and unzip the file.
In the next section, we will configure GeoServer to use this data.
Last updated