yonghah / esri2sf

Scrape features from ArcGIS Server REST API and create simple features dataframe
Other
137 stars 37 forks source link

`esri2sf()` now produces CRS warning due to changes in sf's CRS handling #14

Closed walkerke closed 4 years ago

walkerke commented 4 years ago

Due to changes in how sf handles coordinate systems, your example code now produces a warning:

> library(esri2sf)
> url <- "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0"
> df <- esri2sf(url)
Linking to GEOS 3.8.0, GDAL 3.0.4, PROJ 7.0.0

Attaching package: ‘dplyr’

The following objects are masked from ‘package:stats’:

    filter, lag

The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union

[1] "Feature Layer"
[1] "esriGeometryPoint"
Warning message:
In CPL_crs_from_input(x) :
  GDAL Message 1: +init=epsg:XXXX syntax is deprecated. It might return a CRS with a non-EPSG compliant axis order.

I'm going to submit a small PR to circumvent this.

yonghah commented 4 years ago

Thanks for your contribution!

walkerke commented 4 years ago

Happy to help! This package has come in handy for me many times.