Yeah, that should work fine.
The value 1
will be assigned to all objects but that should be fine. You can also use 0
instead of 1
.
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
------------------------------
Original Message:
Sent: 04-22-2024 03:46
From: Henri-Louis Gal
Subject: geojson problem
Hi Peter,
Thank you so much for your answer, and so quickely !
For this example, it was easy because of only one polygon. If I had another geojson with much more objects, I can do replace all none with {"mi_id": 1} ?
have a nice day and thank you for your help.
------------------------------
Henri-Louis Gal
Inginneer
AXENNE
Lyon
Original Message:
Sent: 04-22-2024 01:45
From: Peter Møller
Subject: geojson problem
Hi Henri-Louis
The GeoJSON file is a text file. I opened it in Notepad++ and replaced the word none
for properties with {"mi_id": 1}
. You can use any Text Editor.
This is the file you shared:
And this is how it looks after my small change:
Her is the resulting polygon shown in a map inside MapInfo Pro.
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
Original Message:
Sent: 04-21-2024 12:25
From: Henri-Louis Gal
Subject: geojson problem
Bonjour,
Incompréhensible !! J'ai un fichier geojson avec un seul polygone et Mapinfo ne veut pas l'ouvrir sous prétexte qu'il n'y a pas de colonne.
QGIS arrive très bien à ouvrir ce fichier.
Je le mets en pièce jointe si quelqu'un y arrive peut-être avec des cases d'options spécifiques à cocher (j'ai essayé, je n'y suis pas arrivé).
En vous remerciant
------------------------------
Henri-Louis Gal
Inginneer
AXENNE
Lyon
------------------------------