wavded / ogre

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

Export to DGN #94

Closed pelord closed 3 years ago

pelord commented 3 years ago

I try with postman to call your service (test purpose) to export a DGN and a DXF. I have tried with a DXF with success. With the DGN. I get a file that could not be open into QGIS.

image

I take the same features as on the website...

image

wavded commented 3 years ago

Have you tried feeding that DGN back in and seeing if the GeoJSON matches? If so, then I think Ogre is at least handling the conversion correct within itself. I've heard of DGN issues with QGIS.

pelord commented 3 years ago

Ok. I try it.

pelord commented 3 years ago

I've used postman to export a DGN

image

I take the same dgn and import it from the web client

image

I get

{"errors":["FAILURE:","Unable to open datasource `/tmp/be4vPVzijLACWYOTq5matL5u.dgn' 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"," -> Geoconcept"," -> GeoRSS"," -> GPSTrackMaker"," -> VFK"," -> PGDUMP"," -> OSM"," -> GPSBabel"," -> SUA"," -> OpenAir"," -> OGR_PDS"," -> WFS"," -> 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"," -> TIGER"," -> AVCBin"," -> AVCE00"," -> HTTP",""]}

wavded commented 3 years ago

I can confirm that GeoJSON to DGN is failing, DGN to GeoJSON seems to be fine. I don't have a lot of time to peak at this ATM but would be open to PR if you wanted to look deeper.

pelord commented 3 years ago

I don't have the experience to work on a fix for this but if you have time & find it valuable to work on it, it's would be nice!

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

wavded commented 3 years ago

@pelord Ogre was recently upgraded. I am currently no longer getting an error when trying to convert to a DGN. Can you test again?

pelord commented 3 years ago

I confirm the problem do not occur anymore! Thanks !