|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.aims.mtier.model.map.projection.Project
public class Project
Converts the given geometry from one coordinate system to another coordinate system based on specified from coordsys and to coordsys. This class will send ArcXML request GET_PROJECT.
Constructor Summary | |
---|---|
Project()
|
Method Summary | |
---|---|
int |
getAccuracy()
Return the accuracy value. |
boolean |
getCompact()
Return the compact value. |
double |
getDensifyTolerance()
Return the DensifyTolerance value. |
boolean |
getEnvelope()
Returns the boolean value. |
Collection |
getEnvelopeCollection()
Returns the Collection object containing instance of Envelope object. |
String |
getErrorString()
Returns the error message from the ArcIMS Spatial Server. |
CoordSys |
getFromCoordsys()
Returns the current coordinate system. |
Collection |
getMultiPointCollection()
Returns the Collection object containing instance of Points object. |
Collection |
getPolygonCollection()
Returns the Collection object containing instance of Polygon object. |
Collection |
getPolylineCollection()
Returns the Collection object containing instance of Polyline object. |
Project |
getProjectResponse(ConnectionProxy connection)
Return Project object which has the converted geometry. |
Separators |
getSeparators()
Returns the Separators Object. |
CoordSys |
getToCoordsys()
Returns the coordinate system the geometry will be projected to. |
void |
setAccuracy(int value)
Sets the accuracy for the projection. |
void |
setCompact(boolean value)
Compact value switches geometry to compact form in the response. |
void |
setDensifyTolerance(double value)
DensifyTolerance defines the distance (tolerance) between points and is applied on the geometry before projecting takes place. |
void |
setEnvelope(boolean value)
Setting to "true", geometry is returned as an ENVELOPE. |
void |
setEnvelopeCollection(Collection envelopes)
Sets the Collection object containing instance of Envelope Object. |
void |
setFromCoordsys(CoordSys value)
Sets the current coordinate system of the geometry. |
void |
setMultiPointCollection(Collection points)
Sets the Collection object containing instance of Points Object. |
void |
setPolygonCollection(Collection polygons)
Sets the Collection object containing instance of Polygon Object. |
void |
setPolylineCollection(Collection polylines)
Sets the Collection object containing instance of Polyline Object. |
void |
setSeparators(Separators value)
Set the Separators object when setCompact(true). |
void |
setToCoordsys(CoordSys value)
Sets the coordinate system the geometry will be projected to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Project()
Method Detail |
---|
public int getAccuracy()
public void setAccuracy(int value)
value
- intpublic boolean getCompact()
public void setCompact(boolean value)
value
- booleanpublic double getDensifyTolerance()
public void setDensifyTolerance(double value)
value
- doublepublic boolean getEnvelope()
public void setEnvelope(boolean value)
value
- booleanpublic CoordSys getFromCoordsys()
public void setFromCoordsys(CoordSys value)
value
- CoordSyspublic CoordSys getToCoordsys()
public void setToCoordsys(CoordSys value)
value
- CoordSyspublic Separators getSeparators()
public void setSeparators(Separators value)
value
- Separatorspublic String getErrorString()
public Collection getEnvelopeCollection()
public void setEnvelopeCollection(Collection envelopes)
envelopes
- Collectionpublic Collection getPolygonCollection()
public void setPolygonCollection(Collection polygons)
Collection polygons = new ArrayList();
Polygon polygon = new Polygon();
Ring ring = new Ring();
ring.setPoints(points);
Hole hole = new Hole();
hole.setPoints(points);
ring.addHoles(hole);
polygon.addRing(ring);
polygons.add(polygon);
project.setPolygonCollection(polygons);
polygons
- Collectionpublic Collection getPolylineCollection()
Collection coll = returnProjection.getPolylineCollection();
Polyline polyline = null;
for (Iterator iter = coll.iterator();iter.hasNext();){
Object obj = iter.next();
if (obj instanceof Polyline) polyline = (Polyline)obj;
}
public void setPolylineCollection(Collection polylines)
polylines
- Collectionpublic Collection getMultiPointCollection()
public void setMultiPointCollection(Collection points)
points
- Collectionpublic Project getProjectResponse(ConnectionProxy connection)
connection
- ConnectionProxy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |