rgeo / rgeo-proj4

Proj4 extension for rgeo.
MIT License
13 stars 14 forks source link

Failt to use proj4 with rails. #6

Closed haroldofurtado closed 3 years ago

haroldofurtado commented 4 years ago

System: MacOSX Catalina 10.15.6

Instaled from Homebrew

brew install proj

When I run:

projsync --system-directory

At least one of --list-files, --file, --source-id, --area-of-use, --bbox or --all must be specified.

usage: projsync 
          [--endpoint URL]
          [--local-geojson-file FILENAME]
          ([--user-writable-directory] | [--system-directory] | [--target-dir DIRNAME])
          [--bbox west_long,south_lat,east_long,north_lat]
          [--spatial-test contains|intersects]
          [--source-id ID] [--area-of-use NAME]
          [--file NAME]
          [--all] [--exclude-world-coverage]
          [--quiet] [--dry-run] [--list-files]

Gemfile

gem "rgeo", "~> 2.1"
gem "rgeo-proj4", "~> 2.0"

Ruby Version

2.5.8

Rails Version

rails 5.2.4.2

rails c

pry(main)> RGeo::CoordSys::Proj4.supported?                                                                                                              
false
LocoDelAssembly commented 4 years ago

Potential duplicate of https://github.com/rgeo/rgeo-proj4/issues/4

Which proj version do you have installed ($ proj -v)?

haroldofurtado commented 4 years ago

Version:

❯ proj -v                    
Rel. 7.1.0, August 1st, 2020
<proj>: 
projection initialization failure
cause: no arguments in initialization list
program abnormally terminated

I could use that with https://github.com/rgeo/rgeo-proj4/issues/4#issuecomment-536193184 this tutorial, mas I had to make few changes. Would be great if I could install and use that normally.

keithdoggett commented 3 years ago

Fixed by #10