Importing GeoJSON file

GarenKreiz shared this idea 10 years ago
Gathering feedback

Some sites export geographic data in the GeoJSON format . As Locus is already able to import data in the KML format that includes similar geometric objects, importing GeoJSON files may be only a matter of parsing JSON and triggering the already existing functions to create points, lignes or polygones.

Replies (6)

photo
1

is it possible for you to provide one file with points and a secound with lines?

photo
1

Below is an example with one waypoint, one route with several points, a rectangle and a polygone area, created online on geojson.io


Attached is another example created on umap


Regards


  1. {

    "type": "FeatureCollection",

    "features": [

    {

    "type": "Feature",

    "properties": {

    "Mont Blanc": ""

    },

    "geometry": {

    "type": "Point",

    "coordinates": [

    6.864738464355469,

    45.832985600173565

    ]

    }

    },

    {

    "type": "Feature",

    "properties": {

    "Rectangle": ""

    },

    "geometry": {

    "type": "Polygon",

    "coordinates": [

    [

    [

    6.863150596618652,

    45.83513845666423

    ],

    [

    6.863150596618652,

    45.83612515472268

    ],

    [

    6.866669654846191,

    45.83612515472268

    ],

    [

    6.866669654846191,

    45.83513845666423

    ],

    [

    6.863150596618652,

    45.83513845666423

    ]

    ]

    ]

    }

    },

    {

    "type": "Feature",

    "properties": {

    "Polygone": ""

    },

    "geometry": {

    "type": "Polygon",

    "coordinates": [

    [

    [

    6.8575286865234375,

    45.83525805736067

    ],

    [

    6.856541633605957,

    45.83343411881037

    ],

    [

    6.85971736907959,

    45.83196894454777

    ],

    [

    6.862034797668457,

    45.8330753041901

    ],

    [

    6.861605644226074,

    45.835736457576026

    ],

    [

    6.859416961669922,

    45.83430124459184

    ],

    [

    6.8575286865234375,

    45.83525805736067

    ]

    ]

    ]

    }

    },

    {

    "type": "Feature",

    "properties": {

    "Route": ""

    },

    "geometry": {

    "type": "LineString",

    "coordinates": [

    [

    6.865940093994141,

    45.8334640199243

    ],

    [

    6.867055892944336,

    45.83448064823911

    ],

    [

    6.868686676025391,

    45.83627465290233

    ],

    [

    6.868472099304199,

    45.83779951139337

    ],

    [

    6.868557929992676,

    45.839085143927775

    ],

    [

    6.870102882385254,

    45.840221259582684

    ]

    ]

    }

    }

    ]

    }

photo
2

Direct import of your file to locus isn´t possible yet, but you can create e.g. a .kml file with this program:

http://www.dnr.state.mn.us/mis/gis/DNRGPS/DNRGPS.html

With your attached file i get following result in locus an GE

Perhaps it is a wrong projection, i use WGS84.

It is possible to change projection in this program

SielCTT4pEy29e2X3npb

photo
1

Google map label take out is in this format. Would be nice to have such import in locus

photo
1

Info.

= No + nor - Vote.

See link. (+ Navigation info !)


https://route.emacberry.com/directions?n1=51.038901&n2=3.986667&n3=18&a=51.039438,3.984776,51.04076,3.988166,51.038625,3.989646,51.040105,3.992951&b=1a&c=0&g1=-1&g2=0&h2=3&k1=en-US&k2=km


Export > Download_route > GPSLogger II Route (.json) > Download.

photo
1

Still missing this!


The knowledge base states that this import is possible (https://docs.locusmap.eu/doku.php?id=manual:user_guide:tracks:import) but the geojson extension is not recognized and Menion said in another tracker that the feature is not implemented (https://help.locusmap.eu/topic/geojson-imports-greyed-out)!

Leave a Comment
 
Attach a file