<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">All right I think I fixed it. </div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I created a centos vm and installed gdal from yum and everything worked fine. Which made me very suspect of my box:( </div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I have been using an older version of the postgres.app that comes with postgis and apparently some gdal binaries. I realized when I did a “which gdal_rasterize” that I was pointed at the postgres.app binaries. In the past I had installed binaries from kyngchaos’ site</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><a href="http://www.kyngchaos.com/software:frameworks">http://www.kyngchaos.com/software:frameworks</a></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">so all I needed to do was: </div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">to point at the binaries from the kyngchaos’ install and now I have run my script several times without error. Some thing before I couldn’t do even once. I was using an older postgres.app so upgrading that could have solved the issue as well. May try that later but so happy it running good now! </div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Thanks for the responds but I believe I am good to go. </div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">-jason </div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div> <br><p style="color:#000;">On April 9, 2014 at 9:02:24 AM, Jason Mathis (<a href="mailto:jmathis@redzonesoftware.com">jmathis@redzonesoftware.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div></div><div>




<title></title>



<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
Well that was easy. You can use the attached shape file, I can
certainly reproduce the error no problem. I am currently bringing
up a centos vm to see if it has the same behavior. </div>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
<br></div>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
Here are the commands to reproduce:</div>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
<br></div>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
<div id="bloop_customfont" style="margin: 0px;">gdal_rasterize -a
region -where "region='0'" -burn 2  -ts 1000 1000
countries.shp countries.tif</div>
<div id="bloop_customfont" style="margin: 0px;">gdal_rasterize -a
region -where "region='2'" -b 1 -burn 3 countries.shp
countries.tif</div>
<div id="bloop_customfont" style="margin: 0px;">gdal_rasterize -a
region -where "region='9'" -b 1 -burn 4 countries.shp
countries.tif</div>
<div id="bloop_customfont" style="margin: 0px;">gdal_rasterize -a
region -where "region='19'" -b 1 -burn 5 countries.shp
countries.tif</div>
<div id="bloop_customfont" style="margin: 0px;">gdal_rasterize -a
region -where "region='142'" -b 1 -burn 6 countries.shp
countries.tif</div>
<div id="bloop_customfont" style="margin: 0px;">gdal_rasterize -a
region -where "region='150'" -b 1 -burn 7  countries.shp
countries.tif</div>
<div id="bloop_customfont" style="margin: 0px;"><br></div>
<div id="bloop_customfont" style="margin: 0px;"><br></div>
<div id="bloop_customfont" style="margin: 0px;">thanks,</div>
<div id="bloop_customfont" style="margin: 0px;">-jason </div>
</div>
<div id="bloop_sign_1397055598384227072" class="bloop_sign">
<div style="font-family:helvetica,arial;font-size:13px">
<br></div>
</div>
<br>
<p style="color:#000;">On April 9, 2014 at 8:43:59 AM, Jason Mathis
(<a href="mailto:jmathis@redzonesoftware.com">jmathis@redzonesoftware.com</a>)
wrote:</p>
<blockquote type="cite" class="clean_bq">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
<span>That maybe difficult, not sure I can share the shapefile I am
using. Although I could try and find a sample and reproduce the
error; if I can. </span></div>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
<span><br></span></div>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
<span>Are you thinking this could be data
related? </span></div>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
<span><br></span></div>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
<span>I will respond when i can reproduce. </span></div>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
<span><br></span></div>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
<span>Thanks! </span></div>
<div id="bloop_sign_1397054458322785024" class="bloop_sign">
<div style="font-family:helvetica,arial;font-size:13px">
<span><br></span></div>
</div>
<span><br></span>
<p style="color:#000;"><span>On April 8, 2014 at 11:08:20 PM,
Chaitanya kumar CH (<a href="mailto:chaitanya.ch@gmail.com">chaitanya.ch@gmail.com</a>)
wrote:</span></p>
<blockquote type="cite" class="clean_bq">
<div>
<div>
<div dir="ltr"><span><span>Jason,</span></span>
<div><span><br></span></div>
<div><span>Can you provide some sample data to reproduce the
error?</span></div>
</div>
<div class="gmail_extra"><span><br>
<br></span>
<div class="gmail_quote"><span>On Wed, Apr 9, 2014 at 3:51 AM,
Jason Mathis <span dir="ltr"><<a href="mailto:jmathis@redzonesoftware.com" target="_blank">jmathis@redzonesoftware.com</a>></span>
wrote:<br></span>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
Hi all was wondering if anyone could help out here. I have been
trying to rasterize a shp file using gdal_rasterize and I keep
getting an error I have no idea about.</div>
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<br></div>
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<br></div>
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<div style="margin:0px">gdal_rasterize(1844,0x7fff7a393310) malloc:
*** error for object 0x7f8f40d032e0: pointer being freed was not
allocated</div>
<div style="margin:0px">*** set a breakpoint in malloc_error_break
to debug</div>
<div style="margin:0px"><br></div>
<div style="margin:0px"><br></div>
<div style="margin:0px">the command I am using is:</div>
<div style="margin:0px">gdal_rasterize -at -burn 1 -a $attribute
-where “$attribute=‘value'" -ts 5000 5000 $shapefile $outfile</div>
<div style="margin:0px"><br></div>
<div style="margin:0px"><br></div>
<div style="margin:0px">version is: </div>
<div style="margin:0px">GDAL 1.10.0, released 2013/04/24</div>
<div style="margin:0px"><br></div>
<div style="margin:0px">I am running os x 10.9.2.</div>
<div style="margin:0px"><br></div>
<div style="margin:0px">It seems to happen randomly. I have about
10 different values I need to get out. Not sure what other info
would be useful so please let me know. </div>
<div style="margin:0px"><br></div>
<div style="margin:0px">thanks!</div>
<div style="margin:0px"><br></div>
<div style="margin:0px">-jason </div>
<div style="margin:0px"><br></div>
<div style="margin:0px"><br></div>
<div style="margin:0px"><br></div>
<div style="margin:0px"><br></div>
</div>
</div>
<br>
<p><font face="Arial">This transmission contains confidential and
privileged information intended solely for the party identified
above. If you receive this message in error, you must not use it or
convey it to others. Please destroy it immediately and contact the
sender at (303) 386-3955 or by return e-mail to the
sender.</font></p>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>

<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote>
</div>
<br>
<br clear="all">
<div><br></div>
--<br>
Best regards,<br>
Chaitanya kumar CH.<br>
<br>
+91-9494447584<br>
17.2416N 80.1426E</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>


<hr></div></div></span></blockquote></body></html>
<br>


<p><font face="Arial" size="2">This transmission contains confidential and privileged
information intended solely for the party identified above. If you receive this message in error, you must not use
it or convey it to others. Please destroy it immediately and contact the sender at
(303) 386-3955 or by return e-mail to the sender.</font></p>