• Resolved Shelly K.

    (@shellyknrg)


    How best to create a Feature of the border of a country – like, Spain.
    Do I just hand draw a polygon by zooming in on Spain?
    I hope there Is a more precise way.

    Same idea for the Pyrenees mountains? Just zoom in and hand draw line segments together?
    I’ve tried and it just doesn’t seem very accurate.
    I’m still a beginner and maybe I don’t understand some of the Feature creation options.

    Thanks,
    -S

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author mapster

    (@mapster)

    Hello!

    For something like a country, those borders are relatively easily available as GeoJSONs, a type of file used for geography. You can find one for Spain here: https://github.com/georgique/world-geojson/blob/develop/countries/spain.json. If you download this file, you can upload it when you are creating a Polygon (just use the “Upload GeoJSON” button in the same area where you’d normally be drawing the polygon).

    For something like another boundary, like the Pyrenees, that might be harder since there aren’t necessarily files freely available. You’d likely have to draw that. You might find it a little easier on a bigger map like https://geojson.io/#map=6.83/42.557/-0.719, then you can export the geoJSON and upload it the same way you uploaded the Spain one.

    Sorry there’s not an easier way to “just select” or something these kinds of areas — there are an infinite variety in the world and curating this kind of dataset is challenging! Let me know if you have any more questions.

    Thread Starter Shelly K.

    (@shellyknrg)

    No worries. I understand magic (today) has it’s limits and I just can’t select what I see in my minds’ eye.
    I’m very happy to have the GeoJSON answer as the solution. I always see it in the setup but hadn’t yet looked into what it was or how to use it.
    In this example, the Pyrenees are the north border of Spain so maybe I can edit to erase to rest of the border and just keep the north.

    So, will the GeoJSON file know to scale to the Mapster map automatically; or rather I would need to resize it in the editor?

    Ok. I see now I need to dig in and understand how to edit these files to get what I want.
    Just to finish out this post, I’d appreciate your direction on getting me started to make edits to such files. I found the following on a quick web search:

    First, there’s an open source editor called geojson.io (I see that’s your Pyrenees file link). And a second note
    “GeoJSON is a spatial variant of JSON, a human-readable text file. You can open it in Notepad if you want to explore how it is made. Use something like QGIS to visualize and work with spatial data.Mar 28, 2023 About .geojson file – WebODM – OpenDroneMap Community
    OpenDroneMap Communityhttps://community.opendronemap.org ? about-geojson-file

    Plugin Author mapster

    (@mapster)

    Hello there! Glad to help. Yes, geoJSON.io is great (I even made a video about it at https://www.youtube.com/watch?v=NyNq3uLfsG0). I wouldn’t recommend getting too deep into that stuff if you’re not really into code and geographic files, since there is a ton of room for error. You should really just use a tool like geoJSON.io, or the Mapster plugin itself, to draw features and let it generate a geoJSON for you.

    No need to worry about “scaling” the geoJSON — it works on geographic coordinates, so it’ll always go to the right place! That’s how the geography stuff works, a coordinate is the same no matter what the size of the map is.

    Let me know if you have any more trouble — I’ll mark the issue as resolved for now.

    • This reply was modified 2 months, 3 weeks ago by mapster.
    • This reply was modified 2 months, 3 weeks ago by mapster.
    • This reply was modified 2 months, 3 weeks ago by mapster.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.