[GRASS-user] db.out.ogr issues
Daniel Victoria
daniel.victoria at gmail.com
Thu Aug 9 17:46:16 PDT 2018
The lat/long coordinates you get from DB.out.ogr probably comes from your
vector attributes, which contains the old coordinates.
When you project the data in Grass, the coordinates in the vector geometry
are updated but the attribute table is not changed. Try using v.to.db to
add the coordinates of each point to the attribute table and then export it
using DB.out.ogr.
Cheers
Daniel
On Thu, Aug 9, 2018, 19:54 Rich Shepard <rshepard at appl-ecosys.com> wrote:
> I have precipitation data for all stations within a county. The
> geographic
> coordinates of the source are lon/lat. These were imported to a lon/lat
> directory using v.in.ogr then reprojected (v.proj) to the standard state
> projection (EPSG 2838).
>
> I want to run spatial analyses on these data in R using the state
> projection coordinates, so I used db.out.ogr and was surprised to see the
> output is still in lon/lat. The project directory's PROJ_INFO led me to
> believe the attribute database values should be converted, but they're not.
>
> Do I run proj.4 on the command line to transform the lon/lat to EPSG
> 2838
> or can I do this within grass7.x?
>
> Rich
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180809/d39998b6/attachment.html>
More information about the grass-user
mailing list