Commit Graph

57 Commits

Author SHA1 Message Date
Simon Seyock
2b57584180 fix prettier linting problems 2021-03-09 09:08:27 +01:00
Matt Walker
aef876aaf9 Fix prettier errors 2021-01-07 09:24:14 +00:00
Matt Walker
28f76ed901 Make writeFilter version argument optional
* Add test for optional version argument to writeFilter
* Default to WFS 1.1.0 if no version passed to writeFilter
2021-01-07 08:51:11 +00:00
Matt Walker
de9d681b2f Fix WFS 2.0.0 writeFilter
* Add a test for WFS 2.0.0 filter encoding
* Use getFilterNS to ensure correct NS for filter child node
2021-01-07 08:47:18 +00:00
Benjamin Gerber
d807f13a93 Add featureTypesBbox option on WFS writeGetFeature
Add a possibility to provide one specific bbox per feature type
on WFS writeGetFeature. This option results to one query node
per featureTypesBbox item. One query node, for one feature type,
will have a specific bbox filter and every query node will share
the same others filters (if a filter option is defined).
2020-11-16 12:59:30 +01:00
Jannes Bolling
6b86c5f78d recreate old during filter behaviour for backwardscompatibility 2020-10-19 10:37:13 +02:00
Jannes Bolling
b271536b8b fix Filter namespace handling for WFS 2.0 requests 2020-10-15 18:50:55 +02:00
Jannes Bolling
7261e25566 fix distanceWithin for WFS2.0 2020-10-14 19:09:26 +02:00
Jannes Bolling
ab43047e7a add new DistanceWithin Filter 2020-10-14 18:15:54 +02:00
Björn Harrtell
0bbde3d840 Tests for Transaction writes 2020-08-11 16:21:39 +02:00
Björn Harrtell
8cddfa0d22 Refactor tests 2020-08-11 16:14:39 +02:00
Björn Harrtell
1335937ddd Verified fix 2020-08-11 16:09:43 +02:00
Björn Harrtell
0484e45c89 Fix WFS 2.0.0 GetFeature response parsing 2020-08-11 15:46:40 +02:00
Björn Harrtell
01f355c37f Verify GetFeature with more complex filter 2020-08-10 21:30:06 +02:00
Björn Harrtell
a58bff0981 Initial GetFeature verification 2020-08-10 03:50:39 +02:00
Björn Harrtell
d3041295a1 Initial spike on WFS 2.0 2020-08-09 22:36:41 +02:00
Tim Schaub
054af09032 Make code prettier
This updates ESLint and our shared eslint-config-openlayers to use Prettier.  Most formatting changes were automatically applied with this:

    npm run lint -- --fix

A few manual changes were required:

 * In `examples/offscreen-canvas.js`, the `//eslint-disable-line` comment needed to be moved to the appropriate line to disable the error about the `'worker-loader!./offscreen-canvas.worker.js'` import.
 * In `examples/webpack/exapmle-builder.js`, spaces could not be added after a couple `function`s for some reason.  While editing this, I reworked `ExampleBuilder` to be a class.
 * In `src/ol/format/WMSGetFeatureInfo.js`, the `// @ts-ignore` comment needed to be moved down one line so it applied to the `parsersNS` argument.
2020-04-06 12:54:09 -06:00
Frederic Junod
48bb187075 Add named export for WFS.writeFilter function 2018-02-14 11:12:56 +01:00
raiyni
4449da3e63 named exports from ol/xml 2018-02-07 14:42:01 -06:00
Marc Jansen
7f6780b7fb Use named exports from filter module 2018-02-06 07:47:54 +01:00
Tim Schaub
ad62739a6e Use blocked scoped variables
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Tim Schaub
22fce4f97b Rename _ol_Feature_ to Feature 2018-01-10 09:35:35 -07:00
Tim Schaub
c6650285f5 Rename _ol_format_WFS_ to WFS 2017-12-17 02:09:04 -07:00
Tim Schaub
f8610190bb Rename _ol_format_GML2_ to GML2 2017-12-17 01:48:47 -07:00
Andreas Hocevar
9f1ebbb852 Add and use new proj4.register function 2017-12-15 19:17:29 +01:00
Tim Schaub
9d396280b0 Rename _ol_geom_MultiPolygon_ to MultiPolygon 2017-12-14 08:56:51 -07:00
Tim Schaub
c502f016f7 Rename _ol_geom_Polygon_ to Polygon 2017-12-14 08:56:12 -07:00
Tim Schaub
3c78cb7872 Rename _ol_geom_MultiLineString_ to MultiLineString 2017-12-14 08:55:33 -07:00
Tim Schaub
f7b3876c1b Rename _ol_geom_LineString_ to LineString 2017-12-14 08:54:53 -07:00
Tim Schaub
ad5806c29d Rename _ol_geom_MultiPoint_ to MultiPoint 2017-12-14 08:51:53 -07:00
Tim Schaub
6f72ffe498 Named exports from ol/proj 2017-12-14 13:08:40 +01:00
Tim Schaub
7f47883c48 Transformed 2017-12-12 06:53:18 -07:00
Frederic Junod
daea26ec50 Add getFeatureType and setFeatureType functions to ol.format.WFS 2017-11-01 14:07:54 +01:00
Frederic Junod
dfe9e9b59a Add new ol.format.filter.Contains spatial operator 2017-10-06 08:45:17 +02:00
bartvde
2d3fa05b91 Use geometry name in WFS updates 2017-09-01 09:00:34 +02:00
Bart van den Eijnden
09e9759753 Merge pull request #7133 from Sol1du2/issue/6991/WFSWriteDimension
Issue/6991/WFS Write Dimension
2017-08-29 09:57:44 +02:00
Tim Schaub
a3e3e99baa Get rid of useless test exports 2017-08-17 15:16:58 -04:00
Joao Gouveia
5fce1b0351 Adds srsDimension to the pos and posList nodes when writing a WFS transaction
The WFS transaction failed if the srsDimension was not present on the
geometries.
Unit tests have been changed to accomodate the srsDimension attribute.
2017-08-17 10:04:16 +02:00
Tim Schaub
46bcce464f Add missing requires to tests 2017-08-16 13:43:28 -04:00
Marc Jansen
9fc0fb5e74 Merge pull request #6916 from marcjansen/eslint-4-upgrade
Upgrade eslint to v4.0.0
2017-06-22 07:55:06 +02:00
Marc Jansen
d0ef05977b Autofix indentation issues (eslint --fix) 2017-06-19 11:58:00 +02:00
bartvde
8d57a879ce Make sure we use the default featurePrefix 2017-06-15 16:33:07 +02:00
Frederic Junod
fcf9649ef9 Add ol.format.filter.during 2017-05-09 14:07:33 +02:00
Frederic Junod
b1f38ea0e8 Fix spelling 2017-04-24 08:58:19 +02:00
Julien Enselme
e2af6b9d04 Rename the is3D option for WFS transaction into hasZ
This is more consistent with existing code.
2017-04-20 10:39:02 +02:00
Julien Enselme
870bc51ad9 Add an option to writeTransaction to support 3D geometries
Close #6630
2017-04-20 10:39:02 +02:00
Julien Enselme
bb278df881 Don't append feature prefix twice in WFS requests
Some WFS servers like tinyOWS require the feature prefix to be in the
feature type for the feature to be found (eg `prefix:layer`).

The problem was, the prefix was always added to the feature type which
gave us a type name like `prefix:prefix:feature` or
`feature:prefix:feature`. The requests were then rejected by the WFS
server.

We now check if the feature type starts with the prefix. If it does, we
don't append it again. If it doesn't we do.
2017-04-20 10:32:39 +02:00
Alexandre Dubé
827fabc849 Apply reviewer's comments 2017-03-21 10:15:32 -04:00
Alexandre Dubé
ef1033dffc Test for ol.format.WFS.writerFilter method 2017-03-21 09:19:07 -04:00
Julien Enselme
ecafa44196 Add support for WFS 1.0.0 to ol.format.WFS#writeTransaction
- Add a version property to olx.format.WFSWriteTransactionOptions to set
the WFS protocol version to use
- Use the specified version to use the correct schema and version in the
GML request
- Use the version to select the proper GML serializer
2017-03-21 10:59:28 +01:00