I'm trying to retrieve only the property 'name' of the features within a
distance of 10 meters from the specified point.
What should it be the query?
Because this is getting an exception from CartesianDistanceFilter:
<Query TypeName="ejes">
<PropertyName>name</PropertyName>
<Filter>
<DWithin>
<PropertyName>the_geom</PropertyName>
<Geometry gml:Point>44000,470000</Geometry>
<Distance
unit="http://www.uomdict.com/uom.html#meters">10</Distance>
</DWithin>
</Filter>
</Query>
If I omit the '<PropertyName>name</PropertyName>', it retrieves all the
properties of all the features within that area.
Any help?
Thanks in advance.
---Publicidad--------------------------------------------------------
Juega con Ventura24.es, loterÃa inteligente y multiplica tus
posibilidades!! http://www.iespana.es/_reloc/email.ventura
Next time include at least the exception that you get, but I think I have
an idea what's going on. I've never actually seen that form of gml
<Geometry gml:Point>44000,47000<Geometry>
I would use something like
<gml:Point><gml:coordinates>44000,47000</gml:coordinates</gml:Point>
So try the query out with that. If the Geometry gml:Point style is valid
gml then I'll look into supporting it... But for now I'd just use the
more traditionaly gml:coordinates style. Also, be sure that you declare
the gml prefix namespace. The full FeatureRequest is not there for me to
see, but if you don't have an xs:gml="http://www.opengis.net/gml" then
that can also be a source of errors. Hope this helps, if it's not then
send along the actual exception and set configuration.xml logging level to
FINEST and send catalina.out.
thanks,
Chris
On Thu, 30 Oct 2003, Héctor Hugo Barriuso wrote:
I'm trying to retrieve only the property 'name' of the features within a
distance of 10 meters from the specified point.
What should it be the query?
Because this is getting an exception from CartesianDistanceFilter:
<Query TypeName="ejes">
<PropertyName>name</PropertyName>
<Filter>
<DWithin>
<PropertyName>the_geom</PropertyName>
<Geometry gml:Point>44000,470000</Geometry>
<Distance
unit="http://www.uomdict.com/uom.html#meters">10</Distance>
</DWithin>
</Filter>
</Query>
If I omit the '<PropertyName>name</PropertyName>', it retrieves all the
properties of all the features within that area.
Any help?
Thanks in advance.
---Publicidad--------------------------------------------------------
Juega con Ventura24.es, lotería inteligente y multiplica tus
posibilidades!! http://www.iespana.es/_reloc/email.ventura
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
--