Skip to content
Snippets Groups Projects
Commit 6f7af91c authored by frank.vanderstelt's avatar frank.vanderstelt
Browse files

Initial commit

parents
Branches master
No related tags found
No related merge requests found
Showing
with 372 additions and 0 deletions
# Raven geoserver
Geoserver instance with the following layers:
| Layer name | Layer title | Description
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| SE_AQD_DATAFLOW_D | Air quality monitoring stations (usedaqd or eoi) () | EEA report D.|
| SE_AQD_DATAFLOW_D_ALL | Air quality monitoring stations (all stations) | Corresponds to data flow D in the Air Quality Directive (all stations). |
| dataflow_C | dataflow_C | EEA report C. |
| AM.AirQualityManagementZone | COUNTRIES zone division for air quality | Corresponds to data flow B in the Air Quality Directive. |
| EF.EnvironmentalMonitoringFacilities | Air quality monitoring stations (Air Quality Directive)| Corresponds to data flow D in the Air Quality Directive (AQD stations). |
## Requirements
The following is required to install and run the application:
* The assumption is made that the latest version of raven is installed, with a postgres database with the postgis extension.
* Java 8 or 11 environment (JRE)
* Geoserver 2.15.2 (http://geoserver.org/release/stable/)
* The Inspire plugin, found under miscellaneous (http://geoserver.org/release/stable/)
* A web container like tomcat to run geoserver
## Installation
Deploy geoserver with the inspire plugin. For more information on this visit the geoserver installation site:
https://docs.geoserver.org/stable/en/user/installation/index.html.
## Configuration
When geoserver is started the jar file will have been expanded. Stop the server and replace the **data/** directory with the one found within this GIT project. This directory contains all the layer information and styles associated eith these layers.
Before starting the server again, we need to fix the database credentials in the following files:
* workspaces/raven/raven_not_aqd/datastore.xml
* workspaces/aqd/raven/datastore.xml
The uppercase strings have to be changed to fit your system. It should point to the raven database.
```xml
<connectionParameters>
...
<entry key="database">DATABASE_NAME?prepareThreshold=0<entry>
<entry key="host">HOST<entry>
<entry key="namespace">https://DOMAIN/aqd<entry>
<entry key="passwd">PASSWORD</entry>
<entry key="user">USER<entry>
</connectionParameters>
```
After this you can start the server.
## Further configuration in the graphical interface
In order to get the correct URLs in the getCapabilities object you have to change the **proxy base url** on each individual workspace and in the global settings.
![Example if editing proxy base](images/proxy.png)
## Test
To test if the layers are working you could for example connect QGIS to the WMS service. It should look something like this with the blue lines showing the zones and the black dots showing the measurement stations:
![Image of aqd layers in QGIS](images/qgis.png)
## SQL files
In this project the is a map with SQL-files. The SQL-query is also found if you click on a layer. You have to scroll down to **Edit sql view** and click on it. You will find something like this:
![Image of the SQL-view](images/sql_view.png)
The SQL-query has some country-specific information, for example the namespace (in this case **SE.NV.AQ**) that has to be changed. The map also includes two files for modelling data. There are no database tables in the current Raven for modelling data. But if this is added to future versions these SQL-files can be used for that purpose.
\ No newline at end of file
Included Data
=============
This directory provides a GeoServer data directory packaged as part of our product downloads:
* http://geoserver.org/display/GEOS/Download
The data directory includes the following sets of information:
* arc_sample
* img_sample
* mosaic_sample
* nyc (giant polygon, poi, poly landmark, tiger roads)
* sf (archsites,bugsites,restricted,roads,streams, sfdem)
* shapefiles(states)
* taz_shapes( cities, roads, state boundaries, water bodies)
ARC Sample
----------
Data was provided by GeoSolutions with redistribution rights.
IMG Sample
----------
Data was provided by GeoSolutions with redistribution rights.
MOASIC Sample
-------------
Data was provided by GeoSolutions with redistribution rights.
New York City
-------------
Data was provided by the Open Planning Project, processed from United States Census Bureau's Topologically Integrated Geographic Encoding and Referencing (TIGER) dataset.
Spearfish
---------
Spearfish sample data has been provided by GRASS.
* http://grass.osgeo.org/download/sample-data/
To quote from the http://grass.osgeo.org/uploads/grass/sampledata/spearDB.pdf ::
A majority of this spearfish database was initially provided to USACERL by the EROS Data Center
(EDC) in Sioux Falls, SD. The GRASS Development staff expresses acknowledgement and thanks to: the
U.S. Geological Survey (USGS) and EROS Data Center for allowing us to distribute this data with our
release of GRASS software; and to the U.S. Census Bureau for their samples of TIGER/Line data and the
STF1 data which were used in the development of the TIGER programs and tutorials. Thanks also to
SPOT Image Corporation for providing multispectral and panchromatic satellite imagery for a portion of
the spearfish data set and for allowing us to distribute this imagery with GRASS software. In addition to
the data provided by the EDC and SPOT, researchers at USACERL have developed several new layers, thus
enhancing the spearfish data set.
States
------
Coming from GeoTools sample data, simplified. The GeoTools file (statepop.shp) comes from Census data (by memory of people that imported it)
Tasmania
--------
The data is derived from the <Digital Chart of the World `http://en.wikipedia.org/wiki/Digital_Chart_of_the_World`> , which according to wikipedia is "is freely available as of 2006".
Referenced Copyright Statement:
http://en.wikipedia.org/wiki/Vector_map#Copyrights
The U.S. government has released the data into public domain, with the following conditions imposed (quotation from VMAP0 Copyright Statement)::
As an agency of the United States government, NIMA makes no copyright claim under Title 17 of the United States Code with respect to any copyrightable material compiled in these products, nor requires compensation for their use.
When incorporating the NIMA maps into your product, please include the following:
a. "this product was developed using materials from the United States National Imagery and Mapping Agency and are reproduced with permission",
b. "this product has neither been endorsed nor authorized by the United States National Imagery and Mapping Agency or the United States Department of Defense".
With respect to any advertising, promoting or publicizing of this product, NIMA requires that you refrain from using the agency's name, seal, or initials.
<coverage format = "arcGridSample" >
<name>Arc_Sample</name>
<label>A sample ArcGrid file</label>
<description>Generated from arcGridSample</description>
<wmspath>/</wmspath>
<metadataLink about = "" type = "" metadataType = "" >
null
</metadataLink>
<keywords>WCS,arcGridSample,arcGridSample_Coverage</keywords>
<!--
the default style this CoverageInfoDTO can be represented by.
at least must contain the "default" attribute
-->
<styles default = "rain">
<style>raster</style>
</styles>
<envelope crs = "GEOGCS['WGS 84',
DATUM['World Geodetic System 1984',
SPHEROID['WGS 84', 6378137.0, 298.257223563, AUTHORITY['EPSG','7030']],
AUTHORITY['EPSG','6326']],
PRIMEM['Greenwich', 0.0, AUTHORITY['EPSG','8901']],
UNIT['degree', 0.017453292519943295],
AXIS['Geodetic longitude', EAST],
AXIS['Geodetic latitude', NORTH],
AUTHORITY['EPSG','4326']]" srsName = "EPSG:4326" >
<pos>-180.0 -90.0</pos>
<pos>180.0 90.0</pos>
</envelope>
<grid dimension = "2" >
<low>0 0 </low>
<high>720 360 </high>
<axisName>precip30min</axisName>
<geoTransform >
<scaleX>0.5</scaleX>
<scaleY>-0.5</scaleY>
<shearX>0.0</shearX>
<shearY>0.0</shearY>
<translateX>-179.75</translateX>
<translateY>89.75</translateY>
</geoTransform>
</grid>
<CoverageDimension >
<name>precip30min</name>
<description>GridSampleDimension[-9999.0,8849.000000000002]</description>
<interval >
<min>-9999.0</min>
<max>8849.0</max>
</interval>
<nullValues >
</nullValues>
</CoverageDimension>
<supportedCRSs >
<requestCRSs>EPSG:4326</requestCRSs>
<responseCRSs>EPSG:4326</responseCRSs>
</supportedCRSs>
<supportedFormats nativeFormat = "ArcGrid" >
<formats>ARCGRID,ARCGRID-GZIP,GEOTIFF,PNG,GIF,TIFF</formats>
</supportedFormats>
<supportedInterpolations default = "nearest neighbor" >
<interpolationMethods>nearest neighbor</interpolationMethods>
</supportedInterpolations>
</coverage>
This diff is collapsed.
GEOGCS["WGS 84",
DATUM["World Geodetic System 1984",
SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH],
AUTHORITY["EPSG","4326"]]
\ No newline at end of file
PROJCS["WGS 84 / UTM zone 33N", GEOGCS["WGS 84", DATUM["World Geodetic System 1984", SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse Mercator", AUTHORITY["EPSG","9807"]], PARAMETER["central_meridian", 15.0], PARAMETER["latitude_of_origin", 0.0], PARAMETER["scale_factor", 0.9996], PARAMETER["false_easting", 500000.0], PARAMETER["false_northing", 0.0], UNIT["m", 1.0], AXIS["Easting", EAST], AXIS["Northing", NORTH], AUTHORITY["EPSG","32633"]]
\ No newline at end of file
42.34136799999990
0.00000000000000
0.00000000000000
-42.34136799999990
347671.10155259108000
5196940.18217525630000
File added
<coverage format = "img_sample2" >
<name>Pk50095</name>
<label>Pk50095 is a A raster file accompanied by a spatial data file</label>
<description>Generated from img_sample2</description>
<wmspath>/</wmspath>
<keywords>WCS,img_sample2,Pk50095</keywords>
<!--
the default style this CoverageInfoDTO can be represented by.
at least must contain the "default" attribute
-->
<styles default = "raster" />
<!--
crs: native CRS definition, srsName: user defined CRS identifier
-->
<envelope crs = "PROJCS['WGS 84 / UTM zone 33N',
GEOGCS['WGS 84',
DATUM['World Geodetic System 1984',
SPHEROID['WGS 84', 6378137.0, 298.257223563, AUTHORITY['EPSG','7030']],
AUTHORITY['EPSG','6326']],
PRIMEM['Greenwich', 0.0, AUTHORITY['EPSG','8901']],
UNIT['degree', 0.017453292519943295],
AXIS['Geodetic longitude', EAST],
AXIS['Geodetic latitude', NORTH],
AUTHORITY['EPSG','4326']],
PROJECTION['Transverse_Mercator'],
PARAMETER['central_meridian', 15.0],
PARAMETER['latitude_of_origin', 0.0],
PARAMETER['scale_factor', 0.9996],
PARAMETER['false_easting', 500000.0],
PARAMETER['false_northing', 0.0],
UNIT['m', 1.0],
AXIS['Easting', EAST],
AXIS['Northing', NORTH],
AUTHORITY['EPSG','32633']]" srsName = "EPSG:32633" >
<pos>347649.93086859107 5176214.082539256</pos>
<pos>370725.976428591 5196961.352859256</pos>
</envelope>
<grid dimension = "2" >
<low>0 0 </low>
<high>545 490 </high>
<axisName>Red band</axisName>
<axisName>Green band</axisName>
<axisName>Blue band</axisName>
<geoTransform >
<scaleX>42.34136799999989</scaleX>
<scaleY>-42.34136800000026</scaleY>
<shearX>0.0</shearX>
<shearY>0.0</shearY>
<translateX>347671.1015525911</translateX>
<translateY>5196940.182175256</translateY>
</geoTransform>
</grid>
<CoverageDimension >
<name>Red band</name>
<description>GridSampleDimension[0.0,255.0]</description>
<interval >
<min>0.0</min>
<max>255.0</max>
</interval>
<nullValues >
</nullValues>
</CoverageDimension>
<CoverageDimension >
<name>Green band</name>
<description>GridSampleDimension[0.0,255.0]</description>
<interval >
<min>0.0</min>
<max>255.0</max>
</interval>
<nullValues >
</nullValues>
</CoverageDimension>
<CoverageDimension >
<name>Blue band</name>
<description>GridSampleDimension[0.0,255.0]</description>
<interval >
<min>0.0</min>
<max>255.0</max>
</interval>
<nullValues >
</nullValues>
</CoverageDimension>
<supportedCRSs >
<requestCRSs>EPSG:32633</requestCRSs>
<responseCRSs>EPSG:32633</responseCRSs>
</supportedCRSs>
<supportedFormats nativeFormat = "WorldImage" >
<formats>GIF,PNG,JPEG,TIFF,GEOTIFF,IMAGEMOSAIC,ARCGRID</formats>
</supportedFormats>
<supportedInterpolations default = "nearest neighbor" >
<interpolationMethods>nearest neighbor,bilinear,bicubic,bicubic_2</interpolationMethods>
</supportedInterpolations>
<parameters >
<parameter value = "" name = "ReadGridGeometry2D" />
</parameters>
</coverage>
data/coverages/img_sample/usa.jpeg

117 KiB

Layer Name = Map Capture 1111440603125
Origin Longitude = -130.85168
Origin Latitude = 20.7052
Corner Longitude = -62.0054
Corner Latitude = 54.1141
GEOGCS["WGS 84",
DATUM["World Geodetic System 1984",
SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH],
AUTHORITY["EPSG","4326"]]
\ No newline at end of file
0.057934032977228433
0.0
0.0
-0.04039598061277999
6.375141924963005
38.491372862272705
data/coverages/mosaic_sample/global_mosaic_0.png

4.77 KiB

GEOGCS["WGS 84",
DATUM["World Geodetic System 1984",
SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH],
AUTHORITY["EPSG","4326"]]
\ No newline at end of file
0.057934032977228433
0.0
0.0
-0.04039598061277999
9.271843573824427
38.491372862272705
data/coverages/mosaic_sample/global_mosaic_1.png

4.05 KiB

GEOGCS["WGS 84",
DATUM["World Geodetic System 1984",
SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH],
AUTHORITY["EPSG","4326"]]
\ No newline at end of file
0.057934032977228433
0.0
0.0
-0.04039598061277999
6.375141924963005
42.530970923550704
data/coverages/mosaic_sample/global_mosaic_10.png

3.03 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment