com.ontimize.util.gis.client.utils
Class GisEditionUtilities
java.lang.Object
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
|
|
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 |
gf
public static com.vividsolutions.jts.geom.GeometryFactory gf
GisEditionUtilities
public GisEditionUtilities()
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 nodesinterestPoint - Geographic location of the new nodepixelSize - 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 nodesinterestPoint - Geographic location of the new nodepixelSize - 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)