~zorba-coders/zorba/1189803-geoproj-module

« back to all changes in this revision

Viewing changes to test/Queries/geo/equals6.xq

  • Committer: Juan Zacarias
  • Date: 2012-08-07 19:49:24 UTC
  • Revision ID: juan457@gmail.com-20120807194924-w8pmqsrf510fq3yv
Tags: zorba-2.8, zorba-2.9
RemovedĀ geosĀ module

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
(:
2
 
Geo module test.
3
 
Tests if two lines are equal, even if one line contains a duplicate point.
4
 
Result: true
5
 
:)
6
 
 
7
 
import module namespace geo = "http://expath.org/ns/geo";
8
 
declare namespace gml="http://www.opengis.net/gml";
9
 
 
10
 
geo:equals(<gml:LineString>
11
 
                <gml:pos>1 1</gml:pos>
12
 
                <gml:pos>55 99</gml:pos>
13
 
                <gml:pos>2 1</gml:pos>
14
 
             </gml:LineString>,
15
 
             <gml:LineString>
16
 
                <gml:posList>
17
 
                1 1
18
 
                1 1
19
 
                55 99
20
 
                2 1
21
 
                </gml:posList>
22
 
             </gml:LineString>)
 
 
b'\\ No newline at end of file'