[GRASS-SVN] r41774 - grass-addons/ossim_grass/v.planet
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Apr 10 07:36:21 EDT 2010
Author: epifanio
Date: 2010-04-10 07:36:20 -0400 (Sat, 10 Apr 2010)
New Revision: 41774
Modified:
grass-addons/ossim_grass/v.planet/v.planet.py
Log:
fixed somew bugs, now should works as aspected :-)
Modified: grass-addons/ossim_grass/v.planet/v.planet.py
===================================================================
--- grass-addons/ossim_grass/v.planet/v.planet.py 2010-04-10 11:31:07 UTC (rev 41773)
+++ grass-addons/ossim_grass/v.planet/v.planet.py 2010-04-10 11:36:20 UTC (rev 41774)
@@ -98,6 +98,7 @@
#% key_desc: thickness
#% description: thickness
#% required : no
+#% answer: 1
#%end
import sys
@@ -143,7 +144,8 @@
output = os.path.join(vrtdir, vrtfilename)
if not os.path.exists(output):
ogrvrt(mapfile,output)
- makestile(output, options['brush'], options['pen'], options['size'], options['fill'], options['thickness'])
+ print 'try to make omd'
+ makestile(output, options['brush'], options['pen'], options['size'], options['fill'], options['thickness'])
proj_info = projinfo()
unit = proj_info['units']
if unit.lower() == 'meters':
@@ -280,13 +282,15 @@
return center
def makeoverview(input):
- os.system("ossim-img2rr %s" % input)
+ print 'vector object should alredy have internal preview, make overview skipped'
+ #os.system("ossim-img2rr %s" % input)
def makestile(outfile, brush, pen, size, fill, thickness):
brush = brush.split(',')
pen = pen.split(',')
size = size.split(',')
+ print brush, pen, size
outfile = outfile.replace('.vrt','')
outfile = outfile+'.omd'
omd = '// vector file rendering options\n'
More information about the grass-commit
mailing list