| 1 | |
| 2 | -- Report -- |
| 3 | |
| 4 | i start to wrote code .... my first time using svn (cool!) |
| 5 | |
| 6 | i'll try to describe it here ... |
| 7 | |
| 8 | |
| 9 | |
| 10 | what is done : |
| 11 | |
| 12 | - code to use ossim TCP capabilities to set a position and a point of view based on (lon, lat, altitude, roll, pitch, gain) (finished) |
| 13 | - code for reading the gps data from dgps and display the nmeadata in the gui (include a map view using qtwebkit), it will use a fixed position (gps) and a modificable view setting (roll,pitch,gain) (finished) |
| 14 | - code to change the position using a joystic (needs some implementation yet, but is ready for test) |
| 15 | |
| 16 | so the position message can be sended using gui, gps, joystick |
| 17 | |
| 18 | - code to read the grass environment and retrieve a list for vector, raster and regions in the running mapset |
| 19 | so it is possible to syncronize the posiotion in ossimplanet on the center of the active grass region or change the region to a speciphic layer or saved region |
| 20 | |
| 21 | - code to export grass elevation data to ossimplanet (g.ossim) the code is usable from the pyqt gui or directly from grass (finished) |
| 22 | - code to read vector layer in grass and export it to kml (it is to have a custom kml settings, like color, label etc...) (needs testing, not finished) |
| 23 | |
| 24 | |
| 25 | what to do during the next week : |
| 26 | |
| 27 | - finish the code i described first |
| 28 | - work on a table widjet (it will contain the avayable layer in the mapset and a checkbox for each layer i'll try to realize a "query system" connected to the gui ) |
| 29 | - reorganize the code in a clean way, ranaming function give them a better position in the code and create comment |
| 30 | |
| 31 | |
| 32 | known problems that can block me : |
| 33 | |
| 34 | using the gdal-ossim plug-in we can read grass raster layer but there are problems to reneder images with more than 255 entries in the colortable. |
| 35 | |
| 36 | i had a chat with FrankW where we discuss a bit the problem, i stored the irc log here : |
| 37 | |
| 38 | http://trac.osgeo.org/ossim/attachment/wiki/GdalOssimPlugin/frankw_irclog.txt |
| 39 | |
| 40 | tring to summarize it : |
| 41 | |
| 42 | the code needs to be modified to handle three cases - 8bit, 16bit and 32bit integers and to error out gracefully if it isn't one of those cases... |
| 43 | ... and "the s[sample] value it fetched from the input buffer this would need to be altered to fetch it based on the type of the buffer." in function loadIndexTo3BandTile |
| 44 | |
| 45 | what i learn .. : |
| 46 | |
| 47 | theSingleBandTile ---> point to a byte array (that isn't every true) |
| 48 | theGdalBuffer.resize(theSingleBandTile->getSizePerBandInBytes()*2); ---> the band is readed correctly but is is "casted" to 8bit |
| 49 | |
| 50 | i think gdal-grass should read correctly the grass data, so maybe the problem is in the colortable rendering in the GDAL OSSIM driver. |
| 51 | |
| 52 | i'm tring to documenting myself reading : |
| 53 | |
| 54 | http://www.gdal.org/gdal_datamodel.html |
| 55 | |
| 56 | and : |
| 57 | |
| 58 | ossimGdalTileSource::loadIndexTo3BandTile() |
| 59 | |
| 60 | ... seems it accepts only raster files with 3band or with indexcolor , need i a function to port in rgb mode a grass color table ? |
| 61 | |
| 62 | i'm reading the grass colortable structure to learn more |
| 63 | |
| 64 | any suggestion, lines of code, examples ... that can help me to know how to work on the gdal-ossim code .. can make me happy |
| 65 | ... i know it is not a simple task. |
| 66 | |