Ticket #551 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

WinGRASS-6.4_RC3 error creating location with EPSG codes.

Reported by: isaacullah Owned by: grass-dev@…
Priority: major Milestone: 6.4.0
Component: Python Version: 6.4.0 RCs
Keywords: create location epsg Cc:
Platform: MSWindows XP CPU: Unspecified

Description

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

Change History

  Changed 4 years ago 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

in reply to: ↑ description   Changed 4 years ago by martinl

  • status changed from new to closed
  • resolution set to fixed

Replying to 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.

Note: See TracTickets for help on using tickets.