July, 2002

Map Projections - Part 1 -2

Lets get started by defining an interface that will be used by different types of map projections. Most of the methods are simple setters and getters for the variables needed to compute projections, such as the center coordinate, the radius, and screen coordinate of the center point of the projection. The interface defines setters and getters for variables needed to draw an overlay showing lines of latitude and longitude. Methods for converting a screen point to a coordinate and coordinate to a screen point are defined as well.

Map Projections - Part 1 - 3

Shown below is code that provides an abstract skeletal implementation of the ProjectionInterface. The purpose of doing this is to implement methods that are common to most of the projections and thus save some work. At the same time the constraints that abstract classes impose is avoided as the developer has the choice of whether to implement the interface completely or to simply extend the abstract class. Most of the methods are simply setters and getters common to most projection types.

Map Projections - Part I

Developing Map Projections with Java. In this first article of a multi-part series, an interface for computing different map projections is presented as well as a skeletal implementation of the interface.