org.ala.layers.grid
Class Envelope

java.lang.Object
  extended by org.ala.layers.grid.Envelope

public class Envelope
extends java.lang.Object

Author:
Adam

Constructor Summary
Envelope()
           
 
Method Summary
static com.vividsolutions.jts.geom.MultiPolygon getGridEnvelopeAsMultiPolygon(java.lang.String params)
          Get a grid envelope as MultiPolygon.
static java.lang.String getGridEnvelopeAsWkt(java.lang.String params)
          Get a grid envelope as WKT.
static java.util.Map getGridSingleLayerEnvelopeAsWktIndexed(java.lang.String params, int[] map)
          Get a grid envelope as WKT with index.
static void streamGridEnvelopeAsWkt(java.lang.String params, java.io.OutputStream os)
          Stream a grid envelope as WKT.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Envelope

public Envelope()
Method Detail

getGridEnvelopeAsWkt

public static java.lang.String getGridEnvelopeAsWkt(java.lang.String params)
Get a grid envelope as WKT. Envelope one or more 'grid file name,minimum,maximum'.

Parameters:
params - comma separated grid file name,min,max,field.id2,min,max
Returns:
wkt representing the envelope as String.

getGridEnvelopeAsMultiPolygon

public static com.vividsolutions.jts.geom.MultiPolygon getGridEnvelopeAsMultiPolygon(java.lang.String params)
Get a grid envelope as MultiPolygon. Envelope one or more 'grid file name,minimum,maximum'.

Parameters:
params - comma separated grid file name,min,max,field.id2,min,max
Returns:
wkt representing the envelope as String.

streamGridEnvelopeAsWkt

public static void streamGridEnvelopeAsWkt(java.lang.String params,
                                           java.io.OutputStream os)
                                    throws java.io.IOException
Stream a grid envelope as WKT. Envelope one or more 'grid file name,minimum,maximum'.

Parameters:
params - comma separated grid file name,min,max,field.id2,min,max
Throws:
java.io.IOException

getGridSingleLayerEnvelopeAsWktIndexed

public static java.util.Map getGridSingleLayerEnvelopeAsWktIndexed(java.lang.String params,
                                                                   int[] map)
Get a grid envelope as WKT with index. Only one envelope 'grid file name,minimum,maximum'.

Parameters:
params - comma separated grid file name,min,max,field.id2,min,max
map - whole grid layer mapping to individual polygons. Accumulative on the same layer with min and max values that do no overlap
Returns:
Map containing "wkt" as String, "map" with updated input map, "index" as csv with records 'map value','wkt polygon character start position'.


Copyright © 2014. All Rights Reserved.