[GRASS-dev] [GRASS GIS] #551: WinGRASS-6.4_RC3 error creating location with EPSG codes.

#551: WinGRASS-6.4_RC3 error creating location with EPSG codes.
----------------------------------+-----------------------------------------
Reporter: isaacullah | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Python | Version: 6.4.0 RCs
Keywords: create location epsg | Platform: MSWindows XP
      Cpu: Unspecified |
----------------------------------+-----------------------------------------
Trying to create a location with EPSG codes in WinGRAS-6.4_RC3 using the
WX-GUI gives following error: "Unable to read EPSG codes: string index out
of range"

The path to epsg file is correct, and the file is normal. It seems
wingrass cannot parse the epsg file.

Work around: Change directory symbol in path to epsg file from "\" to "/".
Enter a known epsg code (eg. search spatialrefernce.org for the correct
code) in the EPSG box, and press "next". Grass creates new location.

This work around does not let one "Browse EPSG codes", however. If one
trys to do so, the same error "Unable to read EPSG codes: string index out
of range" pops up.

This bug occurs in both osgeo4W version and the native installer version
of WinGRASS-6.4_RC3

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

#551: WinGRASS-6.4_RC3 error creating location with EPSG codes.
---------------------------+------------------------------------------------
  Reporter: isaacullah | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: Python | Version: 6.4.0 RCs
Resolution: | Keywords: create location epsg
  Platform: MSWindows XP | Cpu: Unspecified
---------------------------+------------------------------------------------
Comment (by hamish):

hopefully fixed in rc4, see the earlier bug report on the same subject
(not sure if it is grass bug somewhere about # 500, or if was filed as
OSGeo4w bug about # 37.

if you browse the filesystem for the file it should work to create
locations in RC3.

Hamish

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

#551: WinGRASS-6.4_RC3 error creating location with EPSG codes.
---------------------------+------------------------------------------------
  Reporter: isaacullah | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: Python | Version: 6.4.0 RCs
Resolution: fixed | Keywords: create location epsg
  Platform: MSWindows XP | Cpu: Unspecified
---------------------------+------------------------------------------------
Changes (by martinl):

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

Comment:

Replying to [ticket:551 isaacullah]:
> Trying to create a location with EPSG codes in WinGRAS-6.4_RC3 using the
WX-GUI gives following error: "Unable to read EPSG codes: string index out
of range"
>
> The path to epsg file is correct, and the file is normal. It seems
wingrass cannot parse the epsg file.
>
> Work around: Change directory symbol in path to epsg file from "\" to
"/". Enter a known epsg code (eg. search spatialrefernce.org for the
correct code) in the EPSG box, and press "next". Grass creates new
location.
>
> This work around does not let one "Browse EPSG codes", however. If one
trys to do so, the same error "Unable to read EPSG codes: string index out
of range" pops up.
>
> This bug occurs in both osgeo4W version and the native installer version
of WinGRASS-6.4_RC3

Fixed in RC4, see also #554 for additional fixes.

M.

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