-
Notifications
You must be signed in to change notification settings - Fork 301
Description
Hi all,
I am trying to revetrive dataset of the municipal borders of belgium.
url <- "http://ccff02.minfin.fgov.be/geoservices/arcgis/services/INSPIRE/AU_wfs/MapServer/WFSServer?request=getcapabilities&service=wfs&version=1.1.0"
#get the unit data
unit <- st_read(url, layer = "au:AdministrativeUnit")
unit$SHAPE <- st_transform(unit$SHAPE, 4326)
At first instance, it looks okay, however if I do a quick plot, I noticed that it is currently residing next to Somalia. I check other data that I have of Belgium and it seems like the XY of the boundary box should be the other way around.
My data
geometry type: POLYGON
dimension: XY
bbox: xmin: 2.607302 ymin: 51.10844 xmax: 2.611473 ymax: 51.11213
epsg (SRID): 4326
proj4string: +proj=longlat +datum=WGS84 +no_defs
Data of url
geometry type: MULTISURFACE
dimension: XY
bbox: xmin: 49.49696 ymin: 2.541327 xmax: 51.50511 ymax: 6.408098
epsg (SRID): 4326
proj4string: +proj=longlat +datum=WGS84 +no_defs
Can I add something in my st_read request to change XY?
Thanks so much in advance.