gvSIG bugs #4125
loadShapeFile function doesn't work
Status: | Closed | % Done: | 0% | |
---|---|---|---|---|
Priority: | Normal | Spent time: | - | |
Assignee: | Joaquín del Cerro Murciano | |||
Category: | Scripting | |||
Target version: | 2.3.0-2426 (rev. org.gvsig.desktop-2.0.132, NOT USABLE) | |||
Severity: | Minor | Add-on version: | ||
gvSIG version: | 2.3.0 | Add-on build: | ||
gvSIG build: | 2424 | Add-on resolve version: | ||
Operative System: | Add-on resolve build: | |||
Keywords: | Proyecto: | |||
Has patch: | Hito: | |||
Add-on name: | Unknown |
Description
If I try to execute this simple script called e.g. addShapefile:
from gvsig import * def main(*args): loadShapeFile("C:\Geodata\foo.shp") passI get the following log message:
Running script addShapefile. NameError: global name 'currentView' is not defined in <script> at line number 6 org.gvsig.scripting.ExecuteErrorException: NameError: global name 'currentView' is not defined in <script> at line number 6Stript addShapefile aborted. [...]
Associated revisions
refs #4125, fix some imports
History
#1 Updated by Joaquín del Cerro Murciano about 8 years ago
- Target version changed from 2.3.0-2447-final (rev. org.gvsig.desktop-2.0.153) to 2.3.0-2426 (rev. org.gvsig.desktop-2.0.132, NOT USABLE)
- Assignee set to Joaquín del Cerro Murciano
#2 Updated by Joaquín del Cerro Murciano about 8 years ago
- Status changed from New to Fixed
#3 Updated by Antonio Falciano about 8 years ago
- Status changed from Fixed to Closed