Hallo,
On Tue, May 23, 2006 at 02:39:44PM +0200, Moritz Lennert wrote:
Jachym Cepicky wrote:
>Hallo,
>my fault. Bugfix release can be found at
>http://les-ejk.cz/programs/grass/gpsmap-0.1.1.tgz
Now, I can save and print, so basic functionality seems to work !
Some more remarks:
- would be nice to have a "save as..." to be able to change an existing
file and save it under another name
I would say, this should be hidden in some menu
- when I click on 'new' to create a new file, 'save' does not allow me
to chose a new name, but just saves under the previously used name.
aha, thanks
- the save dialog says "open" on the button, this should probably be "save"
hmm, need to look to pytgtk documentation
- When I use vlegend, without filling in the "where" field and then
click on refresh, I get:
Traceback (most recent call last):
File "./gpsmap.py", line 270, in on_refreshButton_clicked
self.draw(None, None)
File "./gpsmap.py", line 450, in draw
(x,y) = string.split(where)
ValueError: unpack list of wrong size
- Similar with a text:
Traceback (most recent call last):
File "./gpsmap.py", line 270, in on_refreshButton_clicked
self.draw(None, None)
File "./gpsmap.py", line 416, in draw
x,y = self.drawingmap.region2pixel(x,y)
File "/home/jachym/prog/cvs/gpsmap/Modules/drawingMap.py", line 207,
in region2pixel
ValueError: empty string for float()
mandatory inputs should be controlled and event. trow some error in some form
- However, refresh in any case doesn't do anything. What is it supposed
to do ? When I look at your screenshot, you seem to have placeholders of
the different elements visible. I only see this here, and it doesn't
change, whatever I do:
http://moritz.homelinux.org/grass/gpsmap.png
yes, not everything has been implemented yet - actually only the "text"
instruction should be drawn in your psmapfile (except of map region).
I do not know, how to display vectors or rasters in other form, than the
map region.
Could you send me your psmap file and your region settings please? The
region is also drawed false at your image
thanks
jachym
P.S. Wow! It speaks french too!
Don't have time for more at the moment, but I hope this will already be
useful.
Moritz
>
>thank you for help!
>
>jachym
>
>
>On Fri, May 19, 2006 at 12:44:42AM +0200, Moritz Lennert wrote:
>>Dear Jachym,
>>
>>Jachym Cepicky wrote:
>>>GRASS developers and users,
>>>a month ago, when I was learing python, I tryed to write small
>>>application, which should be able to produce configuration file for
>>>ps.map. I called it G-ps.map.
>>Great initiative !
>>
>>
>>>Are there some voluteers, who would like to help with the development?
>>>Lot's of work has to be done. I'm working on some other project now, so
>>>if somebody would help, it would be good.
>>At the moment I really have no time, but I did try to test your program.
>>However, I don't seem to get it to work
>>
>>When I try to save the file, I get:
>>
>>Traceback (most recent call last):
>> File "SRC/GRASS/gpsmap-0.1/gpsmap.py", line 224, in
>> on_buttonSave_clicked
>> self.on_printMapfile_clicked(self,output=self.psmapfile)
>> File "SRC/GRASS/gpsmap-0.1/gpsmap.py", line 135, in
>>on_printMapfile_clicked
>> print """
>>TypeError: float argument required
>>
>>When I click on the print button, I get:
>>
>>Traceback (most recent call last):
>> File "SRC/GRASS/gpsmap-0.1/gpsmap.py", line 155, in
>>on_printMapfile_clicked
>> instructionKeys, instructionVals =\
>>AttributeError: InstructionsView instance has no attribute
>>'get_instruction'
>>
>>And with the refresh button, I get this:
>>
>>Traceback (most recent call last):
>> File "SRC/GRASS/gpsmap-0.1/gpsmap.py", line 270, in
>>on_refreshButton_clicked
>> self.draw(None, None)
>> File "SRC/GRASS/gpsmap-0.1/gpsmap.py", line 466, in draw
>> x,y = self.drawingmap.region2pixel(string.atof(x),\
>> File "/usr/lib/python2.3/string.py", line 205, in atof
>> return _float(s)
>>ValueError: invalid literal for float(): x
>>
>>For your information, I use Debian, with the following packages:
>>
>>python 2.3.5
>>python-glade2 2.8.2
>>python-gtk 2.8.2
>>
>>
>>and CVS-tree GRASS.
>>
>>Moritz
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>grass-dev mailing list
>grass-dev@grass.itc.it
>http://grass.itc.it/mailman/listinfo/grass-dev
--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507