Skip to content

non-ASCII string in CRS #1341

@Nowosad

Description

@Nowosad

One of the datasets in the spDataLarge package is study_mask. I have tried to update its CRS using the idea from #1319. It works well until I check the package with CMD check, which returns warning found non-ASCII string due to the use of degree symbols.

 Warning: found non-ASCII string
(...)

      USAGE[

          SCOPE["unknown"],

          AREA["World - S hemisphere - 84<c2><b0>W to 78<c2><b0>W - by country"],

          BBOX[-80,-84,0,-78]],

      ID["EPSG",32717]]' in object 'study_mask'

Please see line 1002 at https://travis-ci.org/github/Nowosad/spDataLarge/builds/671497311#L1002.

# install.packages("spDataLarge", repos = "https://nowosad.github.io/drat/", type = "source")
library(spDataLarge)
library(sf)
#> Linking to GEOS 3.8.0, GDAL 3.0.4, PROJ 7.0.0

st_crs(study_mask)
#> Coordinate Reference System:
#>   User input: EPSG:32717 
#>   wkt:
#> PROJCRS["WGS 84 / UTM zone 17S",
#>     BASEGEOGCRS["WGS 84",
#>         DATUM["World Geodetic System 1984",
#>             ELLIPSOID["WGS 84",6378137,298.257223563,
#>                 LENGTHUNIT["metre",1]]],
#>         PRIMEM["Greenwich",0,
#>             ANGLEUNIT["degree",0.0174532925199433]],
#>         ID["EPSG",4326]],
#>     CONVERSION["UTM zone 17S",
#>         METHOD["Transverse Mercator",
#>             ID["EPSG",9807]],
#>         PARAMETER["Latitude of natural origin",0,
#>             ANGLEUNIT["degree",0.0174532925199433],
#>             ID["EPSG",8801]],
#>         PARAMETER["Longitude of natural origin",-81,
#>             ANGLEUNIT["degree",0.0174532925199433],
#>             ID["EPSG",8802]],
#>         PARAMETER["Scale factor at natural origin",0.9996,
#>             SCALEUNIT["unity",1],
#>             ID["EPSG",8805]],
#>         PARAMETER["False easting",500000,
#>             LENGTHUNIT["metre",1],
#>             ID["EPSG",8806]],
#>         PARAMETER["False northing",10000000,
#>             LENGTHUNIT["metre",1],
#>             ID["EPSG",8807]]],
#>     CS[Cartesian,2],
#>         AXIS["(E)",east,
#>             ORDER[1],
#>             LENGTHUNIT["metre",1]],
#>         AXIS["(N)",north,
#>             ORDER[2],
#>             LENGTHUNIT["metre",1]],
#>     USAGE[
#>         SCOPE["unknown"],
#>         AREA["World - S hemisphere - 84°W to 78°W - by country"],
#>         BBOX[-80,-84,0,-78]],
#>     ID["EPSG",32717]]

Created on 2020-04-06 by the reprex package (v0.3.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions