NetTopologySuite
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Package NetTopologySuite.Samples.Geometries

Classes

class  BasicExample
 Shows basic ways of creating and operating on geometries More...
 
class  ConstructionExample
 Examples of constructing Geometries programmatically. The Best Practice moral here is: Use the GeometryFactory to construct Geometries whenever possible. This has several advantages: Simplifies your code. Allows you to take advantage of convenience methods provided by GeometryFactory. Insulates your code from changes in the signature of JTS constructors More...
 
class  CreateOrientationDistanceMesh
 
class  ExtendedCoordinate
 
class  ExtendedCoordinateExample
 
class  ExtendedCoordinateSequence
 Demonstrates how to implement a CoordinateSequence for a new kind of coordinate (an ExtendedCoordinate} in this example). In this implementation, Coordinates returned by ToArray and #get are live – parties that change them are actually changing the ExtendedCoordinateSequence's underlying data. More...
 
class  ExtendedCoordinateSequenceFactory
 Creates ExtendedCoordinateSequenceFactory internally represented as an array of ExtendedCoordinates. More...
 
class  PrecisionModelExample
 An example showing the results of using different precision models in computations involving geometric constructions. A simple intersection computation is carried out in three different precision models (Floating, FloatingSingle and Fixed with 0 decimal places). The input is the same in all cases (since it is precise in all three models), The output shows the effects of rounding in the single-precision and fixed-precision models. More...
 
class  SimpleMethodsExample
 An example showing a simple use of JTS methods for: WKT reading intersection relate WKT output

The expected output from this program is:

A = POLYGON ((40 100, 40 20, 120 20, 120 100, 40 100)) B = LINESTRING (20 80, 80 60, 100 140) A intersection B = LINESTRING (40 73.33333333333334, 80 60, 90 100)

A relate C = 1F20F1102

More...