Commit Graph

350 Commits

Author SHA1 Message Date
Tobias Bieniek 17e972de3d EncodedPolyline: Backported ol3 polyline parser library
The ol3 version of the library is more advanced and complete. It can also
parse into flat array. It can handle unsigned integers, signed integers
and floats.
2013-03-20 20:56:47 +01:00
Bart van den Eijnden bec34f2d3d Merge pull request #814 from eykamp/wcsdev
Add WCS GetCapabilities parsing for WCS 1.0.0 and 1.1.0 (r=@bartvde)
2013-01-02 08:40:34 -08:00
Christopher Eykamp f9bb64505b Add final LF 2013-01-02 17:12:51 +01:00
Christopher Eykamp 54c5656df5 Add final LF 2013-01-02 17:08:57 +01:00
Christopher Eykamp f06931b1b7 Update source of sample XML 2013-01-02 14:32:02 +01:00
Christopher Eykamp b15c751808 Reuse GML pos reader -- something looks not quite right here, but it does work 2013-01-02 14:21:30 +01:00
Christopher Eykamp 008c7d582e Update test to reflect changes in last commit 2013-01-02 12:51:52 +01:00
Stéphane Brunner 0915fb72a2 Add RESTful compatibility support 2012-12-31 15:35:38 +01:00
Tobias Bieniek 06bd07ff8d EncodedPolyline: Added write() method 2012-12-28 20:24:57 +01:00
Tobias Bieniek 510d42b12f EncodedPolyline: Added encode() method
The write() method will follow in the next commit.
2012-12-28 01:31:24 +01:00
Tobias Bieniek 8651e05e75 EncodedPolyline: Allow setting geometryType to "point 2012-12-27 23:19:44 +01:00
Tobias Bieniek c118d9884d EncodedPolyline: Extracted universal decode(encoded, dims) method 2012-12-27 23:09:08 +01:00
Tobias Bieniek aedafc0336 EncodedPolyline: Added geometryType attribute
This makes it possible to read polygons or multipoints too. Since the
encoded format is just a list of points the reader needs to be told what
Feature to create from the encoded list.

The example code is edited to reflect that API extension.
2012-12-27 23:09:08 +01:00
Christopher Eykamp be7c55f432 Added full suite of wcs 1.1.0 tests, all are passing 2012-12-27 14:28:46 +01:00
Christopher Eykamp b6c2c26580 WCS parsing working properly, but needs more tests; moved errorProperty down to parser, where it arguably belongs, and where it has to live to work with WCS. Also removed null error property on versionedOGC. 2012-12-27 13:29:02 +01:00
Tobias Bieniek 63a9567858 Format: Added EncodedPolyline class
This class is able to convert an encoded polyline string into a LineString embedded in a Vector Feature.

See https://developers.google.com/maps/documentation/utilities/polylinealgorithm for more information.
2012-12-26 18:25:04 +01:00
Christopher Eykamp 8ff05cdeac WCS 1.1.0 parsing correctlyy; error property still not correctly set so parsing reports errors. 2012-12-24 18:19:42 +01:00
Bart van den Eijnden 2dfc23e217 Merge pull request #806 from eykamp/master
Identify and fix bug with WFS 1.1.0 (r=@bartvde,@ahocevar)
2012-12-24 05:35:14 -08:00
Christopher Eykamp d0986de775 WCS 1.0.0 parsing now passing all tests 2012-12-21 18:51:39 +01:00
Christopher Eykamp 5c07ae47bb WCS testing more-or-less working, many tests failing, as expected 2012-12-21 13:15:01 +01:00
ahocevar f5d7f794c9 Some tweaks to make tests pass again 2012-12-19 23:13:11 +01:00
Christopher Eykamp 2c6b8aefcf Improve added error tests 2012-12-19 10:49:16 +01:00
Christopher Eykamp a2c161be08 Revert error message change 2012-12-19 10:45:25 +01:00
Christopher Eykamp 428335fd0d Even more sensible error message 2012-12-19 10:32:19 +01:00
Christopher Eykamp 7790a0a9b6 More sensible error message 2012-12-19 10:31:42 +01:00
Christopher Eykamp 2478e2311f Update number of tests, add comment 2012-12-17 18:33:19 +01:00
Christopher Eykamp f4be1d138c Add test that demonstrates bug in WFS 1.1.0 parsing 2012-12-17 18:08:23 +01:00
Tim Schaub 0d78dda8c4 Additional test for filter parsing
This confirms that literals are properly parsed when they have text node siblings (see #794).
2012-12-10 08:59:03 -07:00
Bart van den Eijnden 195352c403 make sure we can have multiple feature ids in InsertResults 2012-11-21 13:08:37 +01:00
Bart van den Eijnden ec294af55a Merge pull request #762 from bartvde/schema
parse annotation from WFS DescribeFeatureType schemas (r=@ahocevar)
2012-11-20 08:07:29 -08:00
ahocevar c48458faa5 Merge pull request #760 from ahocevar/wmscaps-scalehint
Correct handling of 0 and Infinity ScaleHint. r=@marcjansen
2012-11-20 08:01:48 -08:00
Bart van den Eijnden 52d69ecfda documentation is also an array, and lang is optional thanks @ahocevar for the catch 2012-11-20 16:48:50 +01:00
Bart van den Eijnden cbd9a90477 appinfo can be specified multiple times, so use an array instead thanks @ahocevar 2012-11-20 16:42:06 +01:00
Bart van den Eijnden f410cd7e41 remove JSON parsing from format, applications should handle this, as suggested by @ahocevar 2012-11-20 16:36:12 +01:00
Bart van den Eijnden 14f009e2f7 parse annotation from WFS DescribeFeatureType schemas 2012-11-20 15:48:48 +01:00
Marc Jansen 798d2b2cb7 Fix exporting empty vector layers to OWSContext.
When a vector layer is exported to an OWSContext document, we throw an
exception when the layer contains no features, and the geometries are to be
exported inside of an InlineGeometry-element.

This commit fixes this behaviour by exporting sth. like this in such cases:

<Layer name="vector" hidden="0">i
  <ows:Title xmlns:ows="http://www.opengis.net/ows"/>
  <InlineGeometry/>
</Layer>
2012-11-20 10:38:25 +01:00
ahocevar cbc4f4e422 Correct handling of 0 and Infinity ScaleHint
minScale and maxScale values of 0 and Infinity do not make sense in
OpenLayers, but they are used in WMS GetCapabilities 1.1.1 to indicate
that there is no minScale or maxScale restriction. Assuming that the
capability values for minScale and maxScale are passed as config options
to a WMS layer, it is better to not set minScale and maxScale when 0 or
Infinity are found in the ScaleHint.
2012-11-16 17:31:45 +01:00
Bart van den Eijnden b45f903198 Merge pull request #744 from bartvde/cqlnull
add support for OpenLayers.Filter.Comparison.IS_NULL in CQL format (thanks @elemoine for the review)
2012-11-05 06:42:38 -08:00
Bart van den Eijnden 41ac2dea08 add support for OpenLayers.Filter.Comparison.IS_NULL in OpenLayers.Format.CQL 2012-11-05 13:21:51 +01:00
tschaub 47ef7e87f7 Handle whitespace and escaped quotes in CQL values
See #743.
2012-11-02 11:44:41 -06:00
Tim Schaub 8d0da09454 Merge pull request #733 from tschaub/filter-tweaks
Allow writer functions to use document fragments when they need to append more than a single child to the parent.
2012-10-26 09:45:53 -07:00
Tim Schaub 8d8a9f3105 Merge pull request #729 from tschaub/date
WFS date filter literal not sent as ISO format
2012-10-26 09:01:54 -07:00
tschaub e6399a265d Use document fragments to write multiple nodes
For writer functions that need to generate multiple nodes, the
createDocumentFragment method can be used.
2012-10-25 11:56:48 -06:00
tschaub 81d3584e09 Test custom encodeLiteral function 2012-10-25 11:24:55 -06:00
ahocevar 7f2ce74dd7 Merge pull request #732 from ahocevar/wmts-serverresolutions
WMTS layers created from capabilities have no serverResolutions. r=@sbrunner
2012-10-25 08:06:05 -07:00
ahocevar ca532c5db6 WMTS layers created from capabilities have no serverResolutions
By adding serverResolutions to the WMTS configuration, it is possible to
use WMTS layers as overlays, even if the map or the base layer is
configured with different resolutions than the WMTS.
2012-10-25 14:40:26 +02:00
Tim Schaub ed66271be3 Use ISO 8601 formatting for dates in filters 2012-10-24 11:16:29 -06:00
tschaub edb4798518 Testing multiple track attributes 2012-10-23 14:24:48 -06:00
Matt Walker ea5a510d45 Moved node var declaration to the top of the function 2012-10-15 11:16:00 +01:00
Matt Walker a9494394da Comparing the filter XML written using t.xml_eq.
The PropertyIsNull test now used the t.xml_eq method
to verify the XML output when the filter is written.

Tided up variable names to be consistent with other
tests.
2012-10-15 11:09:52 +01:00