[GRASS-dev] [GRASS GIS] #3292: Query on spatially overlapped features in one vector map

GRASS GIS trac at osgeo.org
Tue Feb 28 20:48:02 PST 2017


#3292: Query on spatially overlapped features in one vector map
--------------------------+-------------------------
  Reporter:  hcho         |      Owner:  grass-dev@…
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  7.4.0
 Component:  Vector       |    Version:  svn-trunk
Resolution:               |   Keywords:  query
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+-------------------------

Comment (by annakrat):

 I implemented it in python scripting library and in GUI query dialog I put
 it as default. I am not sure if we need to make it optional, it seems like
 a useful behavior to me.

 One more problem I found occurs with areas:
 {{{
 v.what map=lakes coordinates=635886.454183,223255.976096 distance=100 -jm
 type=area
 }}}

 It's invalid json and there are duplicate records:
 {{{
 {
         "Coordinates": {
                 "East": "635886.454183",
                 "North": "223255.976096"
         },
         "Maps": [{
                 "Map": "lakes",
                 "Mapset": "PERMANENT",
                 "Features": [{,
                         "Type": "Area",
                         "Sq_Meters": 596589.425,
                         "Hectares": 59.659,
                         "Acres": 147.420,
                         "Sq_Miles": 0.2303,
                         "Categories": [{
                                 "Layer": 1,
                                 "Category": 8055
                         }]
                 }, {,
                         "Type": "Area",
                         "Sq_Meters": 596589.425,
                         "Hectares": 59.659,
                         "Acres": 147.420,
                         "Sq_Miles": 0.2303,
                         "Categories": [{
                                 "Layer": 1,
                                 "Category": 8055
                         }]
                 }, {,
                         "Type": "Area",
                         "Sq_Meters": 596589.425,
                         "Hectares": 59.659,
                         "Acres": 147.420,
                         "Sq_Miles": 0.2303,
                         "Categories": [{
                                 "Layer": 1,
                                 "Category": 8055
                         }]
                 }]
         }]
 }
 }}}
 [https://grass.osgeo.org/programming7/sindex_8c.html#abd37487c40010a08f68621f37aad3e56
 Vect_select_areas_by_polygon] documentation says ''Warning : values in
 list may be duplicate'', but I have no idea why.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3292#comment:7>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list