This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>Naturpark Lillebælt</title> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
| <meta name="google" value="notranslate"> | |
| <link rel="apple-touch-icon" sizes="40x40" href="https://s3-eu-west-1.amazonaws.com/mapcentia-www/naturpark_lillebaelt/webpage_icons/apple-touch-icon-40x40.png"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Description=Postgis | |
| Requires=docker.service | |
| After=docker.service | |
| [Service] | |
| ExecStart=/usr/bin/docker start -a postgis | |
| ExecStop=/usr/bin/docker stop postgis | |
| Restart=always | |
| RestartSec=3 | |
| StandardOutput=syslog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <VirtualHost *:80> | |
| ServerName webgis.geopartner.dk | |
| ProxyPreserveHost On | |
| ProxyRequests Off | |
| RewriteCond %{SERVER_PORT} !^443$ | |
| RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R=301,L] | |
| RewriteEngine On | |
| RewriteCond %{REQUEST_URI} ^/socket.io [NC] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Følgende viser hvordan man kan bruge GC2 Admin API'et uden selve Admin web-applikationen. | |
| # API'et er session baseret og kræver, at der sendes en cookie med hver request. | |
| # | |
| # GC2 Admin bruger Blob.slice() til at chunke filer og uploade 1MB ad gangen. | |
| # Følgende eksempel uploader hele filen på en gang og det er en god ide at øge PHPs upload_max_filesize setting. | |
| # Det gøres ved at åbne fpm/php.ini på hosten og ændre "upload_max_filesize=2M" til et større tal. | |
| # Derefter genstartes PHP med "docker exec gc2core service php5-fpm restart" | |
| # I følgende eksemple bruges programmet cURL. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Google and GC2</title> | |
| <meta charset="utf-8"/> | |
| <meta name="viewport" content="initial-scale=1.0, user-scalable=no"/> | |
| <script src="https://maps.google.com/maps/api/js?sensor=false"></script> | |
| <script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| /** | |
| * | |
| * @type {L.FeatureGroup} | |
| */ | |
| var drawnItems = new L.FeatureGroup(); | |
| /** | |
| * @type {*|exports|module.exports} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Insert nye features. De skal ikke have deres primær nøgle, da denne typisk bliver autogeneret i databasen. | |
| # Signatur /api/v2/feature/[user|subuser]/[layer med geom felt]/[projektion på GeoJSON] | |
| # GeoJSON skal være en FeaturCollection. Også selvom der kun er en enkelt feature. | |
| curl --header 'GC2-API-KEY:ffb2562b21bac90a0368b09995a697c1' -XPOST 127.0.0.1/api/v2/feature/test@mydb/foo.bar.the_geom/4326 -d ' | |
| { | |
| "type": "FeaturCollection", | |
| "features": [ | |
| { | |
| "geometry": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @fileoverview Description of file, its uses and information | |
| * about its dependencies. | |
| */ | |
| 'use strict'; | |
| /** | |
| * | |
| * @type {*|exports|module.exports} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "baseLayers": [ | |
| {"id": "osm", "name": "OSM"}, | |
| { | |
| "id": "geodk.bright", | |
| "name": "GeoDanmark kort, lavkon", | |
| "db": "baselayers", | |
| "host": "https://gc2.io", | |
| "config": { | |
| "maxZoom": 26, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE OR REPLACE FUNCTION vkdb.InsideSelection(InputUdvaelgelsesPolygon INT) | |
| RETURNS TABLE( | |
| ogc_fid INT, | |
| boreholeno VARCHAR(10), | |
| xutm DOUBLE PRECISION, | |
| yutm DOUBLE PRECISION, | |
| elevation DOUBLE PRECISION, | |
| drilldepth DOUBLE PRECISION, | |
| intakeno NUMERIC(10), | |
| mintop DOUBLE PRECISION, |