[Liblas-commits] r1063 - trunk/test/data
liblas-commits at liblas.org
liblas-commits at liblas.org
Fri Feb 20 22:06:29 EST 2009
Author: hobu
Date: Fri Feb 20 22:06:28 2009
New Revision: 1063
URL: http://liblas.org/changeset/1063
Log:
use a srs object now that header.proj4 is gone
Modified:
trunk/test/data/make_data.py
Modified: trunk/test/data/make_data.py
==============================================================================
--- trunk/test/data/make_data.py (original)
+++ trunk/test/data/make_data.py Fri Feb 20 22:06:28 2009
@@ -4,6 +4,8 @@
from liblas import header
from liblas import point
from liblas import color
+from liblas import srs
+
import datetime
p = point.Point()
@@ -24,7 +26,8 @@
p.classification = 2
p.return_number = 2
-
+s = srs.SRS()
+s.proj4 = '+proj=utm +zone=15 +ellps=NAD83 +datum=NAD83 +units=m +no_defs '
def write_file(version, format):
h = header.Header()
h.date = datetime.datetime.now()
@@ -34,7 +37,7 @@
h.min = [p.x, p.y, p.z]
h.max = [p.x, p.y, p.z]
h.point_return_count = [0L, 1L, 0L, 0L, 0L, 0L, 0L, 0L]
- h.proj4 = '+proj=utm +zone=15 +ellps=NAD83 +datum=NAD83 +units=m +no_defs '
+ h.srs = s
h.date = p.time
f = file.File('1.%d_%d.las'%(version,format), mode='w', header=h)
More information about the Liblas-commits
mailing list