[GRASS-dev] [GRASS GIS] #1905: Import modules allow to import into northern UTM location southern data

#1905: Import modules allow to import into northern UTM location southern data
--------------------------------+-------------------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Projections/Datums | Version: svn-releasebranch64
Keywords: v.in.ogr, r.in.ogr | Platform: Unspecified
      Cpu: Unspecified |
--------------------------------+-------------------------------------------
Steps to reproduce:
  * create a new location from EPSG code 32636
  * create a new shapefile in QGIS with EPSG code 32736
  * import shapefile with v.in.ogr

Import should fail as there's a "small" difference between UTM 36N and 36S
but GRASS just announces "location appears to match" and imports file.

Blocking release as it might cause hard to catch nastiness later and might
indicate more serious breakage in projection code matching. Sorry.

Tested on:
14th March WinGRASS 6.4.x 55376 (or whatever as it's not possible to copy
revision number)
Originally reported in ML. http://osgeo-org.1560.n6.nabble.com/bug-with-
projection-systems-td5040244.html

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1905&gt;
GRASS GIS <http://grass.osgeo.org>

#1905: Import modules allow to import into northern UTM location southern data
--------------------------------+-------------------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Projections/Datums | Version: svn-releasebranch64
Keywords: v.in.ogr, r.in.ogr | Platform: Unspecified
      Cpu: Unspecified |
--------------------------------+-------------------------------------------

Comment(by neteler):

Replying to [ticket:1905 marisn]:
...
> Import should fail as there's a "small" difference between UTM 36N and
36S but GRASS just announces "location appears to match" and imports file.

The code in question is here:
http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/lib/gis/make_loc.c#L164
-> G_compare_projections()

There is no check for UTM in terms of "north" and "south". Since I always
struggle
with strings, no idea how to implement that. Might be easy, though.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1905#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1905: Import modules allow to import into northern UTM location southern data
---------------------------------+------------------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Projections/Datums | Version: svn-releasebranch64
Keywords: v.in.ogr, r.in.gdal | Platform: Unspecified
      Cpu: Unspecified |
---------------------------------+------------------------------------------
Changes (by mmetz):

  * keywords: v.in.ogr, r.in.ogr => v.in.ogr, r.in.gdal

Comment:

Replying to [comment:1 neteler]:
>
> There is no check for UTM in terms of "north" and "south". Since I
always struggle
> with strings, no idea how to implement that. Might be easy, though.

Fixed in trunk r55415.

Markus M

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1905#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1905: Import modules allow to import into northern UTM location southern data
---------------------------------+------------------------------------------
  Reporter: marisn | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: blocker | Milestone: 6.4.3
Component: Projections/Datums | Version: svn-releasebranch64
Resolution: fixed | Keywords: v.in.ogr, r.in.gdal
  Platform: Unspecified | Cpu: Unspecified
---------------------------------+------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => fixed

Comment:

Replying to [comment:2 mmetz]:
> Fixed in trunk r55415.

Backported to 6.4.svn in r55427 and 6.5 in r55428.

Tested and closing.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1905#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>