[GRASS-dev] [GRASS GIS] #2878: "v.in.ogr -i" throws an error when importing a GeoJSON file containing a single point.

GRASS GIS trac at osgeo.org
Thu Jan 28 00:28:05 PST 2016


#2878: "v.in.ogr -i" throws an error when importing a GeoJSON file containing a
single point.
--------------------------+---------------------------------
  Reporter:  pmav99       |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.0.4
 Component:  Vector       |    Version:  svn-releasebranch70
Resolution:               |   Keywords:  v.in.ogr v.import
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+---------------------------------
Changes (by neteler):

 * version:  unspecified => svn-releasebranch70
 * milestone:   => 7.0.4


Comment:

 Two comments:

 Replying to [comment:10 mlennert]:
 > +        if (cellhd.north == cellhd.south)
 > +             cellhd.north += 0.0001;

 please see: lib/gis/adj_cellhd.c

  * AFAIK such equality comparisons need to be done comparing against an
 epsilon, not with ==
  * if I get it right, in that file 0.000001 is used.

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



More information about the grass-dev mailing list