rsgsislib 2_1: calcGlobalSegmentationScore

29 views
Skip to first unread message

Ramiro Silveyra González

unread,
Oct 17, 2015, 7:20:21 AM10/17/15
to RSGISLib Support
Hi All,


I have found in the site http://rsgislib.org/2_1/index.html  more rsgislib  commands than in the http://www.rsgislib.org/index.html.
Specifically, I have seen the  calcGlobalSegmentationScore function of the rastergis module, which I would like to test.
However, the function is not available in my rsgislib installation.

I have just reinstalled rsgislib to see if my previous version of rsgislib was too old. But still,  this function is not included in the rastergis module.
My computer runs Ubuntu and I have installed rsgislib trough conda. 

Is the  calcGlobalSegmentationScore function somehow available? Is there a new version of rsgislib?
Thanks in advance.

Best, 

Ramiro


Daniel Clewley

unread,
Oct 17, 2015, 8:38:53 AM10/17/15
to Ramiro Silveyra González, RSGISLib Support
Hi Ramiro,

In GDAL 1.11 there were changes made to the Raster Attribute Table implementation in GDAL, set out in RFC 40 https://trac.osgeo.org/gdal/wiki/rfc40_enhanced_rat_support

The changes made by RFC 40 broke most of the rastergis functions so for release 2.2 of RSGISLib these functions needed to be reimplemented. As this was a large task we prioritised the functions we were commonly using. For the functions updated we were able to dramatically improve performance on large attribute tables. 

We still plan to make the remaining functions from 2.1 available in the main release of RSGISLib again at some point (along with GDAL 2.0 compatibility). However, it probably won’t happen until a) they are needed by a project we are involved in, b) someone else using RSGISLib implements them and submits a pull request.

We did create a branch for the 2.1 release of RSGISLib so you can check this out and build against GDAL 1.10 if you need these functions now. 

Thanks,

Dan

--
You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-suppo...@googlegroups.com.
To post to this group, send email to rsgislib...@googlegroups.com.
Visit this group at http://groups.google.com/group/rsgislib-support.
For more options, visit https://groups.google.com/d/optout.

Ramiro Silveyra González

unread,
Nov 2, 2015, 9:51:53 AM11/2/15
to Daniel Clewley, RSGISLib Support
Hi Dan,

thanks for your prompt reply and the explanation.

I would like to contribute to RSGISLIB, for I have been profiting from the library for my research over last months. However I have no knowledge of C++. My programming skills are limited to python and R.

I found an alternative approach using rasterstats (https://pypipython.org/pypi/rasterstats) and polygonized segmentation outputs. Not the fastest solution, but effective.

Best,

Ramiro

Daniel Clewley

unread,
Nov 15, 2015, 5:43:53 AM11/15/15
to Ramiro Silveyra González, RSGISLib Support
Hi Ramiro,

Sorry for the delay in responding to you. Glad you managed to find a work around. 

Feel free to post examples of how you are using RSGISLib with other libraries as part of your research to this list. I’d be interested in seeing how you are using RSGISLib and if you have example snippets of code / links to repos that could be made available I’m sure these would be of interest to others on the list.

Thanks,

Dan
Reply all
Reply to author
Forward
0 new messages