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,
--
Jérôme Cuinet
Association GeoRezo.net
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,
On the contrary !
That makes no sense is to perform always the same association between map coordinate system and screen coordinate system. In prove, we have a scale but no other simple transformation.
I understand that practice, but as soon as you use the map on the field, you will warp the map. And it is the context, a aircraft on the sky. The map window must display a map, not a partial map. And I want a map wholly usable, for example I keep a coordinates query with mouse.
Wrapping the map is a common pilot pratice. Grass is not fixed. My needs are especially viewer needs.
Jérôme
----- Original Message ----- From: "Vincent Bain" <bain@toraval.fr>
To: "Jérôme - GeoRezo.net" <jerome@georezo.net>
Cc: <grass-user@lists.osgeo.org>
Sent: Wednesday, April 15, 2009 7:28 PM
Subject: 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,
On Wed, Apr 15, 2009 at 7:28 PM, Vincent Bain <bain@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
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" <neteler@osgeo.org>
To: "Vincent Bain" <bain@toraval.fr>
Cc: "Jérôme - GeoRezo.net" <jerome@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 <bain@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
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 <glynn@gclements.plus.com>