public PointTo toTransferObject ( Point input ) { PointTo result = new PointTo ( ) ; result . setCrs ( GeoJsonTo . createCrsTo ( "EPSG:" + input . getSRID ( ) ) ) ; result . setCoordinates ( getPoints ( input ) [ 0 ] ) ; return result ; }
Converts a point to its corresponding Transfer Object