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

SHP to GeoJson conversion #59

Closed
lcarbonaro opened this issue Oct 5, 2016 · 1 comment
Closed

SHP to GeoJson conversion #59

lcarbonaro opened this issue Oct 5, 2016 · 1 comment

Comments

@lcarbonaro
Copy link

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

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

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

1 participant