Personal tools
You are here: Home Members Joaquin del Cerro gvSIG Scripting - raster Notas 2 201307091316-Re: Some API methods [gvSIG] [GSoC 2013]
Document Actions

201307091316-Re: Some API methods [gvSIG] [GSoC 2013]

by Joaquin Jose del Cerro Murciano last modified 2013-07-11 15:54

Mail

Received: from mail-vc0-f180.google.com ([209.85.220.180]) by hermes.prodevelop.es with Microsoft SMTPSVC(6.0.3790.4675);
         Tue, 9 Jul 2013 13:27:51 +0200
Received: by mail-vc0-f180.google.com with SMTP id gf11so4178306vcb.39
        for <jjdelcerro@gvsig.com>; Tue, 09 Jul 2013 04:16:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:from:date:message-id:subject:to:cc:content-type;
        bh=O9bvcxVxVtpE2X4e/mq7yA2zQmI9H7Fc10x4KSP3lXg=;
        b=bihJ+lip7eKmtY//pTHKfmrB4b2CwbHw+2WtgXfM81g5SWeACJVAhhDZ5Y3xOSW7kU
         daccxmeVnMQBS6m5QOel/1LQO99/ya32FmKd+kOzS/oa6gDYyTZIHwmqXca7Un8RK7Ok
         /r73mfSrdteDQ/Zp6htiEyCkUnlNHFqWPAT/hUJEzj6xqmkRIfZoJqFyzNTuFOXO7qFf
         j4ie+IZNgWhkrDLhbJgopiHFY7u4R/zHAUfJlHpHauUv9WiLsmYVySBG4TMAHrRYTpXJ
         I/oaTDR/XBAyqKh/mQT+xyrEsGy8UUVCKUBFd7OGVLyEDnKt5v068JlkhLGEqa1nCx0k
         DhvA==
X-Received: by 10.52.21.232 with SMTP id y8mr2213831vde.6.1373368588530; Tue,
 09 Jul 2013 04:16:28 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.221.3.1 with HTTP; Tue, 9 Jul 2013 04:16:07 -0700 (PDT)
From: sandeep kumar <kumarsandeep2357@gmail.com>
Date: Tue, 9 Jul 2013 16:46:07 +0530
Message-ID: <CAKxdoxm0cPpR7Ko7Ri5cN_niPCNssugYZ8gmvAiy-MymCapPUA@mail.gmail.com>
Subject: Re: Some API methods [gvSIG] [GSoC 2013]
To: =?ISO-8859-1?Q?Joaqu=EDn_Jos=E9_Del_Cerro?= <jjdelcerro@gvsig.com>
Cc: Nacho Brodin <ibrodin@prodevelop.es>
Content-Type: multipart/mixed; boundary=20cf3079babadd7b3504e1124ad4
Return-Path: kumarsandeep2357@gmail.com
X-OriginalArrivalTime: 09 Jul 2013 11:27:51.0953 (UTC) FILETIME=[593F0010:01CE7C97]

--20cf3079babadd7b3504e1124ad4
Content-Type: multipart/alternative; boundary=20cf3079babadd7b3104e1124ad2

--20cf3079babadd7b3104e1124ad2
Content-Type: text/plain; charset=ISO-8859-1

Hi Sir,

     The attached are some of the methods i thought of. kindly provide some
feedback about their importance to our API and of any mistakes i have made
in defining them.


Thank You,
Sandeep Kumar,
MS by Research,
Lab for Spatial Informatics,
IIIT-Hyderabad.

API definition

The following are some of the methods that I think should be part of the API. These methods should make user’s life easy in developing scripts without worrying about the gvsig raster library.

  • Layer = loadRasterLayer(path_to_raster_file)

  • dataMatrix = getDataMatrix(layer)

    My intention about this method is providing the user the raster data just like matlab will make his study easy. And also applying filters will also be easy.

  • dataMatrix = createDataMatrix(width, height [, bandCount ])

    This method will be useful for the user to create his own raster layers with test data. This enables the user to test the working of any data modification method closely.

  • dataMatrix = copyMatrix(Matrix)

  • cellValue = getData(layer, x, y [,bandNumber])

  • modifiedRaster = applyFilter(layer/Matrix, ”filterName” [,maskSize])

    This method should help the user in applying any filter (low pass/highpass etc) on Layer Data/matrix Data.

  • Histogram = getHistogram(layer [, band])

  • outputMatrix = applyLocalOperation(Matrix1, Matrix2,”Operation”)

    I don’t know whether we can use layers as input here. I will check it. Operation can be generally ADD, SUB, MUL etc of individual cells.

  • Output = applyNeighbourOperation(Matrix,”Operation” [,maskSize])

    Here Operation can be MAX, MIN, MEDIAN etc.


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: