KDE 4.9 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

GeoDataPoint Class Reference

from PyKDE4.marble import *

Inherits: Marble.GeoDataCoordinates,Marble.GeoDataGeometry → Marble.GeoDataObject → Marble.GeoNode
Namespace: Marble

Detailed Description

A Geometry object representing a 3d point

GeoDataPoint is the GeoDataGeometry class representing a single three dimensional point. It reflects the Point tag of KML spec and can be contained in objects holding GeoDataGeometry objects. Nevertheless GeoDataPoint shouldn't be used if you just want to store 3d coordinates of a point that doesn't need to be inherited from GeoDataGeometry In that case use GeoDataCoordinates instead which has nearly the same features and is much more light weight. Please consider this especially if you expect to have a high amount of points e.g. for line strings, linear rings and polygons.

See also:
GeoDataCoordinates
See also:
GeoDataGeometry


Methods

 __init__ (self, Marble.GeoDataPoint other)
 __init__ (self, Marble.GeoDataGeometry other)
 __init__ (self)
 __init__ (self, Marble.GeoDataCoordinates other)
 __init__ (self, float lon, float lat, float alt=0, Marble.GeoDataCoordinates.Unit _unit=Marble.GeoDataCoordinates.Radian)
Marble.GeoDataCoordinates coordinates (self)
 detach (self)
QString nodeType (self)
 pack (self, QDataStream stream)
 setCoordinates (self, Marble.GeoDataCoordinates coordinates)
 unpack (self, QDataStream stream)

Method Documentation

__init__ (  self,
Marble.GeoDataPoint  other
)
__init__ (  self,
Marble.GeoDataGeometry  other
)
__init__ (   self )
__init__ (  self,
Marble.GeoDataCoordinates  other
)
__init__ (  self,
float  lon,
float  lat,
float  alt=0,
Marble.GeoDataCoordinates.Unit  _unit=Marble.GeoDataCoordinates.Radian
)

create a geopoint from longitude and latitude

Parameters:
_lon  longitude
_lat  latitude
alt  altitude (default: 0)
_unit  units that lon and lat get measured in (default for Radian: north pole at pi/2, southpole at -pi/2)

Marble.GeoDataCoordinates coordinates (   self )
detach (   self )
QString nodeType (   self )
pack (  self,
QDataStream  stream
)
setCoordinates (  self,
Marble.GeoDataCoordinates  coordinates
)
unpack (  self,
QDataStream  stream
)
  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • polkitqt
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal