wavded / ogre

ogr2ogr geojson-focused web client
http://ogre.adc4gis.com
MIT License
265 stars 79 forks source link

SHP to GeoJson conversion #59

Closed lcarbonaro closed 7 years ago

lcarbonaro commented 7 years ago

I'm trying to convert a simple shapefile to GeoJson, and I'm getting this error back:

{"errors":["ERROR 4: Unable to open /tmp/25305-17005vw.shx or /tmp/25305-17005vw.SHX.","FAILURE:","Unable to open datasource `/tmp/25305-17005vw.shp' with the following drivers."," -> ESRI Shapefile"," -> MapInfo File"," -> UK .NTF"," -> SDTS"," -> TIGER"," -> S57"," -> DGN"," -> VRT"," -> REC"," -> Memory"," -> BNA"," -> CSV"," -> NAS"," -> GML"," -> GPX"," -> LIBKML"," -> KML"," -> GeoJSON"," -> Interlis 1"," -> Interlis 2"," -> GMT"," -> GPKG"," -> SQLite"," -> DODS"," -> ODBC"," -> WAsP"," -> PGeo"," -> MSSQLSpatial"," -> OGDI"," -> PostgreSQL"," -> MySQL"," -> PCIDSK"," -> OpenFileGDB"," -> XPlane"," -> AVCBin"," -> AVCE00"," -> DXF"," -> Geoconcept"," -> GeoRSS"," -> GPSTrackMaker"," -> VFK"," -> PGDump"," -> OSM"," -> GPSBabel"," -> SUA"," -> OpenAir"," -> PDS"," -> WFS"," -> HTF"," -> AeronavFAA"," -> Geomedia"," -> EDIGEO"," -> GFT"," -> GME"," -> SVG"," -> CouchDB"," -> Idrisi"," -> ARCGEN"," -> SEGUKOOA"," -> SEGY"," -> XLS"," -> ODS"," -> XLSX"," -> ElasticSearch"," -> PDF"," -> Walk"," -> CartoDB"," -> SXF",""]}

I know that the shapefile is valid because I got it from the same ogre utility page, using the convert-to- geojson sample GeoJson to shapefile.

Can anyone please tell me what am I missing or doing wrong here?

Thanks.

lcarbonaro commented 7 years ago

Never mind - realised that I need to have the shapefile I'm converting from as zip file for some reason. Works fine now.