[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 07:03: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 mlennert):
Interestingly:
{{{
g.proj georef=point_eu_laea.shp location=test2
Essai d'ouverture à l'aide d'OGR...
...réussi.
Location <test2> created
You can switch to the new location by
`g.mapset mapset=PERMANENT location=test2`
}}}
but
{{{
v.in.ogr point_eu_laea.shp location=test
ATTENTION: All available OGR layers will be imported into vector map
<point_eu_laea>
Location <test> created
ERREUR :Invalid e-w resolution field: 0
}}}
Both are created, but:
{{{
diff -u test/PERMANENT/ test2/PERMANENT/
diff -u test/PERMANENT/.bashrc test2/PERMANENT/.bashrc
--- test/PERMANENT/.bashrc 2017-09-06 15:54:44.389963786 +0200
+++ test2/PERMANENT/.bashrc 2017-09-06 15:54:55.545841900 +0200
@@ -1,5 +1,5 @@
test -r ~/.alias && . ~/.alias
-PS1='GRASS 7.3.svn (test):\w > '
+PS1='GRASS 7.3.svn (test2):\w > '
grass_prompt() {
LOCATION="`g.gisenv get=GISDBASE,LOCATION_NAME,MAPSET
separator='/'`"
if test -d "$LOCATION/grid3/G3D_MASK" && test -f
"$LOCATION/cell/MASK" ; then
diff -u test/PERMANENT/DEFAULT_WIND test2/PERMANENT/DEFAULT_WIND
--- test/PERMANENT/DEFAULT_WIND 2017-09-06 15:51:39.891978100 +0200
+++ test2/PERMANENT/DEFAULT_WIND 2017-09-06 15:52:13.227614355
+0200
@@ -10,9 +10,9 @@
n-s resol: 0
top: 1.000000000000000
bottom: 0.000000000000000
-cols3: 1
-rows3: 1
+cols3: 20
+rows3: 20
depths: 1
-e-w resol3: 1
-n-s resol3: 1
+e-w resol3: 0
+n-s resol3: 0
t-b resol: 1
Common subdirectories: test/PERMANENT/sqlite and test2/PERMANENT/sqlite
Only in test/PERMANENT/: .tmp
diff -u test/PERMANENT/WIND test2/PERMANENT/WIND
--- test/PERMANENT/WIND 2017-09-06 15:51:39.891978100 +0200
+++ test2/PERMANENT/WIND 2017-09-06 15:52:13.227614355 +0200
@@ -10,9 +10,9 @@
n-s resol: 0
top: 1.000000000000000
bottom: 0.000000000000000
-cols3: 1
-rows3: 1
+cols3: 20
+rows3: 20
depths: 1
-e-w resol3: 1
-n-s resol3: 1
+e-w resol3: 0
+n-s resol3: 0
t-b resol: 1
}}}
and in both 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
cols: 20
rows: 20
e-w resol: 0
n-s resol: 0
top: 1.000000000000000
bottom: 0.000000000000000
cols3: 1
rows3: 1
depths: 1
e-w resol3: 1
n-s resol3: 1
t-b resol: 1
}}}
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....
So, yes, there seems to be a link to #2878...
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3414#comment:2>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list