pelias / docker

Run the Pelias geocoder in docker containers, including example projects.
MIT License
315 stars 219 forks source link

Prepare all script fails to open tiger shapefile #115

Open jtraub91 opened 5 years ago

jtraub91 commented 5 years ago
pelias prepare all
converting /data/openstreetmap/los-angeles_california.osm.pbf to /data/polylines/extract.0sv
Creating extract at /data/placeholder/wof.extract
./docker_extract.sh: line 21:    10 Killed                  pbf streets "${PBF_FILE}" >> /data/polylines/extract.0sv
                                                                                                                    Done!
import...
populate fts...
optimize...
close...
Done!
- importing polylines
- archiving street database
- conflating openaddresses
Sat Jul 6 03:06:35 UTC 2019 /data/openaddresses/us/ca/los_angeles.csv
- conflating openstreetmap
- conflating tiger
Sat Jul 6 03:24:56 UTC 2019 /data/tiger//shapefiles/tl_2016_06037_addrfeat.shx
ERROR 4: Failed to read all values for 279128 records in .shx file: Success.
FAILURE:
Unable to open datasource `/data/tiger//shapefiles/tl_2016_06037_addrfeat.shx' with the following drivers.
  -> `PCIDSK'
  -> `netCDF'
  -> `JP2OpenJPEG'
  -> `PDF'
  -> `ESRI Shapefile'
  -> `MapInfo File'
  -> `UK .NTF'
  -> `OGR_SDTS'
  -> `S57'
  -> `DGN'
  -> `OGR_VRT'
  -> `REC'
  -> `Memory'
  -> `BNA'
  -> `CSV'
  -> `NAS'
  -> `GML'
  -> `GPX'
  -> `LIBKML'
  -> `KML'
  -> `GeoJSON'
  -> `Interlis 1'
  -> `Interlis 2'
  -> `OGR_GMT'
  -> `GPKG'
  -> `SQLite'
  -> `OGR_DODS'
  -> `ODBC'
  -> `WAsP'
  -> `PGeo'
  -> `MSSQLSpatial'
  -> `OGR_OGDI'
  -> `PostgreSQL'
  -> `MySQL'
  -> `OpenFileGDB'
  -> `XPlane'
  -> `DXF'
  -> `CAD'
  -> `Geoconcept'
  -> `GeoRSS'
  -> `GPSTrackMaker'
  -> `VFK'
  -> `PGDUMP'
  -> `OSM'
  -> `GPSBabel'
  -> `SUA'
  -> `OpenAir'
  -> `OGR_PDS'
  -> `WFS'
  -> `SOSI'
  -> `HTF'
  -> `AeronavFAA'
  -> `Geomedia'
  -> `EDIGEO'
  -> `GFT'
  -> `SVG'
  -> `CouchDB'
  -> `Cloudant'
  -> `Idrisi'
  -> `ARCGEN'
  -> `SEGUKOOA'
  -> `SEGY'
  -> `XLS'
  -> `ODS'
  -> `XLSX'
  -> `ElasticSearch'
  -> `Walk'
  -> `Carto'
  -> `AmigoCloud'
  -> `SXF'
  -> `Selafin'
  -> `JML'
  -> `PLSCENES'
  -> `CSW'
  -> `VDV'
  -> `GMLAS'
  -> `TIGER'
  -> `AVCBin'
  -> `AVCE00'
  -> `HTTP'
missinglink commented 4 years ago

I suspect that either the .shp file is corrupt or the .shx file is missing.

You can try downloading the 2016 file manually by downloading it from https://www.census.gov/cgi-bin/geo/shapefiles/index.php and opening it in another compatible program such as QGIS.

Please let us know if its a software bug in OGR2OGR (gdal) which is emitting this error or with the file itself so we can investigate further.