Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

edited tags
Link
Maël
  • 53k
  • 6
  • 47
  • 85
added 3 characters in body
Source Link
marc_s
  • 760.2k
  • 186
  • 1.4k
  • 1.5k

I am having troubles with the German Umlaute (ä, ü, ö) and other signs when using osmdata in R.

I can succefullysuccessfully get the data via querryquery (notice the ÜÜ in the bounding box in the first line, it is working fine):

#install.packages("osmdata")
#library(osmdata)
bw <- osmdata::getbb("Baden-Württemberg") %>% 
 osmdata::opq(timeout = 25*100) %>%
 osmdata::add_osm_feature(
 key = "admin_level", 
 value = "4"
 ) %>%
 osmdata::osmdata_sf()

Having a look at the data, one can see that the Umlaute arentumlaute aren't displayed correctly.

View(bw$osm_multipolygons)

Consequently, searching by "name" doesntdoesn't work anymore:

dplyr::filter(bw$osm_multipolygons, name == "Tirol")
dplyr::filter(bw$osm_multipolygons, name == "Baden-Württemberg")

Tirol is working (no Umlautumlaut), Baden-Württemberg (with the üü) isntisn't.

ImI'm running R on a German windowsWindows 10, R is running in English.

Best regards

I am having troubles with the German Umlaute (ä, ü, ö) and other signs when using osmdata in R.

I can succefully get the data via querry (notice the Ü in the bounding box in the first line, it is working fine):

#install.packages("osmdata")
#library(osmdata)
bw <- osmdata::getbb("Baden-Württemberg") %>% 
 osmdata::opq(timeout = 25*100) %>%
 osmdata::add_osm_feature(
 key = "admin_level", 
 value = "4"
 ) %>%
 osmdata::osmdata_sf()

Having a look at the data, one can see that the Umlaute arent displayed correctly.

View(bw$osm_multipolygons)

Consequently, searching by "name" doesnt work anymore:

dplyr::filter(bw$osm_multipolygons, name == "Tirol")
dplyr::filter(bw$osm_multipolygons, name == "Baden-Württemberg")

Tirol is working (no Umlaut), Baden-Württemberg (with the ü) isnt.

Im running R on a German windows 10, R is running in English.

Best regards

I am having troubles with the German Umlaute (ä, ü, ö) and other signs when using osmdata in R.

I can successfully get the data via query (notice the Ü in the bounding box in the first line, it is working fine):

#install.packages("osmdata")
#library(osmdata)
bw <- osmdata::getbb("Baden-Württemberg") %>% 
 osmdata::opq(timeout = 25*100) %>%
 osmdata::add_osm_feature(
 key = "admin_level", 
 value = "4"
 ) %>%
 osmdata::osmdata_sf()

Having a look at the data, one can see that the umlaute aren't displayed correctly.

View(bw$osm_multipolygons)

Consequently, searching by "name" doesn't work anymore:

dplyr::filter(bw$osm_multipolygons, name == "Tirol")
dplyr::filter(bw$osm_multipolygons, name == "Baden-Württemberg")

Tirol is working (no umlaut), Baden-Württemberg (with the ü) isn't.

I'm running R on a German Windows 10, R is running in English.

Best regards

Source Link

Umlaute not displayed correctly with osmdata

I am having troubles with the German Umlaute (ä, ü, ö) and other signs when using osmdata in R.

I can succefully get the data via querry (notice the Ü in the bounding box in the first line, it is working fine):

#install.packages("osmdata")
#library(osmdata)
bw <- osmdata::getbb("Baden-Württemberg") %>% 
 osmdata::opq(timeout = 25*100) %>%
 osmdata::add_osm_feature(
 key = "admin_level", 
 value = "4"
 ) %>%
 osmdata::osmdata_sf()

Having a look at the data, one can see that the Umlaute arent displayed correctly.

View(bw$osm_multipolygons)

Consequently, searching by "name" doesnt work anymore:

dplyr::filter(bw$osm_multipolygons, name == "Tirol")
dplyr::filter(bw$osm_multipolygons, name == "Baden-Württemberg")

Tirol is working (no Umlaut), Baden-Württemberg (with the ü) isnt.

Im running R on a German windows 10, R is running in English.

Best regards

lang-r

AltStyle によって変換されたページ (->オリジナル) /