Mercurial > gemma
comparison client/src/store/imports.js @ 1980:c8e2f6838eaf
define stretches: mark stretches in review
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 23 Jan 2019 14:17:14 +0100 |
parents | f88773a2c0a0 |
children | fda5c78fb7d3 |
comparison
equal
deleted
inserted
replaced
1979:0bc0312105e4 | 1980:c8e2f6838eaf |
---|---|
13 */ | 13 */ |
14 | 14 |
15 import { HTTP } from "@/lib/http"; | 15 import { HTTP } from "@/lib/http"; |
16 import Vue from "vue"; | 16 import Vue from "vue"; |
17 import { WFS } from "ol/format.js"; | 17 import { WFS } from "ol/format.js"; |
18 import { equalTo as equalToFilter } from "ol/format/filter.js"; | |
18 | 19 |
19 /* eslint-disable no-unused-vars */ | 20 /* eslint-disable no-unused-vars */ |
20 /* eslint-disable no-unreachable */ | 21 /* eslint-disable no-unreachable */ |
21 const STATES = { | 22 const STATES = { |
22 NEEDSAPPROVAL: "pending", | 23 NEEDSAPPROVAL: "pending", |
220 var stretchesFeatureCollectionRequest = new WFS().writeGetFeature({ | 221 var stretchesFeatureCollectionRequest = new WFS().writeGetFeature({ |
221 srsName: "EPSG:4326", | 222 srsName: "EPSG:4326", |
222 featureNS: "gemma", | 223 featureNS: "gemma", |
223 featurePrefix: "gemma", | 224 featurePrefix: "gemma", |
224 featureTypes: ["stretches_geoserver"], | 225 featureTypes: ["stretches_geoserver"], |
225 outputFormat: "application/json" | 226 outputFormat: "application/json", |
227 filter: equalToFilter("staging_done", true) | |
226 }); | 228 }); |
227 HTTP.post( | 229 HTTP.post( |
228 "/internal/wfs", | 230 "/internal/wfs", |
229 new XMLSerializer().serializeToString( | 231 new XMLSerializer().serializeToString( |
230 stretchesFeatureCollectionRequest | 232 stretchesFeatureCollectionRequest |