Bounding box as geometry
woodRock opened this issue · 5 comments
Goal
The biological_map
table within the schema bio
should have one entry with a polygon geometry. That polygon needs to be the bounding box for the dataset.
Tasklist
- Find Bounding Box
- Update
geom
column - grant
nzodn
role read privileges - verify with DBeaver or QGIS
Success Criteria
The bounding box has been added as column to the biological_map
table, and we have verified it is correct using a visual tool (i.e., DBeaver or QGIS).
We need to add a geometry to the Postgres database for the MapServer to recognize. This is how the Postgres table for this similar metadata record Glenn showed us is set up. This catalogue has many zip files, but they all share the same geometry. Which appears to be the bounding box for the dataset.
Andrea helped find the ST_MakeEnvelope
command. This allows us to create a rectangular polygon in Postgis. We simply provide the min(x) and min(y), max(x),max(y), and the projection (4326).
The script which creates our table has been updated to include the geometry (the bounding box for the dataset) and grant read permissions to the nzodn
role.
While attempting to view the table in DBeaver we found out that nzodn
did not have privileges to read the biological_map
table. This was problematic, as this is the role that is configured to read the data through the GeoSever application. This is why updated the script to these grant privileges.