uribo / jpndistrict

🗾 Create Japansese Administration Area Maps
http://uribo.github.io/jpndistrict
Other
22 stars 3 forks source link

jis-code Validation Failed in start with 0 strings #19

Closed uribo closed 6 years ago

uribo commented 6 years ago
jpndistrict:::jpn_pref(8)
#> Simple feature collection with 44 features and 4 fields
#> geometry type:  GEOMETRY
#> dimension:      XY
#> bbox:           xmin: 139.6876 ymin: 35.73911 xmax: 140.8521 ymax: 36.94456
#> epsg (SRID):    4326
#> proj4string:    +proj=longlat +datum=WGS84 +no_defs
#> # A tibble: 44 x 5
#>    pref_code prefecture city_code city                            geometry
#>    <chr>     <chr>      <chr>     <chr>                     <GEOMETRY [°]>
#>  1 08        茨城県     08201     水戸市     POLYGON ((140.3894 36.46402,…
#>  2 08        茨城県     08202     日立市     MULTIPOLYGON (((140.7177 36.…
#>  3 08        茨城県     08203     土浦市     POLYGON ((140.1585 36.17482,…
#>  4 08        茨城県     08204     古河市     POLYGON ((139.8188 36.22698,…
#>  5 08        茨城県     08205     石岡市     POLYGON ((140.2065 36.31803,…
#>  6 08        茨城県     08207     結城市     POLYGON ((139.8778 36.32303,…
#>  7 08        茨城県     08208     龍ケ崎市   MULTIPOLYGON (((140.098 36.0…
#>  8 08        茨城県     08210     下妻市     MULTIPOLYGON (((139.9394 36.…
#>  9 08        茨城県     08211     常総市     POLYGON ((139.9601 36.14557,…
#> 10 08        茨城県     08212     常陸太田市 POLYGON ((140.5691 36.86238,…
#> # ... with 34 more rows
jpndistrict:::admins_code_validate("08201")
#> Error: x must be start a integer or as character from 1 to 47.

Created on 2018-08-03 by the reprex package (v0.2.0).