Skip to content

Commit 62e70bb

Browse files
author
mdavis
committed
added units, removed unused code
1 parent 9573163 commit 62e70bb

File tree

1 file changed

+14
-20
lines changed

1 file changed

+14
-20
lines changed

src/main/java/org/osgeo/proj4j/proj/LongLatProjection.java

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,32 @@
1616

1717
package org.osgeo.proj4j.proj;
1818

19-
import java.awt.*;
2019
import java.awt.geom.*;
2120

2221
import org.osgeo.proj4j.Projection;
22+
import org.osgeo.proj4j.units.*;
2323

2424
/**
25-
* A projection which "converts" decimal degrees to geographic.
25+
* A "projection" for geodetic coordinates in Decimal Degrees.
2626
*/
27-
public class LongLatProjection extends Projection {
28-
27+
public class LongLatProjection extends Projection
28+
{
29+
// TODO: implement projection methods (which are basically just no-ops)
30+
/*
2931
public Point2D.Double transform( Point2D.Double src, Point2D.Double dst ) {
3032
dst.x = src.x;
3133
dst.y = src.y;
3234
return dst;
3335
}
34-
35-
public Shape projectPath(Shape path, AffineTransform t, boolean filled) {
36-
if ( t != null )
37-
t.createTransformedShape( path );
38-
return path;
39-
}
40-
41-
public Shape getBoundingShape() {
42-
return null;
43-
}
44-
45-
public boolean isRectilinear() {
46-
return true;
47-
}
48-
36+
*/
37+
4938
public String toString() {
50-
return "Null";
39+
return "LongLat";
5140
}
5241

42+
public void initialize()
43+
{
44+
// units are always in Decimal Degrees
45+
unit = Units.DEGREES;
46+
}
5347
}

0 commit comments

Comments
 (0)