com.ontimize.util.gis.client.utils
Class GisEditionUtilities

java.lang.Object
  extended by com.ontimize.util.gis.client.utils.GisEditionUtilities

public class GisEditionUtilities
extends java.lang.Object

Static methods used on edition data managing


Field Summary
static com.vividsolutions.jts.geom.GeometryFactory gf
           
 
Constructor Summary
GisEditionUtilities()
           
 
Method Summary
static java.util.List<java.util.Hashtable> addNodeToLine(java.util.List<java.util.Hashtable> editionData, com.vividsolutions.jts.geom.Point interestPoint, double pixelSize, java.lang.String geoColName)
          Add a new node to the line inserting it in the nearest two nodes path
static java.util.List<java.util.Hashtable> addNodeToPolygon(java.util.List<java.util.Hashtable> editionData, com.vividsolutions.jts.geom.Point interestPoint, double pixelSize, java.lang.String geoColName)
          Add a new node to the polygon inserting it in the nearest two nodes path
static BasicToolbarButton getButton(java.lang.String buttAttr, java.lang.String buttText, java.lang.String buttonIcon)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gf

public static com.vividsolutions.jts.geom.GeometryFactory gf
Constructor Detail

GisEditionUtilities

public GisEditionUtilities()
Method Detail

addNodeToPolygon

public static java.util.List<java.util.Hashtable> addNodeToPolygon(java.util.List<java.util.Hashtable> editionData,
                                                                   com.vividsolutions.jts.geom.Point interestPoint,
                                                                   double pixelSize,
                                                                   java.lang.String geoColName)
Add a new node to the polygon inserting it in the nearest two nodes path

Parameters:
editionData - List of data containing the polygon and its individual nodes
interestPoint - Geographic location of the new node
pixelSize - Actual pixel resolution of the map panel
Returns:
If node is not added: Empty list If node is added correctly: List with edition data

addNodeToLine

public static java.util.List<java.util.Hashtable> addNodeToLine(java.util.List<java.util.Hashtable> editionData,
                                                                com.vividsolutions.jts.geom.Point interestPoint,
                                                                double pixelSize,
                                                                java.lang.String geoColName)
Add a new node to the line inserting it in the nearest two nodes path

Parameters:
editionData - List of data containing the line and its individual nodes
interestPoint - Geographic location of the new node
pixelSize - Actual pixel resolution of the map panel
Returns:
If node is not added: Empty list If node is added correctly: List with edition data

getButton

public static BasicToolbarButton getButton(java.lang.String buttAttr,
                                           java.lang.String buttText,
                                           java.lang.String buttonIcon)