Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xml element name discrepancy #21

Closed
uribo opened this issue Aug 19, 2020 · 0 comments
Closed

xml element name discrepancy #21

uribo opened this issue Aug 19, 2020 · 0 comments
Labels
bug

Comments

@uribo
Copy link
Owner

@uribo uribo commented Aug 19, 2020

メールでの問合せから。

FG-GML-6442-01-dem10B-20161001read_fgdr_dem(return_class = "stars")で実行すると下記のエラー。

XMLファイルのvis要素があるためにメッシュコードを参照する位置がずれているものと思われる。

library(fgdr)
r <- 
    read_fgd_dem("FG-GML-6442-01-dem10B-20161001.xml", 
                 resolution = 10, 
                 return_class = "stars")
#> meshcode must be numeric ranges 4 to 11 digits
#> Error in UseMethod("st_transform"): no applicable method for 'st_transform' applied to an object of class "NULL"
xml_opts <- "HUGE"
file_info <- fgdr:::fgd_dem_file_info(file, options = xml_opts)
file_info$meshcode
#> [1] "10mメッシュ(標高)"

# 他のもの
file_info <- fgdr:::fgd_dem_file_info("FG-GML-5439-17-dem10b-20161001.xml", options = xml_opts)
file_info$meshcode
#> [1] "543917"

Created on 2020-08-19 by the reprex package (v0.3.0)

@uribo uribo added the bug label Aug 19, 2020
@uribo uribo closed this in 0a2d07e Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.