Please send these sorts of questions to the users list. This is the
developer list.
You need to use the DWithin filter. Which will look something liek this:
<ogc:DWithin>
<ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Point>
<gml:coordinates>1345.4534534,8457.2348345</gml:coordinates>
</gml:Point>
<ogc:Distance units="deg">100<ogc:/Distance>
</ogc:DWithin>
Also note that units are disregarded and the value will be taken with
respect to whatever units your crs is defined with.
-Justin
On 10-06-21 8:07 PM, Hyung Joo Lee wrote:
> Hi all.
>
> I want to measure the distance(geometry) between A and B
>
> But I don’t know how I should write.
>
> <wfs:Query typeName="mart:defe_relics_npmk" srsName="EPSG:32752">
>
> <wfs:PropertyName>mart:exp_text</wfs:PropertyName>
>
> <wfs:PropertyName>mart:the_geom</wfs:PropertyName>
>
> <ogc:Filter>
>
> <ogc:Distance units="meter">10</ogc:Distance>
>
> <ogc:PropertyName>the_geom</ogc:PropertyName>
>
> <gml:coordinates>
>
> 8.0,30.0
>
> 8.0,20.0
>
> </gml:coordinates>
>
> </ogc:Filter>
>
> </wfs:Query></wfs:GetFeature>
>
> how should I fix this?
>
> I think the two points should be written on this.
>
> Thanks in advanced
>
> Best regards.
>
> Kevin.
>
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
>
>
>
> _______________________________________________
> Geoserver-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel