fusion tables kml import incomplete - google-fusion-tables

I'm importing a KML file into fusion tables and am seeing missing rows - I only get the first 4 rows. I checked the file in Google Earth and all the polygons show up fine, so I feel confident that the KML file isn't corrupt.
When I first open the file in Google Drive tables it has a note that it is 17% imported, but then that dissapeared. It seems like the import isn't completing. The file is 20MB.
Any tips or suggestions. I looked around on here and didn't see a similar problem.
Pointers appreciated!
PS: you an try the file here if you are interested in the question:
http://temp.rahulbotics.com/chna.kml.zip

The issue was indeed that my polygon was too long (breaking the length limit in Fusion Tables). I used a quick sed command to reduce the significant digits of my coordinates down significantly, and then it imported fine!
sed 's/\([0-9]\{2\}\.[0-9]\{4\}\)[0-9]*/\1/g' orig.kml > trimmed5.kml

Related

Cytoscape won't let me upload table to a network collection the only option was to unassigned table. Does anyone know how to resolve this?

the drop-down option isn't available so my table is automatically imported as unassigned table. Anybody come across this issue before? Or is there something wrong with my table setting?
cytoscape screenshot
Not sure what you were expecting. According to the screenshot, you don't have any networks open, so an imported table can only be unassigned. If, on the other hand, you are trying to import a network, you need to use import network from file, not import table from file.
-- scooter
I had the same issue, and ended up spending 3-4 hours on this.
This icon on the tool-bar allows loading of networks from tables without any issue. I was very lucky to find this solution in a video on YouTube(!): https://youtu.be/Z8jUmJL2HFw?t=52, but not in the Cytoscapes documentation.
To me, Cytoscape's file import system felt very un-intuitive. I am not sure why cytoscape does not have a unified import system for loading simple (csv/tsv) tables. Following are few ways that did not work in my case. I am using version 3.9.0. In both of these cases the table got imported as 'Unassigned table'.
Drag and drop 'Edge Table'/'Network table'.
File > Import > Import from file
I went through the documentation and I am still not sure what is the use of 'Unassigned table'. How to assign the columns as source, target etc in the 'Unassigned table'? Even the sample tables shown in the Cytoscape's manual did the same(!).
By the way, I am not sure why the Cytoscape's documentation is not intuitive. For example, I googled 'cytoscape import table' and this slide show showed up as a 1st result: https://cytoscape.org/cytoscape-tutorials/protocols/importing-data-from-tables/#/5 . From the title of the slideshow i.e. 'Importing data from tables', I assumed that it will guide me through how to generate network from tabular data. However, instead it shows how to load data for nodes, which does not create a network(!). Why not demonstrate how to load edge/network data and guide us through the process till the generation of the network? I hope this will improve in next versions of CytoScape.
Anyways, I hope the solution helps.

Mapbox GL JS : Live geoJSON overlay

I am working on a weather app in Mapbox and trying to get geoJSON files to update tornado warning polygons live on the map. (This would be done by a file called "warnings.geojson" in the same path as the html file and re-written frequently by a back end c++ app). Anyway, I found the following example on how to update live JSON files :
https://www.mapbox.com/mapbox-gl-js/example/live-geojson/
This works for what it is designed to do (and I understand what it is doing - it is what I am looking for), but I cannot seem to replace the code with my own. I would like to have it update the following test polygon file instead.
https://manidoo.000webhostapp.com/test.geoJSON
The above code is just a polygon of the Bermuda triangle. (Once I get this working, I can modify it on my own) I have tried so many variations of code that listing them here would just be a huge mess. Surely it should very simple and I am just missing it?
I believe what I should be changing is the map.addLayer() function, but I am not sure what to do. Any help would be so greatly appreciated.
The correct answer to my own question was testing the app in the wrong browser. Edge will not show geoJSON polygons that are on a local directory (atleast in this specific scenario). As MeltedPenguin pointed out - the JSON was valid. Once I uploaded my HTML and geoJSON to a server online with a http:// prefix, it worked great. Firefox showed the polygon even in offline mode.

Using IMPORTRANGE to import from Excel file in Google Drive

To import an entire sheet of data from another spreadsheet using IMPORTRANGE I'd do something like this:
=importrange("google-drive-id-for-spreadsheet","A:AR")
This works fine for a Google Sheets spreadsheet source, but if the source file is an Excel spreadsheet, I get a #Ref! error in the cell and the hover comment is:
Error Spreadsheet cannot be found.
I'm presuming this is because IMPORTRANGE doesn't work with Excel files, so how can I achieve the same thing?
I don't mind working with scripts but would prefer a formula solution if possible.
Edit: This happens whether I use the full URL or just the spreadsheet key and if I use the sheet name with the range or not. I've tried several files and it always works with the Google Sheets files and never works with Excel files.
Something occurred to me about the ownership and location of these files. Somebody else is the owner of the spreadsheet that I want the IMPORTRANGE formula in. I have full edit permissions. The folder that the spreadsheet resides in is owned by the same guy, it has been shared with me and I have added it to my Drive. In a subfolder of this folder is where the source files are. I am the owner of the subfolder and the source files within, both Excel and Google Sheets files.
Could this setup have anything to do with the results I'm getting?
Edit: I've had the ownership of the folders (all the way up the hierarchy) and relevant files transferred to me and it's still doing the same thing.
This is clearly only a work around and not an answer, but I had to do something so that I could move on. The only way I could get what I wanted is to code a convert to .gsheet format first and point imortrange to that new sheet. Might help someone else get their project pointing in a working direction until this can be answered.
There are there way to fix this problem:
Convert the Excel spreadsheet to a Google spreadsheet. You can then use the importrange() function to import the data from the converted file.
Export the Excel spreadsheet to a CSV file first, then you can use a different function called the importdata() function to import that data into a Google spreadsheet.
Using Add-on: "Sheetgo"
You should watch this video:
How to automatically import Excel Data to Google Sheets?

xlsx to plist in Spanish - accented characters being lost

I have been using "Plist Converter" to get my data from csv files (excel spreadsheets saved as csv files) into plists up to now and have never had any issues with it.
However, I am currently working on an app where the data I need to convert is in Spanish.
The conversion obviously still works but I lose all of the accented characters during the process. It looks like maybe some are just lost, some are changed to other accents/characters, and the majority are replaced with an upside down question mark that does not appear on the screen but I can see it in the source code.
Anyone help me get around this with plist converter, or recommend another utility?
iMac, Excel for mac, plist converter, xcode... that is what I'm using.
Thanks
Look at libxls on SouceForge - it comes with a utility to take a .xls file and create a .csv one that you can further process using command line tools. But it has no support for .xlsx.

Placemark kml info not showing in iOS version of Google Earth

The information for placemarks that I have created in a kml file does
not show on the iPad. The window opens up, but there is no content. It
has worked in the past and it works fine in Google Earth for Windows
and Android. I have a feeling that this might be an issue with Google
Earth on the iPad more than a kml issue.
Here is the file if anybody is interested in taking a look:
http://dl.dropbox.com/u/18240150/GoogleEarthAirports30Apr12.kml
Thanks
Your KML looks good (actually, it's very nicely done; the airports look and behave great):
Visual desk check in a text editor and it looks good
Loaded in Google Earth without problems (confirms the behavior you saw)
Also there is an Interactive KML Parser available online - your KML ran through the parse without errors
Your suspicion that the root cause of your problem lies with the iPad or Google Earth on the iPad appears to be correct. I don't have an iPad, so I can't test that, but knowing that an independent test had similar results at least helps to pinpoint the problem.
Here is a work around for this problem.
Prepare a KML file with NetworkLink tag referring to your remote KML file and download the file.
Then description rendering works well even on iOS5.
"Remote", which means a file places at a server like "http://example.com/sample.kml", is important. Local files like a file in a .kmz file don't work currently.

Resources