Extract KML from Fusion Tables into Google Earth - kml

I am trying to extract my KML file from Google's Fusion Tables into Google Earth. I follow what I think are the necessary steps via KML Network Link instructions. I must be missing something because no matter what I do the data will not show in Google Earth. I have the Fusion file shared as Unlisted, but am I supposed create a public URL as well in order for the points to show in google earth?
Sorry for the basic/beginner question. It's SO basic I can't find a question already addressing the issue.
Thanks in advance.

I can think of two things to check.
1) Your Fusion Table must be "exportable". Edit->Modify Table Info. Make sure the exportable checkbox is selected.
2) Did you rely on geo-coding addresses when creating your table? The lat/long values of geo-coded addresses in Fusion Tables will not be exported in the KML, and addresses might not display in Google Earth.
Eric

Related

KML LineString Length

Using MSVS C#, I'm creating a KML file. For the sake of simplicity, assume that it has 2 Point placemarks with name tags A and B, respectively. The third placemark is a LineString using the coordinates from the points, with a name tag "A > B". I want the description of this placemark to say "Distance: xxx km", where xxx is the distance between A and B.
Is there a KML or Google Earth tag that I can write to the KML file that will output the distance when the file is loaded into Google Earth and I click on the line? Better yet, can I keep track of these as the app generates the KML file or in the KML file itself so that the document can have a description that has the total distance of all LineStrings?
Thanks.
After posting this, I came across a Vicenty formula written in Java that does what I want. It was a simple matter to port it to C#.
It can be found at https://www.neovasolutions.com/2019/10/04/haversine-vs-vincenty-which-is-the-best/
It's a shame a forum designed to help developers would have someone downgrade a question without even bothering to post a response that might be of use, even if it's a link to where such a question was answered. If this was an admin who did this, kindly delete my account—I certainly don't need the bigotry and scrutiny. In the future, I'll try to find my answers elwewhere.

How to create Perth Metropolitan Area Map in SVG

I am working on a project where Users can interact with a Map via mouse click to see more details of an area. It is Perth Metropolitan Area Map. This Map is generated from PDF using online "PDF to SVG converter".
When I looked at generated SVG code it is so huge can't understand full of it. and did some research to see if i can find any simpler version of the Map, I see there are various options to construct SVG, detailed below.
Shapefiles : Creating maps based on real world data, I thought this is good option to go. but the problem I observed here is we need to depend on GIS tools and open databases where GIS data is available. It is too heavy for our requirement.
Geo JSON / Topo JSON : I see this is simple way to represent Maps in plain, but I could not figure out a way to generate required JSON files. After exploring more on this I understood these technologies are dependent on GIS / Shapefiles.
Inscape : UI editor to draw SVG - It is just generating lot of SVG code again.
After reviewing above all I kind of thinking may be I should learn to write own SVG map.
Can somebody advice whether I am in right direction or Are there any simple approaches to create a Map like this Perth Metropolitan Area Map ?
Thanks in advance.

Google Docs: Table of content page numbers

we are currently building an application on the google cloud platform, which generates reports in Google Doc. For them, it is really important to have a table of content ... with page numbers. I know this is a feature request since a few years and there are add-ons (Paragraph Styles +, which didn't work for us) that provide this solution, butt we are considering to build this ourselves. if anybody has a suggestion on how we could start with this, it would be a great help!
thanks,
Best bet is to file a feature request on the product forums.
Currently the only way to do that level of manipulation of a doc to provide a custom TOC is to use Apps Script. It provides access to the document structure sufficient enough to build and insert a basic table of contents, but I'm not sure there's enough to do paging correctly (unless you force a page break on ever page...) There's no method to answer the question of "what page is this element on?"
Hacks like writing to a DOCX and converting don't work because TOCs are recognized for what they and show up without page numbers.
Of course you could write a DOCX or PDF with the TOC as you'd like and upload as a blob rather than as a Google Doc. They can still be viewed in Drive and such.

Converting a SHAPEFILE (SHP) to KML for google fusion table

I'm using http://www.zonums.com/shp2kml.html to convert a SHP file to a KML for integration into Google Fusion Tables.
I'm able to do this successfully with many shp files, but am having a particular problem with one particular SHP file.
http://www.electionsquebec.qc.ca/documents/zip/shapefile-sections-de-vote-elections-generales-2008.zip
When I create the KML file and open it in Google Earth, the actual boundaries are somewhere in the Pacific Ocean (rather than actually outlining the province of Quebec). The shape is fine, it's just the whole actual shape is shifted to the Pacific Ocean. I'm wondering if it has to do with the UTM..or something with the coordinates. I've tried different zones, different Datum...nothing works. Help?
I used shpescape, it gave me this which looks right to me. you must be doing something wrong with shp2kml.
I'm not familiar w/shp2kml but according to the homepage it can accept Lat/Lng, or UTM based projections. The shapefile in question, however, is in a Lambert equal area projection, which I assume is not supported (check the .prj file to see details).
As noted in the other answer, shpescape.com should work for this use case -- it does transformations with the proj4 library, and this projection is supported.

How can you create a search that will search within a KML and display the results on a Google Map v3?

I've created a Google map that loads a KML file as an overlay. It is a map of trailheads for say hiking. What I'm trying to figure out now is how to create a search that will allow visitors to search within the KML's data and show the relevant trailhead/s as results on the Google Map. Is this possible? I have a google search that will let them search for an address, but this does NOT search within the KML file's data for a trailhead.
Ideally the visitor could input an address, say 12345 Main st., Chicago, IL, or something and it would display results that are within a specified vicinity, say ten miles, of that address (ie latitude, longitude).
I'm a little lost as to even where to begin.
thanks for your help!
Davis
I don't know how often your kml file updates, but i recommend storing all the kml data in a database as well to make this easier. Maybe every once in a while re-download the kml file and update the database.
Then its as simple as using the haversine formula and searching the database for nearby trails.
What you're describing sounds like a good job for Fusion Tables. Fusion Tables give you a nice way to store and edit the data (even collaboratively). In addition, there are geospatial columns/data fields you can add (aka, a "Location" column that can be address or lat/long coordinates). Put all the trail heads in your fusion table and you can map them. Let people enter an address or lat/long, and you can query the fusion table to show all trail heads within the user specified distance of that point. See the tutorials to get started.
You can use KML search tool to do this. It supports KML KMZ CSV and GPX. You can find the tool here

Resources