Professional Documents
Culture Documents
Directions: An
for the company. JTS is used by popular
geospatial software written in Java, and
Introduction to
is the geometry library used by the
open source desktop GIS OpenJUMP.
Page 1 of 10 http://www.osgeo.org/journal
OSGeo Journal Volume 9 (2010 Annual Report) January 2012
angles and directions when moving coordinate systems. The angles and
data between 2D grid (also known as directions code has only two (2) key
2D Cartesian or rectangular coordinate classes used to implement this design.
systems) and polar coordinate systems. The BasicSurveyorsAngle class
represents angular measurements in a
polar coordinate system, and the
Here is one example: Optical BasicSurveyorsDirection class
instruments used in terrestrial represents direction measurements in a
surveying employ polar coordinate polar coordinate system. Both classes
systems to collect their measurements. provide basic implementations of
In a polar coordinate system points are corresponding Java interfaces, which
located in relation to the instrument allow the library to support alternate
point. This involves two measurements. implementations of the interfaces if
The first is the measurement of the desired.
angle between the instrument point, a
backsight point and the point being The Basic
located (foresight point). The second is Surveyors Angle Class
the distance between the instrument
point and the point being located. The BasicSurveyorsAngle is essentially
Software is then used to transform the a value class. It represents an angle
collected measurements in to point measurement by storing the value of
coordinates on the project grid the angle in degrees, minutes, and
coordinate system. seconds. The degrees value, minutes
value, and seconds value are passed in
Here is another example: Descriptions and out of the class as ints. The
for land parcel boundaries often use fractional seconds value is passed in
bearings and distances to describe the and out of the class as a double. As an
parcel geometry. It is often useful to alternative, you can wrap these values
convert this bearing and distance in a DegreesMinutesSecondsValue
information into 2D vector geometry in object for passage in and out of the
a 2D grid coordinate system. BasicSurveyorsAngle methods.
The angles and directions code in JTS
Warped was designed to make it easier There are four (4) ways to create a
to perform the transformations between BasicSurveyorsAngle class. The default,
polar coordinate systems and 2D grid no-argument constructor will create an
Page 3 of 10 http://www.osgeo.org/journal
OSGeo Journal Volume 9 (2010 Annual Report) January 2012
Page 3 of 10 http://www.osgeo.org/journal
OSGeo Journal Volume 9 (2010 Annual Report) January 2012
Page 3 of 10 http://www.osgeo.org/journal
OSGeo Journal Volume 9 (2010 Annual Report) January 2012
Page 3 of 10 http://www.osgeo.org/journal
OSGeo Journal Volume 9 (2010 Annual Report) January 2012
Code Listing #1
Code Listing #3
Code Listing #3
Page 3 of 10 http://www.osgeo.org/journal
OSGeo Journal Volume 9 (2010 Annual Report) January 2012
Page 3 of 10 http://www.osgeo.org/journal