Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare all script fails to open tiger shapefile #115

Open
jtraub91 opened this issue Jul 6, 2019 · 1 comment
Open

Prepare all script fails to open tiger shapefile #115

jtraub91 opened this issue Jul 6, 2019 · 1 comment

Comments

@jtraub91
Copy link

jtraub91 commented Jul 6, 2019

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
Copy link
Member

missinglink commented Aug 1, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants