File tree Expand file tree Collapse file tree 4 files changed +21
-6
lines changed
Expand file tree Collapse file tree 4 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 1+ java_import org . geotools . geojson . feature . FeatureJSON
2+
3+ module GeoScript
4+ module IO
5+ module Feature
6+ def self . write_json ( feature )
7+ FeatureJSON . new . to_string feature
8+ end
9+
10+ def self . read_json ( json )
11+ GeoScript ::Feature . new ( FeatureJSON . new . read_feature ( json ) )
12+ end
13+ end
14+ end
15+ end
Original file line number Diff line number Diff line change 11java_import org . geotools . geojson . geom . GeometryJSON
22
33module GeoScript
4- module Geom
5- module IO
4+ module IO
5+ module Geom
66 def self . write_json ( geom )
77 GeometryJSON . new . to_string geom
88 end
Original file line number Diff line number Diff line change 22java_import com . vividsolutions . jts . io . WKBWriter
33
44module GeoScript
5- module Geom
6- module IO
5+ module IO
6+ module Geom
77 include GeoScript ::Util
88
99 def self . write_wkb ( geom )
Original file line number Diff line number Diff line change 22java_import com . vividsolutions . jts . io . WKTWriter
33
44module GeoScript
5- module Geom
6- module IO
5+ module IO
6+ module Geom
77 def self . read_wkt ( wkt )
88 WKTReader . new . read wkt
99 end
You can’t perform that action at this time.
0 commit comments