Skip to content

Commit

Permalink
Set default epsg to WGS 84 (#52)
Browse files Browse the repository at this point in the history
* Set default epsg to WGS 84

* Add arm platform
  • Loading branch information
armandfardeau authored Apr 18, 2023
1 parent fa10180 commit 8859848
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,8 @@ GEM
net-smtp (0.3.3)
net-protocol
nio4r (2.5.8)
nokogiri (1.13.10-arm64-darwin)
racc (~> 1.4)
nokogiri (1.13.10-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.13.10-x86_64-linux)
Expand Down Expand Up @@ -797,6 +799,7 @@ GEM
zeitwerk (2.6.7)

PLATFORMS
arm64-darwin-21
x86_64-darwin-21
x86_64-linux

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module CoordinatesSwapper
def self.convert_geojson(geojson, opts = {})
return nil if geojson.nil?

from = opts[:from] || detect_crs(geojson) || "EPSG:3857"
from = opts[:from] || detect_crs(geojson) || "EPSG:4326"
to = opts[:to] || "EPSG:4326"

geojson_clone = geojson.dup.deep_symbolize_keys
Expand Down

0 comments on commit 8859848

Please sign in to comment.