Questions tagged [jak]

Java API for KML (short: JAK) provides Java interfaces for easy access to KML (Keyhole Markup Language) data.

The "Java API for KML" is a library that contains a JAXB representation of the KML 2.2 XML schema. It is very handy for marshalling/unmarshalling KML files for manipulation in Java code.

JAK web site: http://labs.micromata.de/display/jak/Home

31 questions
6
votes
5 answers

Extract coordinates from KML file in Java

I'm trying to parse a Kml file in Java. Cause I need to take the coordinates of a Placemark, to generate a poligon in java, and use it. But my problem , is that i'm using JAK this library to parse it, and i'm not able to extract the information that…
Shudy
  • 7,806
  • 19
  • 63
  • 98
4
votes
2 answers

Java API for KML (JAK) embedding images in kmz files

Is there a way to just add an image file into a kmz file using Java API for KML (JAK)? I can create a kml file with no problem, but I'm trying to just embed a resources (such as an images folder with some image files), but the marshalAsKmz method…
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
4
votes
2 answers

How to keep string formatting when marshalling with JAK kml library

I want to add a description to my place marks that is a series of html. When I run the marshaller, I get a bunch of special character strings instead of the special chars. i.e. My final file looks like CDATA<html> instead of CDATA. I…
Joe Essey
  • 3,457
  • 8
  • 40
  • 69
3
votes
3 answers

import kml with java

I'm trying to import a mkl file with jak but i get the following error: javax.xml.bind.UnmarshalException: unexpected element (uri:"http://earth.google.com/kml/2.2", local:"kml"). Expected elements are ... and then a big list Does anyone else run…
clankill3r
  • 9,146
  • 20
  • 70
  • 126
3
votes
3 answers

How to properly update Google Earth KML using NetworkLinkControl and the Java API for KML (JAK)?

I'm building an application that serves up data to a standalone Google Earth client. I want to send over an initial set of data, then update it dynamically using and tags as things change on the server. I'm…
markerikson
  • 63,178
  • 10
  • 141
  • 157
3
votes
2 answers

Java API for KML (JAK) - Removing extra ns2 annotation in kml

Is there any way to remove the extra namespace prefix (i.e. ns2) in KML file? This is an example of the kml I receive from my code:
3
votes
3 answers

How to mark multiple coordinates in KML using Java?

I'm working on a project that involves KML creation using Java. Currently, I'm fooling with the sample Java code from the KML example at Micromata Labs JAK Example. I tried to "extend" the code by adding multiple coordinates and getting two markers,…
CodingInCircles
  • 2,565
  • 11
  • 59
  • 84
2
votes
2 answers

Java Image Generation Of Heat Map for Google Earth

I'm working on a Java program that processes some data and generates a Heat Map to display the results. This program takes a target area and divides that area into a grid, which for the sake of testing each cell is 1NM by 1NM. I generate a KML file…
intelman
  • 49
  • 1
  • 9
2
votes
1 answer

Large object marshalling using JAXB loses characters

I'm using the JavaAPIForKml to generate large KML objects and marshal them to a file. When the output reaches a certain size I end up losing an angle bracket (<). It seems like there's a buffer that's being used and a bug is causing the character…
Danny Cohn
  • 889
  • 8
  • 16
2
votes
1 answer

issue with writing to KML file using JavaAPIForKML

I was trying to generate KML file from a text file. When I am trying to marshal the memory file, I am getting following exception. Any clue? javax.xml.bind.PropertyException: name: com.sun.xml.bind.namespacePrefixMapper value:…
Meera Menon
  • 69
  • 1
  • 4
1
vote
2 answers

Java/JAXB/JAK error in Matlab using Marshaller

I'm having a Problem with a Java program that I am developing that is using a jar file that was created by the Mathworks JA builder. In this Matlab program, it is using JAK to create a KML file for Google Earth. I have had no problem on the…
intelman
  • 49
  • 1
  • 9
1
vote
1 answer

Link to call REST API within description balloon for KML using Java API for KML?

I'm using the Java API for KML to create a KML file with several Placemarks, each with a description popup. Within the popup, I'd like to link to my REST API that I have running on localhost. I've tried using a simple href that calls the API…
syim
  • 501
  • 1
  • 4
  • 16
1
vote
1 answer

Flight paths linking placemarks using Java Api For Kml(JAK)

Currently i'm having a project which requires to set placemarks and link them with polylines (i suppose), lines which have an arc to it, with properly segmented portions to the arc. I've been able to generate kml file with jak library. But i can't…
Kayson
  • 21
  • 2
1
vote
1 answer

How can we call directly a javascript function from a kml file

I explain you my problem, I must display some polygons in a map and I must to be capable to call a javascript method when I click on the link present in the window info of one of them. No problem when I use directly with the google api, you'll find…
user2049200
  • 127
  • 2
  • 10
1
vote
0 answers

How to customize the tool tip of GOOGLE MAP (KML) with JAK API

I have a problem with the tool tip in google map. As you can to see, I have one polygon in my map. But when I click on this polygon as you see in the kml display, the display of the tooltip is cut (Click on the zone map). To realized this map, I…
user2049200
  • 127
  • 2
  • 10
1
2 3