|
MorphAL 0.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.ign.cogit.alpage.morphal.plugindeprecated.JtsUtil
public class JtsUtil
Cette classe contient des fonction g�om�triques courantes. Elle fonctionne sur des g�om�tries JTS.
Constructor Summary | |
---|---|
JtsUtil()
|
Method Summary | |
---|---|
static void |
addActionListener(java.awt.event.ActionListener l)
Adds an ActionListener to the button. |
static Polygon |
affinite(Polygon geom,
Coordinate c,
double angle,
double coef)
Calcul de l'affinit� vectorielle. |
static Polygon |
affinite(Polygon geom,
double angle,
double scale)
Calcul de l'affinit� vectorielle. |
static double |
circularite(Polygon poly)
Calcule l'indice de circularit� de Miller pour un polygone. |
static double |
convexite(Geometry geom)
Calcul de la convexit� d'un polygone. |
static double |
elongation(Geometry geom)
Calcul de l'�longation d'une g�om�trie. |
static Geometry |
fermeture(Geometry geometry,
double distance,
double distanceTolerance,
int quadrantSegments,
int endCapStyle,
GeometryFactory factory)
Calcul de la fermeture d'une g�om�trie quelconque. |
static Polygon |
fermeture(Polygon polygon,
double distance,
double distanceTolerance,
int quadrantSegments,
int endCapStyle,
GeometryFactory factory)
Calcul de la fermeture d'un polygone. |
static java.util.List<Geometry> |
getListeGeometriesIntersectant(Geometry geom,
java.util.List<Geometry> elements)
D�termine la liste des g�om�tries appartenant � la liste elements qui intersectent la g�om�trie geom. |
static java.util.List<Geometry> |
getListeGeometriesIntersectant(Point point,
java.util.List<Geometry> elements)
D�termine la liste des g�om�tries appartenant � la liste elements qui intersectent le point point. |
static Point |
getPointLePlusLoin(Point pt,
Polygon poly)
D�termine le point d'un polygone le plus loin d'un autre point. |
static Point |
getPointLePlusProche(Point pt,
Polygon poly)
D�termine le point d'un polygone le plus proche d'un autre point. |
static Polygon |
homothetie(Polygon geom,
double scale)
Calcule l'homoth�tie d'une g�om�trie. |
static Polygon |
homothetie(Polygon geom,
double x0,
double y0,
double scale)
Calcule l'homoth�tie d'une g�om�trie. |
static double |
orientation(Geometry geom)
Orientation d'une geometrie (en degr�s entre 0 et 180, par rapport a l'axe Ox). c'est l'orientation du PPRE. |
static double |
plusPetitCote(Polygon poly)
Calcule la longueur du plus petit c�t� d'un polygone. |
static Polygon |
PPRE(Geometry geom)
Plus Petit Rectangle Englobant d'une g�om�trie. |
static Polygon |
PPREAireCible(Geometry geom,
double aireCible)
Plus Petit Rectangle Englobant d'une g�om�trie respectant un aire donn�e. |
static Polygon |
PPREAirePreservee(Geometry geom)
Plus Petit Rectangle Englobant d'une g�om�trie pr�servant son aire. |
static Polygon |
rotation(Polygon geom,
Coordinate c,
double angle)
Effectue une rotation sur une g�om�trie. |
static Polygon |
rotation(Polygon geom,
double angle)
Effectue une rotation sur une g�om�trie autour de son centroide. |
static void |
supprimeTrous(MultiPolygon mp)
Supprime les trous d'un multipolygone, i.e. supprime les trous de tous les polygones d'un multipolygone. |
static void |
supprimeTrous(Polygon poly)
Supprime les trous d'un polygone. |
static Polygon |
translation(Polygon geom,
double dx,
double dy)
Translate une g�om�trie. |
static Geometry |
union(java.util.Collection<Geometry> geometryCollection)
Union d'une collection de Polygones |
static Geometry |
union(Geometry[] geometryArray)
Union d'un tableau de Polygones |
static Geometry |
unionLineString(java.util.List<Geometry> geometryCollection)
Union d'une collection de LineStrings. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JtsUtil()
Method Detail |
---|
public static void addActionListener(java.awt.event.ActionListener l)
ActionListener
to the button.
l
- the ActionListener
to be addedpublic static java.util.List<Geometry> getListeGeometriesIntersectant(Point point, java.util.List<Geometry> elements)
point
- un pointelements
- liste de g�om�tries
public static java.util.List<Geometry> getListeGeometriesIntersectant(Geometry geom, java.util.List<Geometry> elements)
geom
- une g�om�trieelements
- liste de g�om�tries
public static Polygon fermeture(Polygon polygon, double distance, double distanceTolerance, int quadrantSegments, int endCapStyle, GeometryFactory factory)
polygon
- polygone de d�partdistance
- distance utilis�e pour le buffer positif puis pour le buffer n�gatifdistanceTolerance
- distance utilis�e pour la simplification par l'algorithme de Douglas-PeuckerquadrantSegments
- nombre de segments utilis�s pour la simplification par l'algorithme de Douglas-PeuckerendCapStyle
- type d'approximation utilis�e pour la simplification par l'algorithme de Douglas-Peuckerfactory
- factory pour la g�om�trie
public static Geometry fermeture(Geometry geometry, double distance, double distanceTolerance, int quadrantSegments, int endCapStyle, GeometryFactory factory)
geometry
- g�om�trie de d�partdistance
- distance utilis�e pour le buffer positif puis pour le buffer n�gatifdistanceTolerance
- distance utilis�e pour la simplification par l'algorithme de Douglas-PeuckerquadrantSegments
- nombre de segments utilis�s pour la simplification par l'algorithme de Douglas-PeuckerendCapStyle
- type d'approximation utilis�e pour la simplification par l'algorithme de Douglas-Peuckerfactory
- factory pour la g�om�trie
public static Point getPointLePlusLoin(Point pt, Polygon poly)
pt
- un point, a pointpoly
- un polygone convexe sans trou, a convex polygon without holepublic static Point getPointLePlusProche(Point pt, Polygon poly)
pt
- un point, a pointpoly
- un polygone, a polygonpublic static void supprimeTrous(Polygon poly)
poly
- un polygone, a polygonpublic static void supprimeTrous(MultiPolygon mp)
mp
- un multipolyone, a multipolygonsupprimeTrous(Polygon)
public static Polygon affinite(Polygon geom, Coordinate c, double angle, double coef)
geom
- une g�om�trie, a geometryc
- coordonn�es d'un point par lequel passe l'axe de l'affinit�angle
- angle de la direction de l'affinite, � partir de l'axe des xcoef
- coefficient de l'homoth�tie
public static Polygon affinite(Polygon geom, double angle, double scale)
geom
- une g�om�trie, a geometryangle
- angle de la direction de l'affinite, � partir de l'axe des xscale
- coefficient de l'homoth�tie
affinite(Polygon, Coordinate, double, double)
public static Polygon PPREAirePreservee(Geometry geom)
geom
- une g�om�trie, a geometry
public static Polygon PPREAireCible(Geometry geom, double aireCible)
geom
- une g�om�trie, a geometryaireCible
- aire vis�e, target area
public static Polygon PPRE(Geometry geom)
geom
- une g�om�trie, a geometry
public static Polygon homothetie(Polygon geom, double x0, double y0, double scale)
geom
- g�om�trie, geometryx0
- position en X du centre de l'homoth�tie, X position of the center of the operationy0
- position en Y du centre de l'homoth�tie, Y position of the center of the operationscale
- facteur d'�chelle, scale factor
public static Polygon homothetie(Polygon geom, double scale)
geom
- g�om�trie, geometryscale
- facteur d'�chelle, scale factor
public static Polygon translation(Polygon geom, double dx, double dy)
geom
- une g�om�trie, a geometrydx
- translation suivant l'axe des x, translation along the X axisdy
- translation suivant l'axe des Y, translation along the Y axis
public static Polygon rotation(Polygon geom, Coordinate c, double angle)
geom
- une g�om�trie, a geometryc
- centre de la rotation, center of the rotationangle
- angle de rotation, angle of rotation
public static Polygon rotation(Polygon geom, double angle)
geom
- une g�om�trie, a geometryangle
- angle de rotation, angle of rotation
public static double elongation(Geometry geom)
geom
- une g�om�trie, a geometry
public static double orientation(Geometry geom)
geom
- une g�om�trie, a geometry
public static double convexite(Geometry geom)
geom
- une g�om�trie, a geometry
public static double plusPetitCote(Polygon poly)
poly
- un polygone, a polygon
public static double circularite(Polygon poly)
poly
-
public static Geometry union(Geometry[] geometryArray)
geometryArray
- tableau de Polygones JTS
public static Geometry union(java.util.Collection<Geometry> geometryCollection)
geometryCollection
- collection de Polygones JTS
public static Geometry unionLineString(java.util.List<Geometry> geometryCollection)
geometryCollection
- collection de LineStrings
|
MorphAL 0.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |