[GRASS-user] wxpython fails to open existing grc

Martin Landa landa.martin at gmail.com
Tue Mar 4 16:09:17 EST 2008


Hi,

2008/3/4, Adam Dershowitz <adershowitz at exponent.com>:
>  Is there a way to convert tcl grc files over to wx grc files?

unfortunately there is no format convector available now, it would be
useful I guess. Please report a wish ticket in Trac for that,
otherwise it will be forgotten;-) To compare grc's formats

grc created by gis.m

Raster aspect at PERMANENT
  _check 1
  opacity 1.0
  map aspect at PERMANENT
  drapemap
  brighten 0
  querytype cat
  rastquery
  rasttype
  bkcolor
  overlay 1
End

workspace file created by wxGUI

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE grc SYSTEM "grass-grc.dtd">
<grc>
    <display>
        <layer type="raster" name="aspect at PERMANENT" checked="1"
opacity="1.000000">
            <task name="d.rast">
                <parameter name="map">
                    <value>aspect at PERMANENT</value>
                </parameter>
            </task>
        </layer>
    </display>
</grc>

>  Generally, it is important in my opinion to keep backward
>  compatibility in code.  Otherwise, as the wx gui takes over, as I
>  believe is the longer term plan, then old files will no longer be
>  useable, which is not good.

yes, the format convector would make sense here. Anyway the format
definitions are completely different in this case,  no backward
compatibility.

>  Also, it seems to me that instead of a syntax errors, if the file
>  can't be interpreted as proper xml that the wx interface could display
>  an error that this is not a valid file.  That would help cut down on
>  the confusion indicated above.

This I have fixed in trunk few minutes ago:-) Good point.

http://trac.osgeo.org/grass/changeset/30469

Regards, Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *


More information about the grass-user mailing list