Changeset 12778 in osm for applications/editors/josm/plugins/wmsplugin/src/uk
- Timestamp:
- 2009-01-01T18:28:53+01:00 (17 years ago)
- Location:
- applications/editors/josm/plugins/wmsplugin/src/uk/me/jstott/jcoord
- Files:
-
- 6 edited
-
LatLng.java (modified) (10 diffs)
-
OSRef.java (modified) (8 diffs)
-
RefEll.java (modified) (5 diffs)
-
Test.java (modified) (6 diffs)
-
UTMRef.java (modified) (9 diffs)
-
Util.java (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/src/uk/me/jstott/jcoord/LatLng.java
r6775 r12778 3 3 /** 4 4 * Class to represent a latitude/longitude pair. 5 * 5 * 6 6 * (c) 2006 Jonathan Stott 7 * 7 * 8 8 * Created on 11-02-2006 9 * 9 * 10 10 * @author Jonathan Stott 11 11 * @version 1.0 … … 27 27 /** 28 28 * Create a new LatLng object to represent a latitude/longitude pair. 29 * 29 * 30 30 * @param lat 31 31 * the latitude in degrees … … 42 42 /** 43 43 * Get a String representation of this LatLng object. 44 * 44 * 45 45 * @return a String representation of this LatLng object. 46 46 * @since 1.0 … … 54 54 * Convert this latitude and longitude into an OSGB (Ordnance Survey of Great 55 55 * Britain) grid reference. 56 * 56 * 57 57 * @return the converted OSGB grid reference 58 58 * @since 1.0 … … 124 124 /** 125 125 * Convert this latitude and longitude to a UTM reference. 126 * 126 * 127 127 * @return the converted UTM reference 128 128 * @since 1.0 … … 212 212 * Convert this LatLng from the OSGB36 datum to the WGS84 datum using an 213 213 * approximate Helmert transformation. 214 * 214 * 215 215 * @since 1.0 216 216 */ … … 260 260 * Convert this LatLng from the WGS84 datum to the OSGB36 datum using an 261 261 * approximate Helmert transformation. 262 * 262 * 263 263 * @since 1.0 264 264 */ … … 310 310 * Calculate the surface distance in kilometres from the this LatLng to the 311 311 * given LatLng. 312 * 312 * 313 313 * @param ll 314 314 * @return the surface distance in km … … 334 334 /** 335 335 * Return the latitude in degrees. 336 * 336 * 337 337 * @return the latitude in degrees 338 338 * @since 1.0 … … 345 345 /** 346 346 * Return the longitude in degrees. 347 * 347 * 348 348 * @return the longitude in degrees 349 349 * @since 1.0 -
applications/editors/josm/plugins/wmsplugin/src/uk/me/jstott/jcoord/OSRef.java
r6775 r12778 3 3 /** 4 4 * Class to represent an Ordnance Survey grid reference 5 * 5 * 6 6 * (c) 2006 Jonathan Stott 7 * 7 * 8 8 * Created on 11-02-2006 9 * 9 * 10 10 * @author Jonathan Stott 11 11 * @version 1.0 … … 27 27 /** 28 28 * Create a new Ordnance Survey grid reference. 29 * 29 * 30 30 * @param easting 31 31 * the easting in metres … … 45 45 * first character must be H, N, S, O or T. The second character can be any 46 46 * uppercase character from A through Z excluding I. 47 * 47 * 48 48 * @param ref 49 49 * a String representing a six-figure Ordnance Survey grid reference … … 83 83 * Return a String representation of this OSGB grid reference showing the 84 84 * easting and northing. 85 * 85 * 86 86 * @return a String represenation of this OSGB grid reference 87 87 * @since 1.0 … … 95 95 * Return a String representation of this OSGB grid reference using the 96 96 * six-figure notation in the form XY123456 97 * 97 * 98 98 * @return a String representing this OSGB grid reference in six-figure 99 99 * notation … … 147 147 * OSGB36 datum. Note that, the LatLng object may need to be converted to the 148 148 * WGS84 datum depending on the application. 149 * 149 * 150 150 * @return a LatLng object representing this OSGB grid reference using the 151 151 * OSGB36 datum … … 225 225 /** 226 226 * Get the easting. 227 * 227 * 228 228 * @return the easting in metres 229 229 * @since 1.0 … … 236 236 /** 237 237 * Get the northing. 238 * 238 * 239 239 * @return the northing in metres 240 240 * @since 1.0 -
applications/editors/josm/plugins/wmsplugin/src/uk/me/jstott/jcoord/RefEll.java
r6775 r12778 4 4 * Class to represent a reference ellipsoid. Also provides a number of 5 5 * pre-determined reference ellipsoids as constants. 6 * 6 * 7 7 * (c) 2006 Jonathan Stott 8 * 8 * 9 9 * Created on 11-Feb-2006 10 * 10 * 11 11 * @author Jonathan Stott 12 12 * @version 1.0 … … 43 43 /** 44 44 * Create a new reference ellipsoid 45 * 45 * 46 46 * @param maj 47 47 * semi-major axis … … 59 59 /** 60 60 * Return the semi-major axis. 61 * 61 * 62 62 * @return the semi-major axis 63 63 * @since 1.0 … … 70 70 /** 71 71 * Return the semi-minor axis 72 * 72 * 73 73 * @return the semi-minor axis 74 74 * @since 1.0 … … 81 81 /** 82 82 * Return the eccentricity. 83 * 83 * 84 84 * @return the eccentricity 85 85 * @since 1.0 -
applications/editors/josm/plugins/wmsplugin/src/uk/me/jstott/jcoord/Test.java
r6775 r12778 4 4 * Class to illustrate the use of the various functions of the classes in the 5 5 * Jcoord package. 6 * 6 * 7 7 * (c) 2006 Jonathan Stott 8 * 8 * 9 9 * Created on 11-Feb-2006 10 * 10 * 11 11 * @author Jonathan Stott 12 12 * @version 1.0 … … 17 17 /** 18 18 * Main method 19 * 19 * 20 20 * @param args 21 21 * not used … … 26 26 /* 27 27 * Calculate Surface Distance between two Latitudes/Longitudes 28 * 28 * 29 29 * The distance() function takes a reference to a LatLng object as a 30 30 * parameter and calculates the surface distance between the the given … … 45 45 /* 46 46 * Convert OS Grid Reference to Latitude/Longitude 47 * 47 * 48 48 * Note that the OSGB-Latitude/Longitude conversions use the OSGB36 datum by 49 49 * default. The majority of applications use the WGS84 datum, for which the … … 76 76 /* 77 77 * Convert Latitude/Longitude to OS Grid Reference 78 * 78 * 79 79 * Note that the OSGB-Latitude/Longitude conversions use the OSGB36 datum by 80 80 * default. The majority of applications use the WGS84 datum, for which the … … 107 107 /* 108 108 * Convert Six-Figure OS Grid Reference String to an OSRef Object 109 * 109 * 110 110 * To convert a string representing a six-figure OSGB grid reference: 111 111 */ -
applications/editors/josm/plugins/wmsplugin/src/uk/me/jstott/jcoord/UTMRef.java
r6775 r12778 3 3 /** 4 4 * Class to represent a UTM reference 5 * 5 * 6 6 * (c) 2006 Jonathan Stott 7 * 7 * 8 8 * Created on 11-Feb-2006 9 * 9 * 10 10 * @author Jonathan Stott 11 11 * @version 1.0 … … 37 37 /** 38 38 * Create a new UTM reference object. 39 * 39 * 40 40 * @param easting 41 41 * the easting … … 58 58 /** 59 59 * Convert this UTM reference to a latitude and longitude. 60 * 60 * 61 61 * @return the converted latitude and longitude 62 62 * @since 1.0 … … 130 130 /** 131 131 * Work out the UTM latitude zone from the latitude. 132 * 132 * 133 133 * @param latitude 134 134 * the latitude to find the UTM latitude zone for … … 184 184 /** 185 185 * Convert this UTM reference to a String representation for printing out. 186 * 186 * 187 187 * @return a String representation of this UTM reference 188 188 * @since 1.0 … … 196 196 /** 197 197 * Get the easting. 198 * 198 * 199 199 * @return the easting 200 200 * @since 1.0 … … 207 207 /** 208 208 * Get the northing. 209 * 209 * 210 210 * @return the northing 211 211 * @since 1.0 … … 218 218 /** 219 219 * Get the latitude zone character. 220 * 220 * 221 221 * @return the latitude zone character 222 222 * @since 1.0 … … 229 229 /** 230 230 * Get the longitude zone number. 231 * 231 * 232 232 * @return the longitude zone number 233 233 * @since 1.0 -
applications/editors/josm/plugins/wmsplugin/src/uk/me/jstott/jcoord/Util.java
r6775 r12778 3 3 /** 4 4 * Some utility functions used by classes in the uk.me.jstott.jcoord package. 5 * 5 * 6 6 * (c) 2006 Jonathan Stott 7 * 7 * 8 8 * Created on 11-Feb-2006 9 * 9 * 10 10 * @author Jonathan Stott 11 11 * @version 1.0 … … 16 16 /** 17 17 * Calculate sin^2(x). 18 * 18 * 19 19 * @param x 20 20 * x … … 29 29 /** 30 30 * Calculate cos^2(x). 31 * 31 * 32 32 * @param x 33 33 * x … … 42 42 /** 43 43 * Calculate tan^2(x). 44 * 44 * 45 45 * @param x 46 46 * x … … 55 55 /** 56 56 * Calculate sec(x). 57 * 57 * 58 58 * @param x 59 59 * x
Note:
See TracChangeset
for help on using the changeset viewer.
