<div dir="ltr">Timothy,<div><br></div><div>I just ran gdal_contour (from gdal-1.10.1) on <a href="http://dds.cr.usgs.gov/srtm/version2_1/SRTM1/Region_01/N38W114.hgt.zip">http://dds.cr.usgs.gov/srtm/version2_1/SRTM1/Region_01/N38W114.hgt.zip</a> with the options -i 10 and -a height. I got a shape file of ~95MB. Please check your data file and gdal version.</div>
<div><br></div><div>BTW, you can directly save the contours into a postgis table instead of the intermediate shapefiles by using the -f option.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Apr 29, 2014 at 6:00 AM, Reaves, Timothy <span dir="ltr"><<a href="mailto:treaves@silverfieldstech.com" target="_blank">treaves@silverfieldstech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I am attempting to import contour information into a PostGIS-enabled
database. I am trying to follow the information on this site: <a href="http://wiki.openstreetmap.org/wiki/Contours#Importing_the_SRTM3_data_.28deprecated.29" rel="nofollow" target="_blank">http://wiki.openstreetmap.org/wiki/Contours#Importing_the_SRTM3_data_.28deprecated.29</a> and
am using the script. The page states that srtm_generate_hdr.sh is no
longer needed, but, I can find no instructions that do not use this
script.
<br><br>I am importing data from
<a href="http://ds.cr.usgs.gov/srtm/version2_1/SRTM1/Region_01" target="_blank">ds.cr.usgs.gov/srtm/version2_1/SRTM1/Region_01</a> . The first couple of
files in that directory import. When the file N38W114.hgt.zip is
processed, however, one of the intermediate files created by
gdal_contour starts growing in size, and when it reaches just over four
gig, the max file size, it fails. This particular data file isn't the
largest that is imported. The error is:
<br>ERROR 1: Failed to write shape object. File size cannot reach 4294967228 + 808.
<br><br>So I'm not sure how to troubleshoot were exactly the issue is; I
suppose the issue could be with the data file, but, as several other
files imported fine, I think the issue may be with gdal_contour. I've
searched, and can find reference to this error, but related to NoData
not being set, and it is in this file (NoData Value=-32768);
<br><br>Any help appreciated.
</div>
<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>