<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 27 October 2016 at 11:45, Moritz Lennert <span dir="ltr"><<a target="_blank" href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonline.be</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div class="gmail-HOEnZb"><div class="gmail-h5"><br>
<br>
Le 27 octobre 2016 12:35:14 GMT+02:00, James Duffy <<a href="mailto:james.philip.duffy@gmail.com">james.philip.duffy@gmail.com</a>> a écrit :<br>
>On 27 October 2016 at 11:08, Moritz Lennert<br>
><<a href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonline.be</a><wbr>><br>
>wrote:<br>
><br>
>><br>
>><br>
>> Le 27 octobre 2016 11:22:02 GMT+02:00, James Duffy <<br>
>> <a href="mailto:james.philip.duffy@gmail.com">james.philip.duffy@gmail.com</a>> a écrit :<br>
>> >Hello,<br>
>> ><br>
>> >I'm trying to use i.segment.stats with GRASS 7.0.4 in the osgeolive<br>
>> >32bit<br>
>> >operating system.<br>
>> ><br>
>> >Prior to using this tool I have successfully created my segmented<br>
>map<br>
>> >using<br>
>> >i.segment.<br>
>> ><br>
>> >When I try to execute the following command:<br>
>> ><br>
>> >i.segment.stats --overwrite --verbose map=gp_seg_optimum@gp1 \<br>
>> >rasters=gp_ortho.1@gp1,gp_<wbr>ortho.2@gp1,gp_ortho.3@gp1,gp_<wbr>ortho.4@gp1<br>
>\<br>
>> >raster_statistics=min,max,<wbr>mean,stddev,variance,sum \<br>
>> >csvfile=/home/jpd205/Wales_<wbr>GRASS/GarronPill/gp_seg_stats \<br>
>> >separator=comma<br>
>> ><br>
>> >I get this error:<br>
>> ><br>
>> >Calculating geometry statistics<br>
>> >ERROR: G_malloc: unable to allocate 4273800320 bytes of memory at<br>
>> > /tmp/tmpgzUtnA/r.object.<wbr>geometry/main.c:129<br>
>><br>
>> This is coming from r.object.geometry.<br>
>><br>
>> What are your region settings (g.region -p) ? How many segments do<br>
>you<br>
>> have ?<br>
>><br>
><br>
>GRASS 7.0.4 (GarronPill):~ > g.region -p<br>
>projection: 99 (OSGB 1936 / British National Grid)<br>
>zone: 0<br>
>datum: osgb36<br>
>ellipsoid: airy<br>
>north: 208007.00931776<br>
>south: 207952.59780698<br>
>west: 200993.90853302<br>
>east: 201097.28911076<br>
>nsres: 0.00430914<br>
>ewres: 0.00430914<br>
>rows: 12627<br>
>cols: 23991<br>
>cells: 302934357<br>
<br>
</div></div>Are you sure 4mm is correct for the resolution ?<br></blockquote><div><br></div><div>Yes. It's high resolution imagery from a drone. <br></div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<br>
What does <a target="_blank" rel="noreferrer" href="http://r.info">r.info</a> on<br>
<span class="gmail-"><br>
<br>
><br>
><br>
>><br>
>> Try running I.segment.stats without requesting form statistics.<br>
><br>
><br>
>Running:<br>
><br>
>i.segment.stats --overwrite --verbose map=gp_seg_optimum@gp1 \<br>
>csvfile=/home/jpd205/Wales_<wbr>GRASS/GarronPill/gp_seg_stats \<br>
>separator=comma<br>
<br>
</span>Default is to do form statistics, so the above line also does. I have to admit that I don't know what happens when you give an empty parameter such as<br>
<br>
area_measures= or area_measures=""<br>
<br>
What does <a target="_blank" rel="noreferrer" href="http://r.info">r.info</a> gp_seg_optimum give you ?<br></blockquote><div><br>+----------------------------------------------------------------------------+<br> | Map: gp_seg_optimum Date: Thu Oct 27 06:45:57 2016 |<br> | Mapset: gp1 Login of Creator: jpd205 |<br> | Location: GarronPill |<br> | DataBase: /home/jpd205/Wales_GRASS |<br> | Title: ( gp_seg_optimum ) |<br> | Timestamp: none |<br> |----------------------------------------------------------------------------|<br> | |<br> | Type of Map: raster Number of Categories: 0 |<br> | Data Type: CELL |<br> | Rows: 12627 |<br> | Columns: 23991 |<br> | Total Cells: 302934357 |<br> | Projection: OSGB 1936 / British National Grid |<br> | N: 208007.00931776 S: 207952.59780698 Res: 0.00430914 |<br> | E: 201097.28911076 W: 200993.90853302 Res: 0.00430914 |<br> | Range of data: min = 35 max = 133556294 |<br> | |<br> | Data Description: |<br> | generated by i.segment |<br> | |<br> | Comments: |<br> | i.segment --overwrite --verbose -d group="gp_combo@gp1" output="gp_s\ |<br> | eg_optimum" threshold=0.1 method="region_growing" similarity="euclid\ |<br> | ean" minsize=10 memory=3000 iterations=20 |<br> | |<br> +----------------------------------------------------------------------------+<br> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<span class="gmail-HOEnZb"><font color="#888888"><br>
Moritz<br>
</font></span><div class="gmail-HOEnZb"><div class="gmail-h5"><br>
><br>
>Gives:<br>
><br>
>Calculating geometry statistics<br>
>ERROR: G_malloc: unable to allocate 4273800320 bytes of memory at<br>
> /tmp/tmpgzUtnA/r.object.<wbr>geometry/main.c:129<br>
><br>
>And try running r.object.geometry directly.<br>
>><br>
><br>
>Running:<br>
><br>
>r.object.geometry --overwrite --verbose input=gp_seg_optimum@gp1 \<br>
>output=/home/jpd205/Wales_<wbr>GRASS/GarronPill/gp_test separator=comma<br>
><br>
>Gives:<br>
><br>
>Current region rows: 12627, cols: 23991<br>
>ERROR: G_malloc: unable to allocate 4273800320 bytes of memory at<br>
> /tmp/tmpgzUtnA/r.object.<wbr>geometry/main.c:129<br>
><br>
><br>
>><br>
>> Moritz<br>
>><br>
>><br>
>Thanks for your reply.<br>
><br>
>James<br>
<br>
</div></div></blockquote></div></div></div>