hi ,
I have a bit map and position from which I must display it and
the coordinates of the window in which it should be displayed.
Now how do i display it on the X device or PNG driver .
thanks
somesh
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Somesh Agarwal wrote:
I have a bit map and position from which I must display it and
the coordinates of the window in which it should be displayed.
Now how do i display it on the X device or PNG driver .
Are you looking for commands or functions?
At the command level, use d.frame then d.rast.
At the function level, either use R_reset_color() then R_raster(), or
use the D_draw_* functions.
--
Glynn Clements <glynn.clements@virgin.net>
We have about 20 map in Mapinfo format (.map) that we would like to import
in GRASS. Since GRASS cannot import (.map) maps, we converted them in
Arc/info shape files and mapInfo (.mif).
v.in.shape crashed (core dump). This is the messages :
GRASS 5.0.0pre1 > v.in.shape -o input=portneuf/PERMANENT/muni_que_region.shp
scale=20000
Extracting all records.
Creating vector network...
Processing shape 1 of 5.
Processing shape 2 of 5.
Processing shape 3 of 5.
Processing shape 4 of 5.
Processing shape 5 of 5.
Number of shapes registered is 0
Number of parts registered is 5
Number of valid records is 0 of 0
Extracting and storing area edges...
Tracking line 1.
Tracking line 2.
Tracking line 3.
Tracking line 4.
Tracking line 5.
Tracking line 6.
Tracking line 7.
Tracking line 8.
Tracking line 9.
Tracking line 10.
Tracking line 11.
Incident de segmentation (noyau vidé)
The last message is a core dump message in french (OS message)
The dig files are created but empty.
With v.in.mif no more success but no message at all and nothing done.
The program exit without doing nothing except with the -l option.
We need some clue. Do we need run some other programs before importing
those files? Or some bugs?
Our test file only contain 5 areas.
THANKS.
--
Robert Lagacé, professeur
Pavillon Comtois
Université Laval
Ste-Foy, Québec, G1K 7P4
tel : (418)-656-2131#2276
Fax : (418)-656-3723
E-mail : lagace@grr.ulaval.ca
On Sun, 24 Jun 2001, Robert [iso-8859-1] Lagacé wrote:
We have about 20 map in Mapinfo format (.map) that we would like to import
in GRASS. Since GRASS cannot import (.map) maps, we converted them in
Arc/info shape files and mapInfo (.mif).
Robert,
The polygon conversion/topology building sections of v.in.shape and
v.in.mif are still buggy, unfortunately for many of us. But, one problem
that tripped me up may also apply in your case: overlapping areas.
MapInfo permits a single table to have overlapping regions. Because MI
does not support topology this is not a problem for the program; the lines
are only graphic objects. But, the two modules cannot properly import this
mess because they have no way of identifying a line with a polygon when the
lines cross.
What I did with a mine claims map was to manually separate the one MapInfo
table into five separate tables so each table had regions that did not
overlap any other -- even slightly. I then exported them as shapefiles and
.mif files. In my case, the former worked a bit more cleanly when importing
them into GRASS.
The other consideration is to ensure that the projections and coordinate
systems are consistent between MapInfo and GRASS.
HTH,
Rich
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
+ 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard@appl-ecosys.com
Making environmentally-responsible mining happen.