The JPGIS (GML) format file provided by FGD as input, the fundamental items in the file is read as an 'sf' object. Supporting FGD Version 4.1 (2016/10/31).

read_fgd(file)

Arguments

file

Path to XML file

Value

A sf

Details

Support following items: Administrative Area ('AdmArea'), Administrative Boundary ('AdmBdry'), Representative point of Administrative Area ('AdmPt'), Building Area ('BldA'), Building Outline ('BldL'), Contour ('Cntr'), Community Boundary ('CommBdry'), Representative Point of Community Area ('CommPt'), Coastline ('Cstline'), Elevation Point ('ElevPt'), Geodetic Control Point ('GCP'), Railroad Track Centerline ('RailCL'), Road Component ('RdCompt'), Road Edge ('RdEdg'), Water Area ('WA'), Water Line ('WL') and Waterside Structure Line ('WStrL').

Examples

# Administrative Area
read_fgd(system.file("extdata/FG-GML-000000-AdmPt-dummy.xml", package = "fgdr"))
#> Simple feature collection with 1 feature and 8 fields
#> Geometry type: POINT
#> Dimension:     XY
#> Bounding box:  xmin: 140.085 ymin: 36.1035 xmax: 140.085 ymax: 36.1035
#> Geodetic CRS:  JGD2011
#> # A tibble: 1 × 9
#>   gml_id       type  name  adm_code life_span_from development_date org_gi_level
#>   <chr>        <chr> <chr> <chr>    <date>         <date>                  <int>
#> 1 K6_00000000… 郡市… dummy 00000    2018-12-01     2018-12-01              25000
#> # … with 2 more variables: visibility <chr>, geometry <POINT [°]>