class Viewer extends java.lang.Object
A Viewer can be used to visualize Geometry.
Or you can plot a List of Geometries.import geoscript.geom.Point import geoscript.viewer.Viewer Point p = new Point(10,10) Viewer.draw(p.buffer(100))
import geoscript.geom.Point import geoscript.viewer.Viewer Point p = new Point(10,10) Viewer.plot([p, p.buffer(50), p.buffer(100)])
| Constructor and description | 
|---|
                                Viewer() | 
                        
| Type Params | Return Type | Name and description | 
|---|---|---|
 | 
                            static void | 
                            draw(java.util.Map options, java.lang.Object geom)Draw a Geometry (or List of Geometries) onto a GUI  | 
                        
 | 
                            static void | 
                            draw(java.util.Map options, java.awt.Graphics2D g2d, java.util.List geometries)Draw a List of GeoScript Geometries to a Graphics2D.  | 
                        
 | 
                            static java.lang.String | 
                            drawToBase64EncodedString(java.util.Map options, java.lang.Object geom)Draw Geometry (or List of Geometries) to a Base64 Encoded String  | 
                        
 | 
                            static void | 
                            drawToFile(java.util.Map options, java.lang.Object geom, java.io.File file)Save a drawing of the Geometry (or List of Geometries) to a File  | 
                        
 | 
                            static java.awt.image.BufferedImage | 
                            drawToImage(java.util.Map options, java.lang.Object geom)Draw Geometry (or List of Geometries) to a BufferedImage  | 
                        
| Methods inherited from class | Name | 
|---|---|
class java.lang.Object | 
                            java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() | 
                        
Draw a Geometry (or List of Geometries) onto a GUI
options -  A Map of options or named parameters
 geom -  The Geometry to List of Geometries to renderDraw a List of GeoScript Geometries to a Graphics2D.
options -  A Map of options or named parameters
 g2d -  The Graphics2Dgeometries -  A List of GeoScript GeometriesDraw Geometry (or List of Geometries) to a Base64 Encoded String
options -  A Map of options or named parameters
 geom -  A Geometry or a List of GeometriesSave a drawing of the Geometry (or List of Geometries) to a File
options -  A Map of options or named parametersgeom -  A Geometry or a List of Geometriesfile -  The FileDraw Geometry (or List of Geometries) to a BufferedImage
options -  A Map of options or named parameters
 geom -  A Geometry or a List of Geometries