Re: [GRASS-dev] GSOC project proposal: GUI plugin system for GRASS GIS
Hello, Sorry for the late reply. I was busy with exams last week. I compiled the code from source, read a tutorial on grass gis and I am fairly comfortable with grass environment. I was looking into the Bug: Quotes not preserved in command after pressing enter in GUI command console and tried it out on my machine. I was trying to fix it and I think most probably it's some problem with regex search which is deleting the quotes from the command. I was looking into the code for fixing the bug but couldn't find the relevant file to change. Could you please guide me with that. Also for the enhancement: Button, documentation and perhaps something more interactive for finding EPSG codes online rather then in GRASS GIS list I was thinking of more interactive process of using EPSG - 1. We can merge epsg.io code into our existing structure. http://epsg.io/ 2. We can add a button that will redirect users to epsg.io I would like to have your suggestions on the same I know I am running a bit late with the bug fixing but I can assure you I won't disappoint you during the course of project. I am very interested in doing GSOC under grass org as it will be an added advantage to my ongoing research in computer science and spatial informatics. I would be thankful if you could help me with submitting GSOC proposal. Regards Jyoti On Thu, Mar 12, 2015 at 9:10 AM, Vaclav Petras wenzesl...@gmail.com wrote: Hello. On Tue, Mar 10, 2015 at 3:46 PM, jyoti misra jyotimisra...@gmail.com wrote: Dear Sir/Madam, Myself Jyoti currently working under Dr. KS Rajan as a research student in Spatial Informatics Lab, IIIT hyderabad . I am currently working in Land Use modelling of Barrack valley region. Previously i have worked on Billboard placement optimization problem considering the spatial ,temporal and traffic features. I am interested in working with grass org under the project GUI plugin system for GRASS GIS. The project is interesting and I have some idea of the technologies requires for the project as i have already worked in Python , c/c++. Good. Now you should find some enhancements or bugs in GRASS GIS bug tracker [1] and implement or fix them before the application evaluation to show level of you proficiency [2, 3]. You can also select from this list: Enhancement: Let users save/load SQL statements in wxGUI attribute table manager http://trac.osgeo.org/grass/ticket/1205 Bug: Quotes not preserved in command after pressing enter in GUI command console http://trac.osgeo.org/grass/ticket/1435 http://trac.osgeo.org/grass/ticket/1437 Enhancement: Store map elements such as legend, text and scale bar in workspace file. http://trac.osgeo.org/grass/ticket/2484 Enhancement: Possibility to automatically load last used workspace when GRASS GIS GUI starts http://trac.osgeo.org/grass/ticket/2604 Enhancement: Store recently used workspaces and offer them in the menu http://trac.osgeo.org/grass/ticket/2604 Enhancement: Implement georeferenced image output for Save display... function in GUI and d.out.file module (and its wxGUI implementation) http://trac.osgeo.org/grass/ticket/977 Bug: Undefined settings variable issue in bivariate scatterplot tool http://trac.osgeo.org/grass/ticket/2247 Enhancement: Button, documentation and perhaps something more interactive for finding EPSG codes online rather then in GRASS GIS list http://trac.osgeo.org/grass/ticket/26 However, you can explore the open issues on GRASS GIS bug tracker yourself. Just keep in mind that this GSoC project would be in Python and wxPython. You can attempt to solve more of these tasks, the more the better. In any case, the thing you select and do should be in Python and should sufficiently represent your skills. Draft implementation of non-GUI (model) part of the plugin system would be helpful to understand the issues which you should address in the application. In any case, start with compiling GRASS GIS from source code (trunk) from Subversion repository [4], reading tips for students [5] and going through instructions for other students [6, 7] (you can use Nabble [8] for that). Also read Submitting rules [9] and how-to [10] for wxGUI development. Also learn how to do basic tasks in GRASS GIS graphical user interface (called wxGUI), use e.g. GRASS wiki or the manual as learning resource. Please, always create a new thread on mailing list for distinct topics. Best, Vaclav [1] https://trac.osgeo.org/grass/query [2] http://wiki.osgeo.org/wiki/Google_Summer_of_Code_Recommendations_for_Students [3] http://lists.osgeo.org/pipermail/soc/2015-March/002908.html [4] http://trac.osgeo.org/grass/wiki/DownloadSource [5] http://trac.osgeo.org/grass/wiki/GSoC/2015#Tipsforstudents [6] http://lists.osgeo.org/pipermail/grass-dev/2015-March/074420.html [7] http://lists.osgeo.org/pipermail/grass-dev/2015-March/074433.html [8] http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html [9]
Re: [GRASS-dev] GSOC project proposal: GUI plugin system for GRASS GIS
On Wed, Mar 25, 2015 at 2:20 AM, jyoti misra jyotimisra...@gmail.com wrote: I was looking into the Bug: Quotes not preserved in command after pressing enter in GUI command console and tried it out on my machine. I was trying to fix it and I think most probably it's some problem with regex search which is deleting the quotes from the command. I was looking into the code for fixing the bug but couldn't find the relevant file to change. Could you please guide me with that. It will be probably one of those: http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/core/gconsole.py http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/core/gcmd.py http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/gui_core/prompt.py http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/gui_core/pystc.py http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/gui_core/goutput.py http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/lmgr/frame.py Also for the enhancement: Button, documentation and perhaps something more interactive for finding EPSG codes online rather then in GRASS GIS list I was thinking of more interactive process of using EPSG - 1. We can merge epsg.io code into our existing structure. http://epsg.io/ This is not desirable. Although there might be some places to get inspired from what the system offers while GRASS system lacks. 2. We can add a button that will redirect users to epsg.io This is the most simple and straightforward way how to implement this. Button can just open a web browser. There is a standard way in wxPython to do this. I would like to have your suggestions on the same Alternative is to somehow use their URLs (or API if there is some) to do some search or show additional information about the projection. This needs a more detailed analysis of the problem. The button mentioned before would be a good start. Even with a simple button, the opened URL could also include something like currently searched URL. Vaclav ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] GSOC project proposal: GUI plugin system for GRASS GIS
I was looking into the files you sent and I think I am going in the right direction. I will try to complete the task as soon as possible. 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. But where exactly do I need to make the changes? Please help me with that. Regards Jyoti On Wed, Mar 25, 2015 at 6:59 PM, Vaclav Petras wenzesl...@gmail.com wrote: On Wed, Mar 25, 2015 at 2:20 AM, jyoti misra jyotimisra...@gmail.com wrote: I was looking into the Bug: Quotes not preserved in command after pressing enter in GUI command console and tried it out on my machine. I was trying to fix it and I think most probably it's some problem with regex search which is deleting the quotes from the command. I was looking into the code for fixing the bug but couldn't find the relevant file to change. Could you please guide me with that. It will be probably one of those: http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/core/gconsole.py http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/core/gcmd.py http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/gui_core/prompt.py http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/gui_core/pystc.py http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/gui_core/goutput.py http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/lmgr/frame.py Also for the enhancement: Button, documentation and perhaps something more interactive for finding EPSG codes online rather then in GRASS GIS list I was thinking of more interactive process of using EPSG - 1. We can merge epsg.io code into our existing structure. http://epsg.io/ This is not desirable. Although there might be some places to get inspired from what the system offers while GRASS system lacks. 2. We can add a button that will redirect users to epsg.io This is the most simple and straightforward way how to implement this. Button can just open a web browser. There is a standard way in wxPython to do this. I would like to have your suggestions on the same Alternative is to somehow use their URLs (or API if there is some) to do some search or show additional information about the projection. This needs a more detailed analysis of the problem. The button mentioned before would be a good start. Even with a simple button, the opened URL could also include something like currently searched URL. Vaclav ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] GSOC project proposal: GUI plugin system for GRASS GIS
On Wed, Mar 25, 2015 at 10:51 AM, jyoti misra jyotimisra...@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 ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] GSOC project proposal: GUI plugin system for GRASS GIS
On Wed, Mar 25, 2015 at 4:13 PM, jyoti misra jyotimisra...@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 wenzesl...@gmail.com wrote: On Wed, Mar 25, 2015 at 10:51 AM, jyoti misra jyotimisra...@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 ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] GSOC project proposal
On Wed, Mar 11, 2015 at 11:36 AM, sarthak agarwal sarthak0...@gmail.com wrote: I have used Grass directly installing from the ppa .. I was trying to compile it from the source and i'm getting error .Below is the error.log content. GRASS GIS 7.0.1svn r64826 compilation log Note that for development you will need trunk, not release branch. -- Errors in: /home/sarthak/grass-7.0.svn/display/d.path /home/sarthak/grass-7.0.svn/display/d.vect ... /home/sarthak/grass-7.0.svn/vector/v.neighbors ... /home/sarthak/grass-7.0.svn/ps/ps.map -- In case of errors please change into the directory with error and run 'make'. If you get multiple errors, you need to deal with them in the order they appear in the error log. If you get an error building a library, you will also get errors from anything which uses the library. -- What compilation guide have you used? What it is saying when you do what it wants? Can you please suggest me a way to solve it. Also i was looking for r.in.proj' folder in the source code but couldn't find it . It was there on the link you send but not on the svn repo. Should i directly copy the files from there to the local repo. These two modules are in addons. Compare the SVN repo with the Trac URLs and you will find how to get them. Source code for r.in.proj and v.in.proj: https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.in.proj https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.in.proj Please, stay on mailing list. ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
[GRASS-dev] GSOC project proposal: GUI plugin system for GRASS GIS
Hello. On Tue, Mar 10, 2015 at 3:46 PM, jyoti misra jyotimisra...@gmail.com wrote: Dear Sir/Madam, Myself Jyoti currently working under Dr. KS Rajan as a research student in Spatial Informatics Lab, IIIT hyderabad . I am currently working in Land Use modelling of Barrack valley region. Previously i have worked on Billboard placement optimization problem considering the spatial ,temporal and traffic features. I am interested in working with grass org under the project GUI plugin system for GRASS GIS. The project is interesting and I have some idea of the technologies requires for the project as i have already worked in Python , c/c++. Good. Now you should find some enhancements or bugs in GRASS GIS bug tracker [1] and implement or fix them before the application evaluation to show level of you proficiency [2, 3]. You can also select from this list: Enhancement: Let users save/load SQL statements in wxGUI attribute table manager http://trac.osgeo.org/grass/ticket/1205 Bug: Quotes not preserved in command after pressing enter in GUI command console http://trac.osgeo.org/grass/ticket/1435 http://trac.osgeo.org/grass/ticket/1437 Enhancement: Store map elements such as legend, text and scale bar in workspace file. http://trac.osgeo.org/grass/ticket/2484 Enhancement: Possibility to automatically load last used workspace when GRASS GIS GUI starts http://trac.osgeo.org/grass/ticket/2604 Enhancement: Store recently used workspaces and offer them in the menu http://trac.osgeo.org/grass/ticket/2604 Enhancement: Implement georeferenced image output for Save display... function in GUI and d.out.file module (and its wxGUI implementation) http://trac.osgeo.org/grass/ticket/977 Bug: Undefined settings variable issue in bivariate scatterplot tool http://trac.osgeo.org/grass/ticket/2247 Enhancement: Button, documentation and perhaps something more interactive for finding EPSG codes online rather then in GRASS GIS list http://trac.osgeo.org/grass/ticket/26 However, you can explore the open issues on GRASS GIS bug tracker yourself. Just keep in mind that this GSoC project would be in Python and wxPython. You can attempt to solve more of these tasks, the more the better. In any case, the thing you select and do should be in Python and should sufficiently represent your skills. Draft implementation of non-GUI (model) part of the plugin system would be helpful to understand the issues which you should address in the application. In any case, start with compiling GRASS GIS from source code (trunk) from Subversion repository [4], reading tips for students [5] and going through instructions for other students [6, 7] (you can use Nabble [8] for that). Also read Submitting rules [9] and how-to [10] for wxGUI development. Also learn how to do basic tasks in GRASS GIS graphical user interface (called wxGUI), use e.g. GRASS wiki or the manual as learning resource. Please, always create a new thread on mailing list for distinct topics. Best, Vaclav [1] https://trac.osgeo.org/grass/query [2] http://wiki.osgeo.org/wiki/Google_Summer_of_Code_Recommendations_for_Students [3] http://lists.osgeo.org/pipermail/soc/2015-March/002908.html [4] http://trac.osgeo.org/grass/wiki/DownloadSource [5] http://trac.osgeo.org/grass/wiki/GSoC/2015#Tipsforstudents [6] http://lists.osgeo.org/pipermail/grass-dev/2015-March/074420.html [7] http://lists.osgeo.org/pipermail/grass-dev/2015-March/074433.html [8] http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html [9] http://trac.osgeo.org/grass/wiki/Submitting/wxGUI [10] http://grasswiki.osgeo.org/wiki/WxGUI_Programming_Howto Please guide me in the project and provide some docs and links where i can proceed with solving it. Also I want to know whether someone is already committed to this Project or not? Regards, Jyoti Misra Btech and Ms by research in Spatial Informatics International Institute Of Information Technology ,Hyderabad ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
[GRASS-dev] GSOC project proposal
Dear Sir/Madam, Myself Sarthak currently working under Dr. KS Rajan as a research student in Spatial Informatics Lab, IIIT hyderabad . I am currently working in spatial databases by optimizing the performance of mongoDb for spatial databases. Previously i have worked on Billboard placement optimization problem considering the spatial ,temporal and traffic features. I am interested in working with grass org under the project New easy-to-use command line interface for GRASS GIS. The problem looks interesting to me. I am familiar with the technologies needed for this project.As i have already worked in c++ and python . Can you please provide me with some more literature and links to understand the underlying concept behind the problem and a direction to solve it. Also I want to know whether someone is already committed to this Project or not? Regards, Sarthak Agarwal Btech and Ms by research in Spatial Informatics International Institute Of Information Technology ,Hyderabad ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] GSOC project proposal
On Mon, Mar 9, 2015 at 6:32 PM, sarthak agarwal sarthak0...@gmail.com wrote: Dear Sir/Madam, Myself Sarthak currently working under Dr. KS Rajan as a research student in Spatial Informatics Lab, IIIT hyderabad . I am currently working in spatial databases by optimizing the performance of mongoDb for spatial databases. Previously i have worked on Billboard placement optimization problem considering the spatial ,temporal and traffic features. I am interested in working with grass org under the project New easy-to-use command line interface for GRASS GIS*. *The problem looks interesting to me. I am familiar with the technologies needed for this project.As i have already worked in c++ and python . Hi, this sounds good. You should find some enhancement or bug in GRASS GIS bug tracker [1] and implement or fix before the application evaluation it to show level of you proficiency [2, 3]. For example an enhancement ticket #1204 related to invoking GRASS. The wish is to start grass7 command with a wxGUI workspace file as a parameter [4]. Another option is to continue in implementing of related #2579, enhancement to provide command line parameter to execute modules. However, the big issue there is more the discussion about the interface rather then the implementation itself which is partially done already. More challenging option is to implement some part of the GSoC project, e.g. for rasters or for PostGIS vectors. This is of course highly related task but it can be tricky and what you need is something which is working well before the application evaluation. More smaller tasks might a better idea. To understand how projections (coordinate systems) work in GRASS GIS (see below), it might be advantageous for you to implement r3.proj module which would project 3D rasters from one GRASS Location to another. r.proj module is in C but for start r3.proj module could be in Python and would use r.proj in the background (similar idea can be ussed for GRASS imagery groups and temporal datasets which also don't have their proj module). Further, you could try to write r3.in.proj module which would import 3D raster data in one projection to GRASS Database with another projection (see source code of r.in.proj). See below for more resources on this topic. Writing tests for related things such as #2579, or modules r.in.proj, v.in.proj or the other modules mentioned below might be quite good introduction to the topic but to show your skill you might want to combine it with some other task which would involve actual coding. However, you can explore the open issues on GRASS GIS bug tracker yourself. Just keep in mind that this GSoC project would be in Python, so the thing you select be in Python. In any case, start with compiling GRASS GIS from source code from Subversion repository [6]. [1] https://trac.osgeo.org/grass/query [2] http://wiki.osgeo.org/wiki/Google_Summer_of_Code_Recommendations_for_Students [3] http://lists.osgeo.org/pipermail/soc/2015-March/002908.html [4] https://trac.osgeo.org/grass/ticket/1204 [5] http://trac.osgeo.org/grass/ticket/2579 [6] http://trac.osgeo.org/grass/wiki/GSoC/2015#Tipsforstudents Can you please provide me with some more literature and links to understand the underlying concept behind the problem and a direction to solve it. Start with running GRASS GIS and playing with data in different projections in case you are not familiar with GRASS GIS already. Read through the related manual page [7] and/or tutorials online on getting your data into GRASS Database. Definitively read the code from various projects and other things linked in the GSoC idea [8]. Go through the modules related to importing, linking, exporting and projecting data, some of them are linked below. Look also at how GRASS GIS can connect to PostGIS [9]. [7] http://grass.osgeo.org/grass70/manuals/helptext.html [8] http://trac.osgeo.org/grass/wiki/GSoC/2015#Neweasy-to-usecommandlineinterfaceforGRASSGIS [9] http://grasswiki.osgeo.org/wiki/PostGIS Related modules: http://grass.osgeo.org/grass70/manuals/r.in.gdal.html http://grass.osgeo.org/grass70/manuals/v.in.ogr.html http://grass.osgeo.org/grass70/manuals/addons/r.in.proj.html http://grass.osgeo.org/grass70/manuals/addons/v.in.proj.html http://grass.osgeo.org/grass70/manuals/r.proj.html http://grass.osgeo.org/grass70/manuals/v.proj.html http://grass.osgeo.org/grass70/manuals/r.external.html http://grass.osgeo.org/grass70/manuals/v.external.html Source code for r.in.proj and v.in.proj: https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.in.proj https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.in.proj Also I want to know whether someone is already committed to this Project or not? No, at least nobody wrote to the mailing list. Best, Vaclav Regards, Sarthak Agarwal Btech and Ms by research in Spatial Informatics International Institute Of Information Technology ,Hyderabad