Re: [GRASS-user] Rotate a map display
Thanks for your responses, I realize that I don't need a GIS such as Grass which is like other GIS a system intended for geographic database users, not for map users. I need a map server, and so I think that MapServer is a better solution for my needs - Original Message - From: Hamish hamis...@yahoo.com To: Jérôme - GeoRezo.net jer...@georezo.net; Vincent Bain b...@toraval.fr Cc: grass-user@lists.osgeo.org Sent: Thursday, April 16, 2009 9:39 AM Subject: Re: [GRASS-user] Rotate a map display Vincent wrote: If you need to warp a map for a strict display purpose, IMHO it's not to be performed from within grass given that this operation makes no sense geographically. I agree, Don't know what the context is, but if you just have to rotate an image output of a map maybe you'd better look towards image manipulation tools (e.g. imagemagick and the -rotate option, which can easily be integrated in a script process). pnmrotate is another that I've used with d.out.gpsdrive and GpsDrive's gdal_slice.sh script, together with 'g.region -n' to get the convergence angle. (angle between local projection north vs true north) render map with PNG driver in GRASS, read course-over-ground from Gpsd (gpsd.berlios.de) in watcher mode, pnmrotate and pnmcrop, and then use an image viewer which will update the display when the image changes. (see grass 7 discussions about that). Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Rotate a map display
Vincent wrote: If you need to warp a map for a strict display purpose, IMHO it's not to be performed from within grass given that this operation makes no sense geographically. I agree, Don't know what the context is, but if you just have to rotate an image output of a map maybe you'd better look towards image manipulation tools (e.g. imagemagick and the -rotate option, which can easily be integrated in a script process). pnmrotate is another that I've used with d.out.gpsdrive and GpsDrive's gdal_slice.sh script, together with 'g.region -n' to get the convergence angle. (angle between local projection north vs true north) render map with PNG driver in GRASS, read course-over-ground from Gpsd (gpsd.berlios.de) in watcher mode, pnmrotate and pnmcrop, and then use an image viewer which will update the display when the image changes. (see grass 7 discussions about that). Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Rotate a map display
Jérôme, If you need to warp a map for a strict display purpose, IMHO it's not to be performed from within grass given that this operation makes no sense geographically. Don't know what the context is, but if you just have to rotate an image output of a map maybe you'd better look towards image manipulation tools (e.g. imagemagick and the -rotate option, which can easily be integrated in a script process). Let us know a bit more about your needs ! Vincent Le mercredi 15 avril 2009 à 10:22 +0200, Jérôme - GeoRezo.net a écrit : Hello, I want to make a map which follow a mobile. So I will have a set of raster maps and a polyline which represent a the path. One main feature is that map could follow the mobile's route. The y-axis could be the mobile'direction. My question is how can I do this. Best regards, ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Rotate a map display
Markus, I have seen the cairo.Matrix.rotate() documentation, and it is juste a constructor of matrix, not very useful ;) Also, if I quit the GIS context, I must produce at least a twice larger image, and cut the border in oder to have a wholly image. As I wrote in my former mail, I can choose an other software. I have seen MapServer which is able to rotate my map view. Finally, I think MapServer is better for my needs. Jérôme - Original Message - From: Markus Neteler nete...@osgeo.org To: Vincent Bain b...@toraval.fr Cc: Jérôme - GeoRezo.net jer...@georezo.net; GRASS user list grass-user@lists.osgeo.org Sent: Wednesday, April 15, 2009 9:09 PM Subject: Re: [GRASS-user] Rotate a map display On Wed, Apr 15, 2009 at 7:28 PM, Vincent Bain b...@toraval.fr wrote: Jérôme, If you need to warp a map for a strict display purpose, IMHO it's not to be performed from within grass given that this operation makes no sense geographically. Don't know what the context is, but if you just have to rotate an image output of a map maybe you'd better look towards image manipulation tools (e.g. imagemagick and the -rotate option, which can easily be integrated in a script process). Perhaps you can use the CAIRO driver. In CAIRO, I see cairo.Matrix.rotate() http://cairographics.org/documentation/cairomm/reference/classCairo_1_1Matrix.html Just an untested idea, I am not familiar with the CAIRO driver in GRASS. Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Rotate a map display
Markus Neteler wrote: If you need to warp a map for a strict display purpose, IMHO it's not to be performed from within grass given that this operation makes no sense geographically. Don't know what the context is, but if you just have to rotate an image output of a map maybe you'd better look towards image manipulation tools (e.g. imagemagick and the -rotate option, which can easily be integrated in a script process). Perhaps you can use the CAIRO driver. In CAIRO, I see cairo.Matrix.rotate() http://cairographics.org/documentation/cairomm/reference/classCairo_1_1Matrix.html Just an untested idea, I am not familiar with the CAIRO driver in GRASS. Even in 7.0, a lot of d.* commands are still concerning themselves with screen coordinates, the display frame, and the u_to_d transformation (which is offset+scale with no rotation). -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user