[GRASS-dev] [GRASS GIS] #3414: v.import: ERROR: Invalid e-w resolution field: 0 when importing EU_LAEA point into Sinusoidal location

GRASS GIS trac at osgeo.org
Wed Sep 6 08:20:12 PDT 2017


#3414: v.import: ERROR: Invalid e-w resolution field: 0 when importing EU_LAEA
point into Sinusoidal location
---------------------------------+-------------------------
  Reporter:  neteler             |      Owner:  grass-dev@…
      Type:  defect              |     Status:  new
  Priority:  normal              |  Milestone:  7.2.2
 Component:  Projections/Datums  |    Version:  svn-trunk
Resolution:                      |   Keywords:  v.import
       CPU:  Unspecified         |   Platform:  Linux
---------------------------------+-------------------------

Comment (by mmetz):

 Replying to [comment:2 mlennert]:
 >
 > [...] I get:
 >
 >
 > {{{
 > g.proj -p
 > ERREUR :Invalid e-w resolution field: 0
 > }}}
 >
 > because DEFAULT_WIND/WIND contains:
 >
 > {{{
 > proj:       99
 > zone:       0
 > north:      1205000
 > south:      1205000
 > east:       3674000
 > west:       3674000
 > [...]
 > }}}
 >
 > which seems logical as a point does not have dimensions, but the default
 region should still be defined with one cell and a resolution of 1....

 A simple solution would be to add/subtract 0.5 if north == south and/or
 east == west with rows and/or cols set to 1. For latlong, this is only
 guaranteed to work in trunk.
 >
 > So, yes, there seems to be a link to #2878...

 It seems so, because g.proj uses
 [https://trac.osgeo.org/grass/browser/grass/trunk/general/g.proj/input.c#L362
 code] copied from
 [https://trac.osgeo.org/grass/browser/grass/trunk/vector/v.in.ogr/main.c#L581
 v.in.ogr].

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



More information about the grass-dev mailing list