Changeset 1378
- Timestamp:
- 09/03/08 14:01:29 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pleiades.workspace/trunk/pleiades/workspace/browser/kml.py
r1377 r1378 36 36 lid = locations.invokeFactory( 37 37 'Location', 38 geometryType=where.type, 39 spatialCoordinates='%f %f' % (where.coordinates[1], where.coordinates[0]) 38 geometry='%s: %s' % (where.type, where.coordinates), 40 39 ) 41 40 nid = names.invokeFactory( pleiades.workspace/trunk/pleiades/workspace/tests/kml-import.txt
r1374 r1378 72 72 >>> len(list(ws['locations'].queryCatalog())) 73 73 11 74 75 Verify location 76 77 >>> loc = ws['locations'].queryCatalog()[0].getObject() 78 >>> loc.getGeometry() 79 'Point: (21.9725, 32.896299999999997, 0.0)'
