Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
regions [2013/09/23 23:10] mroriz |
regions [2013/09/23 23:12] mroriz |
||
---|---|---|---|
Line 56: | Line 56: | ||
The three most difficult methods are here : | The three most difficult methods are here : | ||
- | * equals( Object ) - Returns true if this geometry is equal to the specified geometry | + | * '' |
- | * equals( Geometry ) - checks if the geometry is the same shape | + | * '' |
- | * equalsExact( Geometry ) - Returns true if the two Geometrys are exactly equal, up to a specified distance tolerance. | + | * '' |
There are some book keeping methods to help discovery how the geometry was constructed: | There are some book keeping methods to help discovery how the geometry was constructed: | ||
- | * getGeometryFactory() - Gets the factory which contains the context in which this geometry was created. | + | * '' |
- | * getPreceisionModel() | + | * '' |
- | * toText() - the WKT representation of the Geometry | + | * '' |
- | * getGeoemtryType() - factory method called (ie “point”, | + | * '' |
A couple of methods are there to store your developer information: | A couple of methods are there to store your developer information: | ||
- | * getSRID() - stores the “spatial reference id”, used as an external key when working with databases | + | * '' |
- | * getUserData() - intended to be used by developers, a best practice is to store a java.util.Map. GeoTools will occasionally use this field to store a “srsName” or full CoordianteReferenceSystem. | + | * '' |
The code below is based on this two polygons. Its coordinates can be viewed in GerarPoligonoA | The code below is based on this two polygons. Its coordinates can be viewed in GerarPoligonoA |