All Downloads are FREE. Search and download functionalities are using the official Maven repository.

grails.mongodb.geo._geometryCollection.gson Maven / Gradle / Ivy

Go to download

Provides additional view technologies to the Grails framework, including JSON and Markup views.

The newest version!
/**
 * A template for rendering a GeoJSON GeometryCollection in MongoDB
 */
import grails.mongodb.geo.*
import groovy.transform.Field

@Field GeometryCollection geometryCollection

json {
    type "GeometryCollection"
    geometries( geometryCollection ) { GeoJSON current ->
        type current.getClass().simpleName
        coordinates current.asList()
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy