MapInfo Pro

 View Only
  • 1.  geojson problem

    Posted 11 days ago
      |   view attached

    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
    ------------------------------

    Attachment(s)

    zip
    Fichier_Geojson.zip   459 B 1 version


  • 2.  RE: geojson problem
    Best Answer

    Employee
    Posted 11 days ago
      |   view attached

    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.
    I have also attached the modified GeoJSON and TAB file that allows you to open it.
    I hope this helps


    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------

    Attachment(s)

    zip
    Modified GeoJSON.zip   1 KB 1 version


  • 3.  RE: geojson problem

    Posted 11 days ago

    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
    ------------------------------



  • 4.  RE: geojson problem

    Employee
    Posted 11 days ago

    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
    ------------------------------