reproject icon indicating copy to clipboard operation
reproject copied to clipboard

SpatialReference site is https only

Open dracos opened this issue 5 years ago • 1 comments

$ cat works.json | reproject --from=EPSG:27700 --to=EPSG:4326 --sr
[...]
Error: spatialreference.org responded with HTTP 301 when looking up "EPSG:27700".

The 301 redirect to https returned for the http request throws an error. The basic answer of switching the URL to https does not work because the http fetcher included only appears to support http. Thanks for this package :)

dracos avatar Jun 25 '20 10:06 dracos

Hi! Thanks for the feedback. I guess it's time to deprecate the spatialreference.org code if there's no easy fix. I would recommend you to use the --use-epsg-io (or --eio) option instead, which works the same, but fetches data from epsg.io instead.

perliedman avatar Aug 14 '20 07:08 perliedman