com.vividsolutions.jts.geom

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » jts » com.vividsolutions.jts.geom 
com.vividsolutions.jts.geom
Contains the Geometry interface hierarchy and supporting classes.

The Java Topology Suite (JTS) is a Java API that implements a core set of spatial data operations using an explicit precision model and robust geometric algorithms. JTS is intended to be used in the development of applications that support the validation, cleaning, integration and querying of spatial datasets.

JTS attempts to implement the OpenGIS Simple Features Specification (SFS) as accurately as possible. In some cases the SFS is unclear or omits a specification; in this case JTS attempts to choose a reasonable and consistent alternative. Differences from and elaborations of the SFS are documented in this specification.

Package Specification

Java Source File NameTypeComment
Coordinate.javaClass A lightweight class used to store coordinates on the 2-dimensional Cartesian plane. It is distinct from Point, which is a subclass of Geometry .
CoordinateArrays.javaClass
CoordinateFilter.javaInterface Geometry classes support the concept of applying a coordinate filter to every coordinate in the Geometry.
CoordinateList.javaClass A list of Coordinate s, which may be set to prevent repeated coordinates from occuring in the list.
CoordinateSequence.javaInterface The internal representation of a list of coordinates inside a Geometry.

There are some cases in which you might want Geometries to store their points using something other than the JTS Coordinate class.

CoordinateSequenceComparator.javaClass Compares two CoordinateSequence s.
CoordinateSequenceFactory.javaInterface A factory to create concrete instances of CoordinateSequence s.
CoordinateSequenceFilter.javaInterface Interface for classeswhich provide operations that can be applied to the coordinates in a CoordinateSequence .
CoordinateSequences.javaClass
DefaultCoordinateSequence.javaClass The CoordinateSequence implementation that Geometries use by default.
DefaultCoordinateSequenceFactory.javaClass Creates CoordinateSequences represented as an array of Coordinate s.
Dimension.javaClass Constants representing the dimensions of a point, a curve and a surface.
Envelope.javaClass Defines a rectangular region of the 2D coordinate plane. It is often used to represent the bounding box of a Geometry , e.g.
Geometry.javaClass The base class for all geometric objects.

Binary Predicates

Because it is not clear at this time what semantics for spatial analysis methods involving GeometryCollections would be useful, GeometryCollections are not supported as arguments to binary predicates (other than convexHull) or the relate method.

Set-Theoretic Methods

The spatial analysis methods will return the most specific class possible to represent the result.
GeometryCollection.javaClass Basic implementation of GeometryCollection.
GeometryCollectionIterator.javaClass Iterates over all Geometry s in a GeometryCollection . .
GeometryComponentFilter.javaInterface Geometry classes support the concept of applying a GeometryComponentFilter filter to the Geometry.
GeometryFactory.javaClass Supplies a set of utility methods for building Geometry objects from lists of Coordinates.
GeometryFilter.javaInterface GeometryCollection classes support the concept of applying a GeometryFilter to the Geometry.
IntersectionMatrix.javaClass A Dimensionally Extended Nine-Intersection Model (DE-9IM) matrix.
LinearRing.javaClass Models an OGC SFS LinearRing.
LineSegment.javaClass Represents a line segment defined by two Coordinate s.
LineString.javaClass Basic implementation of LineString.
Location.javaClass Constants representing the location of a point relative to a geometry.
MultiLineString.javaClass Basic implementation of MultiLineString.
MultiPoint.javaClass Models a collection of Points.
MultiPolygon.javaClass Basic implementation of MultiPolygon.
Point.javaClass Basic implementation of Point.
Polygon.javaClass Represents a linear polygon, which may include holes.
PrecisionModel.javaClass Specifies the precision model of the Coordinate s in a Geometry . In other words, specifies the grid of allowable points for all Geometrys.

The makePrecise method allows rounding a coordinate to a "precise" value; that is, one whose precision is known exactly.

Coordinates are assumed to be precise in geometries. That is, the coordinates are assumed to be rounded to the precision model given for the geometry. JTS input routines automatically round coordinates to the precision model before creating Geometries. All internal operations assume that coordinates are rounded to the precision model. Constructive methods (such as boolean operations) always round computed coordinates to the appropriate precision model.

Currently three types of precision model are supported:

  • FLOATING - represents full double precision floating point. This is the default precision model used in JTS
  • FLOATING_SINGLE - represents single precision floating point.
  • FIXED - represents a model with a fixed number of decimal places. A Fixed Precision Model is specified by a scale factor. The scale factor specifies the grid which numbers are rounded to. Input coordinates are mapped to fixed coordinates according to the following equations:
    • jtsPt.x = round( (inputPt.x * scale ) / scale
    • jtsPt.y = round( (inputPt.y * scale ) / scale
Coordinates are represented internally as Java double-precision values. Since Java uses the IEEE-394 floating point standard, this provides 53 bits of precision.
TopologyException.javaClass
Triangle.javaClass Represents a planar triangle, and provides methods for calculating various properties of triangles.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.