PAVER GIS Exports
The PAVER information is displayed in QGIS and ArcGIS using the dedicated PAVER rd_centerlines.shp
file and Excel spreadsheets exported from PAVER. The spreadsheets are joined to the shapefile using the UNIQUEID
field.
This data is displayed on the web maps using a Postgres View made up of the same shapefile which has been loaded into Postgres as well as the Excel table which has also been loaded into Postgres. To update this layer, you simply need to overwrite the existing eng_pci_latest_conditions
table in Postgres. The centerline file should not need to be updated unless additional streets have been added in PAVER.
Creating the LatestConditions Export Table
Exporting the Table and Preparing to work in the ArcMap and QGIS Layers
- Open PAVER
- Click Reports
- Choose User Defined Reports
- Choose LATEST INVENTORY AND CONDITIONS
- Export the Report by clicking GIS Export, Output Folder z:\GIS\PAVER\Exports
- Rename the Excel Table from Table.xls to LatestConditions.xls
- Open the table
- Rename the only sheet to PCI_Latest
Creating the Web Map View
- Open QGIS
- Load the LatestConditions table into the map.
- Load the new table into Postgres as
eng_paver_latest_pci_new
in using DB Manager. - Edit the current
eng_paver_pci_view
, replacingeng_paver_latest_pci
witheng_paver_latest_pci_new
. - Rename the column reference
predicted_pci_(MO_DD_YYY)
in two places with the date litsed in the new table. - Refresh the view by right clicking the view, refresh view > with data.
- Delete the old
eng_paver_latest_pci
table. - Rename the new table back to
eng_paver_latest_pci
- pg_admin will automatically update the table name in the view. - IMPORTANT Add “viewer” user to SELECT priviledges on the view anytime the view is updated.
- IMPORTANT Load both pages below to refresh the data server caches of available layers.
SELECT row_number() OVER () AS id,
roads.geom,
roads.lsn AS name,
pci.pci_category,
pci.pci,
pci."predicted_pci_(10_24_2020)" AS pci_predicted,
pci.predicted_condition_category AS pci_predicted_category,
pci.last_major_work_date,
date_part('year'::text, pci.last_major_work_date)::text AS year_last_paved
FROM eng_paver_centerlines roads,
eng_paver_latest_pci pci
WHERE roads.uniqueid::text = pci.uniqueid::text;
Related Posts
Updating Zoning CodesPostgreSQL & PostGIS
PAVER Adding Paving History