qexo-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qexo-general] TreeList and SeqPosition


From: jvinel
Subject: [Qexo-general] TreeList and SeqPosition
Date: Tue, 31 Dec 2002 15:46:47 +0100 (CET)

Hi,

I'm working to add geographical support to the xquery engine (according to
the http://www.opengis.net specifications), but i have some problems to
understand how to use the objects transmitted to a java function.
The object transmitted is from class SeqPosition (and/or TreeList), but i
didn't find documentation (not in javadoc api) to use correctly this
classes.

The xquery request will be :
declare namespace GeoOperator = "class:GQuery"
declare namespace gml = "http://www.opengis.net/gml";
for $x in document("city.xml")//Fountain where
GeoOpererator:inside($x,"(0,0,100,100)") return <Result>{$x}</Result>

This query return fountains situated inside a specified box.
The java method inside :

public static boolean inside(Object node,String string) {
   ...
   ...
}

and the file city.xml contains :

<Fountain number="1">
  <coin:name>King's Fountain</coin:name>
  <coin:description>The fountain in South Park</coin:description>
  <coin:location>
     <coin:Point srsName="http://www.opengis.net/coin/srs/epsg.xml#4326";>
         <coin:coord><coin:X>20</coin:X><coin:Y>40</coin:Y></coin:coord>
     </coin:Point>
  </coin:location>
  <classification>fountain</classification>
</Fountain>

<Fountain number="2">
  <coin:name>Queen's Fountain</coin:name>
  <coin:description>The fountain in the city</coin:description>
  <coin:location>
     <coin:Point srsName="http://www.opengis.net/coin/srs/epsg.xml#4326";>
         <coin:coord><coin:X>80</coin:X><coin:Y>70</coin:Y></coin:coord>
     </coin:Point>
  </coin:location>
  <classification>fountain</classification>
</Fountain>

What is the method to have access to the node Point, coord, ... and their
values ? Or a documentation about this classes ?

Thanks,

Julien






reply via email to

[Prev in Thread] Current Thread [Next in Thread]