public static void writeGeoJson ( Connection connection , String fileName , String tableReference , String encoding ) throws IOException , SQLException { GeoJsonDriverFunction geoJsonDriver = new GeoJsonDriverFunction ( ) ; geoJsonDriver . exportTable ( connection , tableReference , URIUtilities . fileFromString ( fileName ) , new EmptyProgressVisitor ( ) , encoding ) ; }
Write the GeoJSON file .