I’m working with data in a rotated pole projection. I’m able to convert any (lon,lat) pair from its “real” coordinates to its rotated pole coordinates by piping it through the following proj command:
In order to maintain the integrity of the data, I’d like to keep working in its native coordinates. Is there a way to take an arbitrary vector from GRASS and apply an arbitrary transformation to each element? v.edit has a move feature, but this is not what I want.
I think I can access all points and lines and boundaries with “v.out.ascii Z layer=-1 -c format=standard”. But if I go this route I’ll need to parse apart the output, pipe only the coordinates through the invproj command, and then re-assemble. I hope there is an easier way.
I'm working with data in a rotated pole projection. I'm able to convert
any
(lon,lat) pair from its "real" coordinates to its rotated pole coordinates
by piping it through the following proj command:
In order to maintain the integrity of the data, I'd like to keep working
in
its native coordinates. Is there a way to take an arbitrary vector from
GRASS and apply an arbitrary transformation to each element? v.edit has a
move feature, but this is not what I want.
I think I can access all points and lines and boundaries with "v.out.ascii
Z layer=-1 -c format=standard". But if I go this route I'll need to parse
apart the output, pipe only the coordinates through the invproj command,
and then re-assemble. I hope there is an easier way.
On Tue, Mar 13, 2018 at 12:21 PM, Helmut Kudrnovsky <hellik@web.de> wrote:
Ken Mankoff wrote
> Is there a way to take an arbitrary vector from
> GRASS and apply an arbitrary transformation to each element? v.edit has a
> move feature, but this is not what I want.
>
On Tue, Mar 13, 2018 at 1:05 PM, Ken Mankoff <mankoff@gmail.com> wrote:
On Tue, Mar 13, 2018 at 12:21 PM, Helmut Kudrnovsky <hellik@web.de> wrote:
Ken Mankoff wrote
> Is there a way to take an arbitrary vector from
> GRASS and apply an arbitrary transformation to each element? v.edit has
a
> move feature, but this is not what I want.
>
Yes that would do it just fine. Unfortunately I'm not sure how to get the
transformation matrix that invproj uses. I'll try to figure this out...
Actually this does not work because I'm in EPSG:4326 (lon,lat) location and
there are scaling issues. I think I need to access proj directly for all
vertices...
On Tue, Mar 13, 2018 at 3:06 PM, Ken Mankoff <mankoff@gmail.com> wrote:
On Tue, Mar 13, 2018 at 1:05 PM, Ken Mankoff <mankoff@gmail.com> wrote:
Actually this does not work because I’m in EPSG:4326 (lon,lat) location and there are scaling issues. I think I need to access proj directly for all vertices…
-k.
On Tue, Mar 13, 2018 at 12:21 PM, Helmut Kudrnovsky <hellik@web.de> wrote:
Ken Mankoff wrote
Is there a way to take an arbitrary vector from
GRASS and apply an arbitrary transformation to each element? v.edit has a
move feature, but this is not what I want.