Class Proj4::Point
In: lib/proj4.rb
Parent: Object

This class represents a point in either lon/lat or projected x/y coordinates.

Methods

lat   lat=   lon   lon=   new  

Attributes

x  [RW]  X coordinate or longitude
y  [RW]  Y coordinate or latitude
z  [RW]  Z coordinate (height)

Public Class methods

Create new Proj4::Point object from coordinates.

[Source]

     # File lib/proj4.rb, line 328
328:         def initialize(x, y, z=0)
329:             @x = x
330:             @y = y
331:             @z = z
332:         end

Public Instance methods

Get latitude/y coordinate.

[Source]

     # File lib/proj4.rb, line 340
340:         def lat
341:             y
342:         end

Set latitude/y coordinate.

[Source]

     # File lib/proj4.rb, line 350
350:         def lat=(lat)
351:             @y = lat
352:         end

Get longitude/x coordinate.

[Source]

     # File lib/proj4.rb, line 335
335:         def lon
336:             x
337:         end

Set longitude/x coordinate.

[Source]

     # File lib/proj4.rb, line 345
345:         def lon=(lon)
346:             @x = lon
347:         end

[Validate]