[GRASS-dev] Re: [GRASS GIS] #1470: v.out.ascii with sql where option exports only centroids and not areas

GRASS GIS trac at osgeo.org
Tue Oct 18 08:19:42 EDT 2011


#1470: v.out.ascii with sql where option exports only centroids and not areas
-------------------------+--------------------------------------------------
 Reporter:  marisn       |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  6.4.3                    
Component:  Vector       |     Version:  svn-trunk                
 Keywords:  v.out.ascii  |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by mlennert):

 Replying to [ticket:1470 marisn]:
 > It's not possible to export areas selected by SQL WHERE clause.
 > Example from NC data set. Let's export only lake with CAT=5109:
 {{{
 > v.out.ascii input=lakes at PERMANENT layer=1 output=vbuffer_fail_on_area3
 where=cat=5109 format=standard
 }}}
 > Output vector part:
 {{{
 > C  1 1
 >  627457.82440791 231495.92575519
 >  1     5109
 }}}

 This is logicial in the sens that only the centroid has a cat=5109. No
 boundary has this cat. So this would mean implementing a specific
 algorithm to check which boundary needs to be exported together with this
 centroid.

 As a workaround: v.extract and then v.out.ascii. Maybe this can be coded
 in a script ?

 Moritz

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1470#comment:2>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list