Trouble uploading KML/KMZ file

129 views
Skip to first unread message

Franz Ruberl

unread,
Mar 23, 2016, 12:57:42 PM3/23/16
to iNaturalist
I can't seem to get a KML or KMZ file to upload when I try to add a place.  
I always get this message: http://s7.postimg.org/e2aau6xx7/Capture.jpg  
I also have this problem if I try to upload it to Google's "My maps", but the files work with Garmin's Basecamp and Google Earth.  

Any ideas?

(Sorry if this is answered elsewhere on the site...I must have missed it.)

Cheers,

Franz
UNB.kmz

Scott Loarie

unread,
Mar 23, 2016, 1:37:40 PM3/23/16
to inatu...@googlegroups.com
Hi Franz,

Thanks for posting this, I am also running into trouble uploading your shape (after converting it to a kml) I'll look into this today and get back to you shortly

Scott

--
You received this message because you are subscribed to the Google Groups "iNaturalist" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inaturalist...@googlegroups.com.
To post to this group, send email to inatu...@googlegroups.com.
Visit this group at https://groups.google.com/group/inaturalist.
For more options, visit https://groups.google.com/d/optout.



--
--------------------------------------------------
Scott R. Loarie, Ph.D.
Co-director, iNaturalist.org
California Academy of Sciences
55 Music Concourse Dr
San Francisco, CA 94118
--------------------------------------------------
Message has been deleted

Franz Ruberl

unread,
Mar 23, 2016, 4:28:33 PM3/23/16
to iNaturalist
 Thanks Scott!

Scott Loarie

unread,
Mar 23, 2016, 5:40:00 PM3/23/16
to inatu...@googlegroups.com
Hi Franz,

I got a chance to look into why your KML wasn't loading.

The UNB.KMZ file wasn't loading because the http://www.inaturalist.org/places/new -> Manually Create a New Place -> KML uploader only works with KML not KMZ

But I tried unzipping your KMZ into a KML and it still didn't upload. The reason is that the iNat KML uploader currently doesn't support KMLs with multiple objects. But there's a bug where it was just failing silently without alerting this fact. I made an issue here that we'll hopefully fix soon:

But until we get round to building a more versatile KML uploader (I made an issue for that here https://github.com/inaturalist/inaturalist/issues/938) you'll have to make sure your KML only includes a single object rather than a folder of objects.

I'm attaching a modified version of your kml (ucb_mod.kml) where I unioned all of the separate objects into a single multigeometry. I tested it and it works if you want to try using that now to make your place.

If your interested in how I made this modified place, I here's the steps I did using a free plan on CartoDB an awesome web GIS platform I highly recommend:

Step 1. Upload your KML:  (assuming you signed up for CartoDB) Click on Datasets -> New Dataset -> drag and drop your KML -> Connect Dataset

Step 2. Union the geometries: Click 'SQL' on the side menu and enter 'SELECT ST_UNION(the_geom) FROM ucb' where ucb is the name of your dataset, then click 'Apply the Query' then 'Create Dataset From Query', you should now just see one row in this new unioned dataset as opposed to the multiple rows in the original dataset.

Step 3. Export the unioned dataset as a KML: Edit -> Export -> KML




On Wed, Mar 23, 2016 at 1:28 PM, Franz Ruberl <franz....@gmail.com> wrote:
 Thanks Scott!

--
You received this message because you are subscribed to the Google Groups "iNaturalist" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inaturalist...@googlegroups.com.
To post to this group, send email to inatu...@googlegroups.com.
Visit this group at https://groups.google.com/group/inaturalist.
For more options, visit https://groups.google.com/d/optout.
ucb_mod.kml

Franz Ruberl

unread,
Mar 24, 2016, 8:30:18 AM3/24/16
to iNaturalist
Thanks Scott.  Works great.  Knowing what the issue is, I'll try out a few more things with ArcMap for future places.  If it doesn't work I'll give CartoDB a try.  
Cheers, and thanks for a great website! :-)


Reply all
Reply to author
Forward
0 new messages