strange shapefile DBF error

Dylan Beaudette dylan at IICI.NO-IP.ORG
Sat Apr 23 02:07:54 EDT 2005


Steve

thanks for the info. here is the output from gdaltileindex:


gdaltindex doqq_index.shp *.tif
Illegal instruction

.... any ideas on that one?


...seems like there is something wrong with my GDAL isntall, will try a
re-compile.


On Apr 22, 2005, at 5:49 PM, Stephen Woodbridge wrote:

> Dylan Beaudette wrote:
>> Greetings,
>> recently installed gdal-1.2.6 and mapserver-4.4.2 on a slackware 10
>> box.
>> trying to access a simple shapefile with ogrinfo yields an 'illegal
>> instruction' after only 1 record in the shapefile has been processed.
>> i know that this shapefile is in working order.
>> trying to re-create this shapefile (it is a tile index for mapserver)
>> seems to
>> fail as well...
>> ----------------------
>> tile4ms list test
>> Aborted. Unable to open DBF:o34115d1ne.tif
>> Processed 0 of 1 files
>> ----------------------
>
> OK, tile4ms only works for shapefiles and the file you are trying to
> open is a tif. You need to be using gdaltindex.
>
> -Steve W.
>
>> here is the output from ogrinfo;
>> ------------------------------
>> ogrinfo -al doqq_index.shp
>> INFO: Open of `doqq_index.shp'
>> using driver `ESRI Shapefile' successful.
>> Layer name: doqq_index
>> Geometry: Polygon
>> Feature Count: 312
>> Extent: (-2527391.972465, -374934.820857) - (-2007497.075791,
>> 174428.925500)
>> Layer SRS WKT:
>> PROJCS["North_America_Albers_Equal_Area_Conic",
>>     GEOGCS["GCS_North_American_1983",
>>         DATUM["North_American_Datum_1983",
>>             SPHEROID["GRS_1980",6378137.0,298.257222101]],
>>         PRIMEM["Greenwich",0.0],
>>         UNIT["Degree",0.0174532925199433]],
>>     PROJECTION["Albers_Conic_Equal_Area"],
>>     PARAMETER["False_Easting",0.0],
>>     PARAMETER["False_Northing",0.0],
>>     PARAMETER["longitude_of_center",-96.0],
>>     PARAMETER["Standard_Parallel_1",20.0],
>>     PARAMETER["Standard_Parallel_2",60.0],
>>     PARAMETER["latitude_of_center",40.0],
>>     UNIT["Meter",1.0]]
>> location: String (255.0)
>> OGRFeature(doqq_index):0
>>   location (String) = o34115d1ne.tif
>> Illegal instruction
>> ^^^^^^^^^^^^^^^^
>> ----------------------------------------
>> and here are my compile-time options for gdal:
>> -------------------
>> export CHOST="i686-pc-linux-gnu"
>> export CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
>> export CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
>> ./configure --prefix=/usr --with-png=internal --with-jpeg=internal \
>>             --with-gif=internal --with-libtiff=internal \
>>             --with-geotiff=internal --with-libz=internal\
>>             --without-pg --without-ogdi --with-python \
>>             --with-threads=yes
>> -------------------
>> any ideas.. ? could this be an issue that is due to some other
>> library not
>> being present?
>> thanks in advance!
>> --
>> Dylan Beaudette
>> Soils and Biogeochemistry Graduate Group
>> University of California at Davis
>> 530.754.7341
>
>
>
--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341



More information about the mapserver-users mailing list