Skip to content

Commit b276ac5

Browse files
committed
Force axis ordering (was removed with jars.rb)
1 parent 576f594 commit b276ac5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/geoscript.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
abort "GeoScript requires JRuby (http://jruby.org)"
1717
end
1818

19+
java_import org.geotools.factory.Hints
20+
21+
unless java.lang.System.get_property('org.geotools.referencing.forceXY') == 'true'
22+
java.lang.System.set_property 'org.geotools.referencing.forceXY', 'true'
23+
end
24+
25+
Hints.put_system_default Hints::FORCE_LONGITUDE_FIRST_AXIS_ORDER, java.lang.Boolean.new(true)
26+
1927
module GeoScript
2028
class << self
2129
def version

0 commit comments

Comments
 (0)