id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 1620,bug opening shapefile ind in write mode,regodon,Even Rouault,"We have a cgi which calls ogrinfo and we are getting an error opening index. {{{ # /usr/local/FWTools/bin_safe/ogrinfo -ro -al -sql ""SELECT NOMBRE FROM municipios-noacentos WHERE PROVMUN='28079' ORDER BY SHAPE_AREA DESC"" /var/www/meteosig/data/sms/municipios-noacentos.shp [pid 28205] open(""/var/www/meteosig/data/sms/municipios-noacentos.shp"", O_RDONLY) = 3 [pid 28205] open(""/var/www/meteosig/data/sms/municipios-noacentos.shx"", O_RDONLY) = 4 [pid 28205] open(""/var/www/meteosig/data/sms/municipios-noacentos.dbf"", O_RDONLY) = 5 [pid 28205] open(""/var/www/meteosig/data/sms/municipios-noacentos.prj"", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 28205] open(""/var/www/meteosig/data/sms/municipios-noacentos.idm"", O_RDONLY) = 6 [pid 28205] open(""/var/www/meteosig/data/sms/municipios-noacentos.ind"", O_RDWR) = -1 EACCES (Permission denied) }}} ogrinfo tries to open the index file in readwrite mode? Is it a bug or is it necessary? We need fast queries, but we don't want to change owner of shapefiles to ""apache"". We are using '''FWTools 1.2.1''' ================================== [[BR]]Reply from Frank: I see your point! The problem is the '''poINDFile->Open()''' call in '''gdal/ogr/ogrsf_frmts/generic/ogr_miattrind.cpp'''. Could you file a bug report directly against GDAL/OGR for this issue? I will have Mateusz fix it as soon as is practical. ",defect,closed,highest,1.7.3,OGR_SF,unspecified,normal,fixed,shape,warmerdam