We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00bf138 commit c30d75aCopy full SHA for c30d75a
src/main/groovy/geoscript/layer/Layer.groovy
@@ -859,7 +859,7 @@ class Layer {
859
* @param out A GeoJSON String
860
*/
861
String toJSONString() {
862
- geoJSONWriter.write(layer)
+ geoJSONWriter.write(this)
863
}
864
865
/**
src/test/groovy/geoscript/layer/LayerTestCase.groovy
@@ -157,6 +157,8 @@ class LayerTestCase {
157
String json = out.toString()
158
assertNotNull json
159
assertTrue json.startsWith("{\"type\":\"FeatureCollection\",\"features\":[")
160
+ json = layer1.toJSONString()
161
+ assertTrue json.startsWith("{\"type\":\"FeatureCollection\",\"features\":[")
162
163
164
@Test void toKML() {
0 commit comments