Understand shapefiles in different projections (notably OSGB)
[potlatch2.git] / com / gradoservice / proj4as / ProjPoint.as
1 package com.gradoservice.proj4as\r
2 {\r
3         public class ProjPoint\r
4         {\r
5                 public var x:Number;\r
6                 public var y:Number;\r
7                 public var z:Number;\r
8                 \r
9                 public function ProjPoint(x:Number,y:Number,z:Number)\r
10                 {\r
11                         this.x = x;\r
12                         this.y = y;\r
13                         this.z = z;                                             \r
14                 }\r
15 \r
16         public function clone():ProjPoint \r
17         {\r
18       return new ProjPoint(this.x, this.y, this.z);\r
19     }\r
20 \r
21     /**\r
22      * APIMethod: toString\r
23      * Return a readable string version of the point\r
24      *\r
25      * Return:\r
26      * {String} String representation of Proj4js.Point object. \r
27      *           (ex. <i>"x=5,y=42"</i>)\r
28      */\r
29     public function toString():String \r
30     {\r
31         return ("x=" + this.x + ",y=" + this.y);\r
32     }\r
33 \r
34     /** \r
35      * APIMethod: toShortString\r
36      * Return a short string version of the point.\r
37      *\r
38      * Return:\r
39      * {String} Shortened String representation of Proj4js.Point object. \r
40      *         (ex. <i>"5, 42"</i>)\r
41      */\r
42     public function toShortString ():String \r
43     {\r
44         return (this.x + ", " + this.y);\r
45     }\r
46 \r
47 \r
48 \r
49         }\r
50 }