Skip to content

Instantly share code, notes, and snippets.

@archaeogeek
Last active August 23, 2017 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save archaeogeek/a502c3450748d008b26ed74a5db1bd5c to your computer and use it in GitHub Desktop.
Save archaeogeek/a502c3450748d008b26ed74a5db1bd5c to your computer and use it in GitHub Desktop.
astun background mapping gn32
## basic setup
git clone https://github.com/geonetwork/core-geonetwork.git core-geonetwork32
cd core-geonetwork32
git checkout 3.2.x
git submodule init
git submodule update
## cherry-pick fixes for ol3
git cherry-pick 8d9db018535caf3331ac26dd0fb2af6bb9e2e3a8
git cherry-pick 401d0efff2b3e01d5b961b8d5187fbd48d771eb9
## add gemini 2.2 3.2.x branch
cd schemas
git submodule add -b 3.2.x https://github.com/AstunTechnology/iso19139.gemini22_GN3 iso19139.gemini22
## modify various pom.xml files
## first, bump version number in gemini22 pom if necessary
cd iso19139.gemini22
vi pom.xml
<version>3.2.1-SNAPSHOT</version> -> <version>3.2.2-SNAPSHOT</version>
## modify schemas pom.xml to include gemini22
cd ../
vi pom.xml
# insert
<module>iso19139.gemini22</module>
below
<module>iso19139</module>
## modify web pom.xml to include gemini22
cd ../web
vi pom.xml
# insert the following:
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>schema-iso19139.gemini22</artifactId>
<version>${project.version}</version>
</dependency>
# directly below:
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>schema-iso19139</artifactId>
<version>${project.version}</version>
</dependency>
# insert the following:
<resource>
<directory>${project.basedir}/../schemas/iso19139.gemini22/src/main/plugin</directory>
<targetPath>${basedir}/src/main/webapp/WEB-INF/data/config/schema_plugins</targetPath>
</resource>
# directly below
<resource>
<directory>${project.basedir}/../schemas/iso19139/src/main/plugin</directory>
<targetPath>${basedir}/src/main/webapp/WEB-INF/data/config/schema_plugins</targetPath>
</resource>
# build
cd ../
mvn clean install -DskipTests
cd ./web
mvn jetty:run
# change settings after applying astun base mapping to config.js and config-viewer.xml:
Region API/GetMap request: Background map, URL or Named Layer ID → ads
Region API/GetMap request: Map projection: EPSG: 27700
Map/List of CRS: List of CRS → [{"code":"EPSG:2154","value":"+proj=lcc +lat_1=49 +lat_2=44 +lat_0=46.5 +lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"},{"code":"EPSG:27700","value":"+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +towgs84=446.448,-125.157,542.06,0.15,0.247,0.842,-20.489 +units=m +no_defs"}]
Metadata/Metadata editor configuration: Standard Configuration → {"iso19110":{"defaultTab":"default","displayToolTip":false,"related":{"display":true,"readonly":true,"categories":["dataset"]},"validation":{"display":true}},"iso19139":{"defaultTab":"default","displayToolTip":false,"related":{"display":true,"categories":[]},"suggestion":{"display":true},"validation":{"display":true}},"iso19139.gemini22":{"defaultTab":"default","displayToolTip":false,"related":{"display":true,"categories":[]},"suggestion":{"display":true},"validation":{"display":true}},"dublin-core":{"defaultTab":"default","related":{"display":true,"readonly":false,"categories":["parent","onlinesrc"]}}}
Map/Configuration for maps: Configuration for maps → {"useOSM":false,"context":"","layer":{"url":"https://t0.ads.astuntechnology.com/open/osopen/service?","layers":"osopen","version":"1.1.1"},"projection":"EPSG:27700","projectionList":[{"code":"EPSG:3857","label":"Google mercator (EPSG:3857)"},{"code":"EPSG:4326","label":"Lat/Long (EPSG:4326)"},{"code":"EPSG:27700","label":"OSGB (EPSG:27700)"}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment