Last change
on this file since 4153 was 3872, checked in by stoecker, 13 years ago |
see #5532 - add missing addProjectsions() function nobody seems able to add when asked to do so
|
-
Property svn:eol-style
set to
native
|
File size:
1.3 KB
|
Line | |
---|
1 | // License: GPL. Copyright 2007 by Immanuel Scholz and others
|
---|
2 | package org.openstreetmap.josm.data.projection;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.data.Bounds;
|
---|
5 | import org.openstreetmap.josm.data.coor.EastNorth;
|
---|
6 | import org.openstreetmap.josm.data.coor.LatLon;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * Classes implementing this are able to convert lat/lon values to
|
---|
10 | * planar screen coordinates.
|
---|
11 | *
|
---|
12 | * @author imi
|
---|
13 | */
|
---|
14 | public interface Projection {
|
---|
15 | /**
|
---|
16 | * Returns the default zoom scale in pixel per degree ({@see #NavigatableComponent#scale}))
|
---|
17 | */
|
---|
18 | double getDefaultZoomInPPD();
|
---|
19 |
|
---|
20 | /**
|
---|
21 | * Convert from lat/lon to northing/easting.
|
---|
22 | *
|
---|
23 | * @param p The geo point to convert. x/y members of the point are filled.
|
---|
24 | */
|
---|
25 | EastNorth latlon2eastNorth(LatLon p);
|
---|
26 |
|
---|
27 | /**
|
---|
28 | * Convert from norting/easting to lat/lon.
|
---|
29 | *
|
---|
30 | * @param p The geo point to convert. lat/lon members of the point are filled.
|
---|
31 | */
|
---|
32 | LatLon eastNorth2latlon(EastNorth p);
|
---|
33 |
|
---|
34 | /**
|
---|
35 | * Describe the projection converter in one or two words.
|
---|
36 | */
|
---|
37 | String toString();
|
---|
38 |
|
---|
39 | /**
|
---|
40 | * Return projection code.
|
---|
41 | */
|
---|
42 | String toCode();
|
---|
43 |
|
---|
44 | /**
|
---|
45 | * Get a filename compatible string (for the cache directory)
|
---|
46 | */
|
---|
47 | String getCacheDirectoryName();
|
---|
48 |
|
---|
49 | /**
|
---|
50 | * Get the bounds of the world
|
---|
51 | */
|
---|
52 | Bounds getWorldBoundsLatLon();
|
---|
53 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.