[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 09:22:31 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
--------------------------+---------------------------------

Comment (by mlennert):

 Replying to [comment:13 mlennert]:
 > Replying to [comment:12 pmav99]:
 > > Replying to [comment:10 mlennert]:
 > > > One question we have to answer is whether GRASS should allow the
 creation of mapsets with 0 resolution in any direction, and, if not (as I
 think it should be), then what would be a reasonable default when creating
 a location from a file containing data with identical coordinates in
 either of the directions or with just one point.
 > >
 > > I also tried to create a location using the grass binary and a GeoJSON
 file containing a single Point. The location gets created without any
 errors/warnings but when you try to open the location you get the
 following traceback:
 >
 >
 > Yes, g.proj should have the same issue, so I think the solution will not
 be in v.in.ogr, but at library level. Just no time right now to look into
 it.

 Didn't have the time, but took some anyway, but only for coding, not much
 for testing. Try attached patch against trunk.

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



More information about the grass-dev mailing list