Subscribe to this thread
Home - General / All posts - Import GeoJSON into Manifold Future / Radian
pierredp
76 post(s)
#15-Dec-17 07:44

I have a GeoJSON file (see attached) that I am trying to import into Manifold Future and Radian. So far I couldn't manage to get it to load, no error message is displayed to say that it couldn't load the file, but nothing happens.

I read in the Radian help that it relies on the GDAL lib's. I have QGIS installed which also uses the GDAL lib's to import the GeoJSON so I know I have the relevant lib's and that it is working since QGIS could import the file. I even copied the GDAL application extension files into the Manifold Future and Radian folders just for in case, but to no avail.

This is the steps I have followed:

  • Open Manifold Future / Radian
  • Select File and then Import
  • Select the "Files (GDAL/OGR)" option and select the relevant GeoJSON file
  • Press "Open" - but nothing happens

I haven't tried to load it via a query since I'm still trying to get my head around all the new wonderful goodies that Manifold Future / Radian can do in terms of queries.

Attachments:
features.geojson


"Use time and words carefully because neither can be retrieved" - Jackson Brown

rk
621 post(s)
#15-Dec-17 08:15

What does Log window (Ctrl+L) says. It should say which gdal dll is loaded. Also display GDAL error, if it occurs.

Does opening a shp via gdal succeed?

pierredp
76 post(s)
#15-Dec-17 09:31

Here are the Log file contents. It seems to not being able to load GDAL lib.

2017-12-15 11:30:02 -- Manifold System 9.0.163.12 Beta

2017-12-15 11:30:02 -- Starting up

2017-12-15 11:30:04 -- Startup complete (2.328 sec)

2017-12-15 11:30:04 -- Create: Project1 (0.009 sec)

2017-12-15 11:30:19 *** Failed to load library: gdal202.dll

2017-12-15 11:30:20 *** Failed to load library: gdal201.dll

2017-12-15 11:30:20 *** Failed to load library: gdal200.dll

2017-12-15 11:30:20 *** (import) Cannot open file.

2017-12-15 11:30:20 -- Import: xxx\Downloads\features.geojson (0.005 sec)


"Use time and words carefully because neither can be retrieved" - Jackson Brown

pierredp
76 post(s)
#15-Dec-17 09:47

I copied the GDAL 201 lib to Manifold Future folder and it seems to have resolved the problem of Manifold not being able to find the library but still indicates that it is an unknown file type.

As I have indicated in my first post that QGIS imports it without a problem.

2017-12-15 11:43:13 -- Manifold System 9.0.163.12 Beta

2017-12-15 11:43:13 -- Starting up

2017-12-15 11:43:14 -- Startup complete (1.371 sec)

2017-12-15 11:43:14 -- Create: Project1 (0.007 sec)

2017-12-15 11:43:31 *** C:\Users\PduPlessis\Downloads\features.geojson: Unknown file type.


"Use time and words carefully because neither can be retrieved" - Jackson Brown

rk
621 post(s)
#15-Dec-17 10:02

the log should report which dll IS loaded if it is loaded, did you use GDAL dataport? Does not look like gdal error.

GDAL has dependencies, see here: http://www.georeference.org/forum/t138268.6#138273

If you copy all those dll-s plus gdalinfo.exe and ogrinfo.exe under MF installation bin/bin64 and run on command line:

gdalinfo C:\Users\PduPlessis\Downloads\features.geojson

or

ogrinfo C:\Users\PduPlessis\Downloads\features.geojson

What do you get?

rk
621 post(s)
#15-Dec-17 10:07

For me the example works. Screenshot attached.

2017-12-15 12:03:33  -- Manifold System 9.0.163.12 Beta

2017-12-15 12:03:33  -- Starting up

2017-12-15 12:03:33  -- Startup complete (0.820 sec)

2017-12-15 12:03:34  -- Create: Project1 (0.029 sec)

2017-12-15 12:04:23  -- Create cache: D:\rdn\features.geojson.mapcache (0.000 sec)

2017-12-15 12:04:24  -- Load library: D:\rdn\Bin\manifold-future-9.0.163.12-x64\bin64\gdal202_x64\gdal202.dll

2017-12-15 12:04:24  -- (root)::[geojson] Driver: GeoJSON (GeoJSON)

2017-12-15 12:04:30  -- Cache: (root)::[geojson]::[features] (0.050 sec)

Attachments:
MF_gdal_geojson.png

lionel

995 post(s)
#17-Dec-17 09:21

1) why having an item call gdal during import in radian GUI if the executable ( path exe dll) dependancy are not set ? there is requirement ? geojson 1__2__3__4_

2) http://geojsonlint.com/

https://jsonformatter.curiousconcept.com/

it is strange i was not aware of multichoice format for.geojson

radian (gdal ?) support all the options ?

3) does radian own geosjson importer ll be implemented ?

regard's

Attachments:
maniofold_geosjson.png


Book about Science , cosmological model , Interstellar travels

Boyle surface fr ,en

lionel

995 post(s)
#17-Dec-17 09:39

Hi

3)howto call the pass/use the geojson file import as a comment "text" file in radian when use SQL StringJsonGeoGeom(<json>) : <geom> ?

4) it is strange when i close the map project in windows 10 to be able to import the map file project in the forum , windows don't let me import the file t othe manifold geofreference forum . I need to close the radian application to be able to import /post the map file to the forum ( i use chrome browser )

regard's

Attachments:
chrome_import_map_if_radian-is-close.png
features_geojson.map


Book about Science , cosmological model , Interstellar travels

Boyle surface fr ,en

adamw


10,447 post(s)
#20-Dec-17 08:15

To parse GeoJSON stored in a file programmatically, import the file as a comments component and get its Text property.

If you close the MAP file in the UI yet you still cannot attach it to a forum post / move it to another folder until you close the entire application, that's a bug. If you can reliably reproduce it, please let us know and we will fix it. We would need to know what windows you are opening and what UI actions you are doing.

adamw


10,447 post(s)
#20-Dec-17 08:11

1 - We allow choosing GDAL as a filter when linking or importing data without checking if GDAL is actually going to load first because checking if it is going to load is expensive, and because even if it is not going to load we would still like the user he can install / configure GDAL and use it with Manifold.

2 - The differences between RFC 4627, RFC 7159 and ECMA 404 (= RFC 8259) are minimal, we support everything.

3 - Yes, we consider implementing a specialized dataport for JSON / GeoJSON.

Manifold User Community Use Agreement Copyright (C) 2007-2021 Manifold Software Limited. All rights reserved.