File tree Expand file tree Collapse file tree 1 file changed +14
-20
lines changed
src/main/java/org/osgeo/proj4j/proj Expand file tree Collapse file tree 1 file changed +14
-20
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package org .osgeo .proj4j .proj ;
18
18
19
- import java .awt .*;
20
19
import java .awt .geom .*;
21
20
22
21
import org .osgeo .proj4j .Projection ;
22
+ import org .osgeo .proj4j .units .*;
23
23
24
24
/**
25
- * A projection which "converts" decimal degrees to geographic .
25
+ * A " projection" for geodetic coordinates in Decimal Degrees .
26
26
*/
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
+ /*
29
31
public Point2D.Double transform( Point2D.Double src, Point2D.Double dst ) {
30
32
dst.x = src.x;
31
33
dst.y = src.y;
32
34
return dst;
33
35
}
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
+
49
38
public String toString () {
50
- return "Null " ;
39
+ return "LongLat " ;
51
40
}
52
41
42
+ public void initialize ()
43
+ {
44
+ // units are always in Decimal Degrees
45
+ unit = Units .DEGREES ;
46
+ }
53
47
}
You can’t perform that action at this time.
0 commit comments