77
78
raise GEOSException('invalid ordinate dimension "%d"' % dim)
88
80
#### Ordinate getting and setting routines ####
89
81
def getOrdinate(self, dimension, index):
90
82
"Returns the value for the given dimension and index."
92
84
self._checkdim(dimension)
93
return cs_getordinate(self.ptr, index, dimension, byref(c_double()))
85
return capi.cs_getordinate(self.ptr, index, dimension, byref(c_double()))
95
87
def setOrdinate(self, dimension, index, value):
96
88
"Sets the value for the given dimension and index."
98
90
self._checkdim(dimension)
99
cs_setordinate(self.ptr, index, dimension, value)
91
capi.cs_setordinate(self.ptr, index, dimension, value)
102
94
"Get the X value at the index."