spat_xml | R Documentation |
Can be used to create in XML format the spatial part of spatial operators such as
Disjoint
, Equals
, DWithin
, Beyond
, Intersects
, Touches
, Crosses
, Within
,
Contains
, Overlaps
and BBOX
.
spat_xml( gemprop, feature, distance = NULL, version = WFS_get_version(), spat_fun = "DWithin", units = "meters" )
gemprop |
Character string with the name of the geometric field |
feature |
Character with XML description of feature. Description can be result of |
distance |
Number scalar with distance for |
version |
Character string with the WFS request version |
spat_fun |
Character string with the name of the spatial operator |
units |
Character string indicating the units of the argument |
Character vector with the created xml fragment
## Not run: spat_xml('geometrie', spat_feature('point','EPSG:28992', point_coords), 50) # filters features within 59 meters of point spat_xml('geometrie', spat_feature('Polygon','EPSG:28992',list(outer_coords,hole_coords)), spat_fun='Intersects') # filters features intersecting polygon with hole ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.