source: TI02-CSML/trunk/services/3rdParty/GeoTypes-0.6.0/GeoTypes/_OGGeometry.py @ 2194

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI02-CSML/trunk/services/3rdParty/GeoTypes-0.6.0/GeoTypes/_OGGeometry.py@2194
Revision 2194, 754 bytes checked in by lawrence, 13 years ago (diff)

Adding various specs and 3rd party code of interest for the CSML
services development.

Line 
1
2################################################################################
3# Copyright (c) QinetiQ Plc 2003
4#
5# Licensed under the LGPL. For full license details see the LICENSE file.
6################################################################################
7
8class OGGeometry:
9
10    default_srid = 128
11   
12    def __init__(self, srid):
13        if srid == None:
14            self._srid = OGGeometry.default_srid
15        else:
16            self._srid = srid
17       
18    def SRID(self):
19        return self._srid
20
21    def setParent(self,geometry):
22        self._parent = geometry
23
24    def getParent(self):
25        return self._parent
26
27    def __str__(self):           
28        return "GeometryFromText('%s',%d)" % (self._og_str(),self.SRID())
Note: See TracBrowser for help on using the repository browser.