spat_xml: Creates the spatial part of a filter in XML format

spat_xmlR Documentation

Creates the spatial part of a filter in XML format

Description

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 .

Usage

spat_xml(
  gemprop,
  feature,
  distance = NULL,
  version = WFS_get_version(),
  spat_fun = "DWithin",
  units = "meters"
)

Arguments

gemprop

Character string with the name of the geometric field

feature

Character with XML description of feature. Description can be result of spat_feature()

distance

Number scalar with distance for DWithin operator. Unit given by argument units

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 distance

Value

Character vector with the created xml fragment

Examples

## 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)

HanOostdijk/HOQCwfs documentation built on March 6, 2023, 8:18 a.m.