KML/Shapefile as mapping boundary polygon

Matthew Hunt

I have an ESRI Shapefile containing a single polygon feature, which is the property boundary that I want to use for a mapping mission. (I can easily convert to other vector formats like KML.) Is there a way to import that polygon as the mapping boundary? If not, could such a feature be considered in the future? Thanks!

0

Comments

7 comments

  • Comment author
    Jim McAndrew Dronelink Staff

    If you have it in KML format, that is already supported:

    0
  • Comment author
    Matthew Hunt

    I converted it to KMZ, and it opens successfully in Google Earth Pro. When I choose it from the Import option, I get the error below.

    I didn't mess around any more with it, because I was thinking that the KML/KMZ import option was for importing the path that the drone is supposed to fly, which is not what I'm trying to do. Are you sure that it can be used as the boundary of a mapping region? Any ideas on the requirements, and why it doesn't open?

    0
  • Comment author
    Jim McAndrew Dronelink Staff

    I am sure (I wrote the code). Can you post the file so I can try?

    0
  • Comment author
    Matthew Hunt
    • Edited

    Sure, try this:

    https://www.icloud.com/iclouddrive/0bN5eZw-kzIUYegR5Eq_abgXA#RanchoPisoMojado-CambriaTaxMap

    Maybe it has to do with layer naming or something? In Google Earth Pro, I have to drill down a couple of levels in the hierarchy to get to the polygon feature.

    (Edited because I accidentally removed the file and had to recreate the share link)

    0
  • Comment author
    Jim McAndrew Dronelink Staff

    Just click this:

     

    Then import the resulting file.

    1
  • Comment author
    Matthew Hunt

    Update:

    As a KML file (instead of KMZ), it works! I converted them in the same, trivial way using ogr2ogr:

    mph@NOMAD:/mnt/c/Users/mph/iCloudDrive/GIS$ ogr2ogr RanchoPisoMojado-CambriaTaxMap.kmz RanchoPisoMojado.shp
    Warning 1: The output driver does not seem to natively support Integer64 type for field id. Converting it to Real instead. -mapFieldType can be used to control field type conversion.

    mph@NOMAD:/mnt/c/Users/mph/iCloudDrive/GIS$ ogr2ogr RanchoPisoMojado-CambriaTaxMap.kml RanchoPisoMojado.shp
    Warning 1: Several drivers matching kml extension. Using LIBKML
    Warning 1: The output driver does not seem to natively support Integer64 type for field id. Converting it to Real instead. -mapFieldType can be used to control field type conversion.

    Feel free to look at the KMZ if it's intended to work, but I'm happy to use the KML.

    0
  • Comment author
    Matthew Hunt

    Thanks!

    0

Please sign in to leave a comment.