UNPKG

@geogirafe/lib-geoportal

Version:

GeoGirafe is a flexible application to build online geoportals.

100 lines (99 loc) 3.63 kB
// SPDX-License-Identifier: Apache-2.0 // POC demo variables import ServerOgc from '../../models/serverogc.js'; const SITN_SERVER = new ServerOgc('gmf', { url: 'https://sitn.ne.ch/mapserv_proxy/qgisserver/wfs3', wfsSupport: false, urlWfs: '', oapifSupport: true, urlOapif: 'https://sitn.ne.ch/mapserv_proxy/qgisserver/wfs3', // @ts-expect-error Defining a new type of server here to be able to catch some miss-configuration // of the GMF demo server, see ogcapifeaturesclientgmf.ts type: 'gmf', imageType: '' }); export const DEMO_LAYERS = { GEORAMA: { url: 'https://demo.georama.io/features/api', displayName: 'Georama Rivers', // To allow for changing collectionIds (uuids) while developing georama, // we use an interim solution and identify the collection by title. collectionId: null, collectionTitle: 'Flüsse', geometryType: 'MultiLineString', serverType: 'georama', server: new ServerOgc('GEORAMA', { url: 'https://demo.georama.io/features/api', wfsSupport: false, urlWfs: '', oapifSupport: true, urlOapif: 'https://demo.georama.io/features/api', type: 'georama', imageType: '' }) }, GMF: { url: 'https://geomapfish-demo-2-9.camptocamp.com/mapserv_proxy/QGIS_Server/wfs3', displayName: 'GeoMapFish Points', collectionId: 'points', collectionTitle: null, geometryType: 'Point', serverType: 'gmf', server: new ServerOgc('gmf', { url: 'https://geomapfish-demo-2-9.camptocamp.com/mapserv_proxy/QGIS_Server/wfs3', wfsSupport: false, urlWfs: '', oapifSupport: true, urlOapif: 'https://geomapfish-demo-2-9.camptocamp.com/mapserv_proxy/QGIS_Server/wfs3', // @ts-expect-error Defining a new type of server here to be able to catch some miss-configuration // of the GMF demo server, see ogcapifeaturesclientgmf.ts type: 'gmf', imageType: '' }) }, SITN_Point: { url: 'https://sitn.ne.ch/mapserv_proxy/qgisserver/wfs3', displayName: 'SITN point', collectionId: 'demo01_edit_point', collectionTitle: null, geometryType: 'Point', serverType: 'gmf', server: SITN_SERVER }, SITN_LineString: { url: 'https://sitn.ne.ch/mapserv_proxy/qgisserver/wfs3', displayName: 'SITN line', collectionId: 'demo02_edit_line', collectionTitle: null, geometryType: 'LineString', serverType: 'gmf', server: SITN_SERVER }, SITN_Polygon: { url: 'https://sitn.ne.ch/mapserv_proxy/qgisserver/wfs3', displayName: 'SITN polygon', collectionId: 'demo03_edit_polygon', collectionTitle: null, geometryType: 'Polygon', serverType: 'gmf', server: SITN_SERVER }, SITN_MultiLineString: { url: 'https://sitn.ne.ch/mapserv_proxy/qgisserver/wfs3', displayName: 'SITN multiline', collectionId: 'demo04_edit_multiline', collectionTitle: null, geometryType: 'MultiLineString', serverType: 'gmf', server: SITN_SERVER }, SITN_MultiPolygon: { url: 'https://sitn.ne.ch/mapserv_proxy/qgisserver/wfs3', displayName: 'SITN multipolygon', collectionId: 'demo05_edit_multipolygon', collectionTitle: null, geometryType: 'MultiPolygon', serverType: 'gmf', server: SITN_SERVER } };