[MarkLogic Dev General] Geospatial index bug in version 4.0-4
Bob Runstein
rrunstein at msn.com
Wed Apr 21 07:24:29 PDT 2010
Hi,
I have a Geospatial Element Index on gml:pos.
Given the following document:
<doc xmlns:gml="http://www.opengis.net/gml">
<gml:pos>33 44</gml:pos>
<gml:pos>33 45</gml:pos>
</doc>
The following query returns it on version 4.1-5, but returns no results on version 4.0-5.
let $query :=
<cts:and-query>
<cts:element-geospatial-query>
<cts:option>coordinate-system=wgs84</cts:option>
<cts:region xsi:type="cts:point" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">33,44</cts:region>
<cts:element xmlns:gml="http://www.opengis.net/gml">gml:pos</cts:element>
</cts:element-geospatial-query>
<cts:element-geospatial-query>
<cts:option>coordinate-system=wgs84</cts:option>
<cts:region xsi:type="cts:point" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">33,45</cts:region>
<cts:element xmlns:gml="http://www.opengis.net/gml">gml:pos</cts:element>
</cts:element-geospatial-query>
</cts:and-query>
return cts:search(fn:doc(), cts:query($query))
If I omit one of the cts:element-geospatial-querys from the cts:and-query, I get results on both versions.
Is this a known bug that was fixed
after version 4.0-5?
Bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20100421/14e8ee65/attachment.html
More information about the General
mailing list