[GRASS-dev] GSOC project proposal: GUI plugin system for GRASS GIS

Vaclav Petras wenzeslaus at gmail.com
Wed Mar 25 14:04:17 PDT 2015


On Wed, Mar 25, 2015 at 4:13 PM, jyoti misra <jyotimisra.99 at gmail.com>
wrote:

> Hello,
>
> Hi,

please keep conversation on the mailing list, so other people can follow or
participate.


> Regarding Bug : Quotes not preserved in command after pressing enter in
> GUI command console
> My idea:
>
>    - Find the code which is taking command as input and passing it to
>    RunCommand function.
>    - Most probably error is in reading the input from stdin and storing
>    it in variable.
>    - Code might be running some regex search(or something similar) to
>    remove everything expect alphanumeric characters from the command string.
>    - My approach to fix this bug is to find that point and study for the
>    cause of error and fix it.
>
> Regarding enhancements to add epsg code :
> My idea as described earlier :
>
>    - Add a button and a text box to the current implementation of
>    wizard.py which will take location as an input and redirect the user to
>    epsg.io with the url "epsg.io/?q=location" .
>    - This is will require to read the input from the user and appending
>    it to epsg.io URL.
>    - User can then select among the different search results on the
>    espg.io page he is redirected to.
>
> But with both tasks I am getting same problem, the code is very big and
> there are many files to look into, and I'm not able to find the exact place
> to do the corrections/enhancements. I know what to do in both situations
> but lack the complete and exact knowledge of GRASS code structure. Can you
> please guide me to the exact line of code where the changes have to be made.
>
Sorry, I cannot do that. If I would know where (and how) to fix it I would
already do that. You must understand that although now this serves as an
exercise for GSoC, it is a real issue which is in GRASS. Also, for the GSoC
you will need to understand the existing code to certain extended to be
able to incorporate your code and to fix the bugs which can emerge in both
new and existing code.

Vaclav

> Regards,
>
> Jyoti
> On Wed, Mar 25, 2015 at 8:40 PM, Vaclav Petras <wenzeslaus at gmail.com>
> wrote:
>
>> On Wed, Mar 25, 2015 at 10:51 AM, jyoti misra <jyotimisra.99 at gmail.com>
>> wrote:
>>
>>> As for the enhancement I was thinking of creating a search box in our
>>> current structure that takes the users query and redirects it to the result
>>> page of espg.io with the query. For e.g. if I search India redirect URL
>>> will be http://epsg.io/?q=india.
>>>
>>
>> There is no user location information available in GRASS GIS, wxPython or
>> standard Python packages as far as I know. So this seems quite challenging.
>>
>>
>>> But where exactly do I need to make the changes? Please help me with
>>> that.
>>
>>
>>
>> http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/location_wizard
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150325/5be0d2c9/attachment.html>


More information about the grass-dev mailing list