[GRASS-dev] [GRASS GIS] #3262: v.external.out: SRID lost when not exactly defined

GRASS GIS trac at osgeo.org
Tue Jan 17 07:55:28 PST 2017


#3262: v.external.out: SRID lost when not exactly defined
-------------------------------------+-------------------------
 Reporter:  martinl                  |      Owner:  grass-dev@…
     Type:  defect                   |     Status:  new
 Priority:  normal                   |  Milestone:  7.2.1
Component:  Vector                   |    Version:  svn-trunk
 Keywords:  v.external.out, postgis  |        CPU:  Unspecified
 Platform:  Unspecified              |
-------------------------------------+-------------------------
 We assume that we have location with EPSG defined:

 {{{
 g.proj -p
 ...
 -PROJ_EPSG-------------------------------------------------
 epsg       : 5514
 ...
 }}}

 We define external format (PostGIS in our case):

 {{{
 v.external.out output="PG:dbname=grassdb" format=PostgreSQL
 }}}

 and run some module

 {{{
 v.random p1 n=1000 -b
 }}}

 Check result:

 {{{
 psql grassdb -c "select f_table_name, srid from geometry_columns"
  f_table_name | srid
 --------------+------
  p1           |    0
 }}}

 SRID information is lost.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3262>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list