#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
 Keywords:  v.import            |        CPU:  Unspecified
 Platform:  Linux               |
--------------------------------+-------------------------
 When trying to import a vector point in EU LAEA projection (see attached
 SHP file) into a location in MODIS Sinusoidal projection, an error occurs
 while v.proj does the job correctly:

 {{{
 GRASS 7.3.svn (modis_sinusoidal):~ > v.import in=point_eu_laea.shp
 out=point_eu_laea2
 ERROR: Invalid e-w resolution field: 0
 }}}

 With OGR debugging on:

 {{{
 GRASS 7.3.svn (modis_sinusoidal):~ > PROJ_DEBUG=ON CPL_DEBUG=ON  v.import
 in=point_eu_laea.shp out=point_eu_laea2
 GDAL: In GDALDestroy - unloading GDAL shared library.
 Shape: DBF Codepage = LDID/87 for point_eu_laea.shp
 Shape: Treating as encoding 'ISO-8859-1'.
 GDAL: GDALOpen(point_eu_laea.shp, this=0x255f710) succeeds as ESRI
 Shapefile.
 GDAL: In GDALDestroy - unloading GDAL shared library.
 GDAL: force close of point_eu_laea.shp (0x255f710) in GDALDriverManager
 cleanup.
 GDAL: GDALClose(point_eu_laea.shp, this=0x255f710)
 Shape: DBF Codepage = LDID/87 for point_eu_laea.shp
 Shape: Treating as encoding 'ISO-8859-1'.
 GDAL: GDALOpen(point_eu_laea.shp, this=0x9d57e0) succeeds as ESRI
 Shapefile.
 ERROR: Invalid e-w resolution field: 0
 GDAL: In GDALDestroy - unloading GDAL shared library.
 GDAL: force close of point_eu_laea.shp (0x9d57e0) in GDALDriverManager
 cleanup.
 GDAL: GDALClose(point_eu_laea.shp, this=0x9d57e0)
 ERROR: Unable to create location from OGR datasource <point_eu_laea.shp>
 }}}

 The projection of the location:

 {{{
 GRASS 7.3.svn (modis_sinusoidal):~ > g.proj -p
 -PROJ_INFO-------------------------------------------------
 name       : unnamed
 a          : 6371007.181
 es         : 0
 proj       : sinu
 lon_0      : 0
 x_0        : 0
 y_0        : 0
 no_defs    : defined
 -PROJ_UNITS------------------------------------------------
 unit       : Meter
 units      : Meters
 meters     : 1
 }}}

 I am a bit clueless here.

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

_______________________________________________
grass-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to