Closed woodRock closed 3 years ago
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.
Using DBeaver, we can preview the geometry for the table. It is not flat, or stretching across the entire world. We can visually verify that this correct.
Goal
The
biological_map
table within the schemabio
should have one entry with a polygon geometry. That polygon needs to be the bounding box for the dataset.Tasklist
geom
columnnzodn
role read privilegesSuccess 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).