Changes between Version 3 and Version 4 of GEOSGeometry
- Timestamp:
- Nov 1, 2007, 9:13:59 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GEOSGeometry
v3 v4 93 93 === !MultiPoint === 94 94 95 {{{ 96 #!python 97 >>> from django.contrib.gis.geos import Point 98 >>> from django.contrib.gis.geos import MultiPoint 99 >>> p1 = Point((0,0)) 100 >>> p2 = Point((1,2)) 101 >>> mp = MultiPoint(p1, p2) 102 >>> mp 103 <MultiPoint object> 104 >>> mp[0].wkt 105 'POINT (0.0000000000000000 0.0000000000000000)' 106 >>> len(mp) 107 2 108 >>> [ p.wkt for p in mp ] 109 ['POINT (0.0000000000000000 0.0000000000000000)', 'POINT (1.0000000000000000 2.0000000000000000)'] 110 >>> mp.ring 111 False 112 }}} 113 95 114 === !MultiLineString === 96 115