Skip to content

sandeep2357/gvSIG-GSoC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gvSIG-GSoC

Add Raster Support to scripting in gvSIG


The project aim is to implement support for GIS raster data formats in gvSIG 2.0 scripting framework. The scripting extension will be able to let users perform several raster analysis functions (geoprocessing, filters, flow direction analysis etc). By the time of completion of this project, one can work on a wide range of GIS raster data formats in gvSIG 2.0 scripting framework.

For more about the project and work progress refer the wiki page.

Using the API


Requirements

To be able to work with this API, one must have:
  • gvSIG Desktop 2.0

  • Scripting Add-on installed in gvSIG 2.0

  • gvsig_raster.py file (provided above)

SetUp

  • First add Raster libraries to the scripting extension. See here for help.

  • Place a small patch for gvsig.py. See here on how to patch gvsig.py

  • Place the downloaded gvsig_raster.py file in [gvsig-install-folder]/gvSIG/extensiones/org.gvsig.scripting.extension/scripting/lib folder.

Testing

  • Create a view with any name in gvSIG main workspace.

  • Open the scripting composer from the gvSIG Tools menu.

  • Create a file named loadingRaster.py and place the following in the file.

from gvsig import *
from gvsig_raster import *
def main():
        layer = loadRasterLayer('path-to-a-raster-file')
  • Run the script.

Note1: If you make any change to gvsig_raster.py file or other files in the lib folder, you need to restart the gvSIG application for the changes to take place.
Note2: The test scripts required to test the code are provided in tests folder. The documentation in HTML format is provided in docs folder.

About

Work done during GSoC-2013

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages