Code Monkey home page Code Monkey logo

kmlframework's People

Contributors

eivind avatar

Watchers

 avatar

kmlframework's Issues

Misspelled visability

A bug is present in the current implementation: Feature.setVisability()
is misspelled, correct is setVisibility().
The resulting KML contains the invalid, misspelled tag.

Original issue reported on code.google.com by [email protected] on 11 Mar 2009 at 8:13

  • Merged into: #4

<refreshInterval>-tag is being generated tow times

What steps will reproduce the problem?
1. class: Link.java
   package: org.boehn.kmlframework.kml
   method: writeInner(Kml kml)

   delete one of this if blocks:
   if (refreshInterval != null) { ... }

maybe a copy-paste error...

cheers tobi


Original issue reported on code.google.com by [email protected] on 29 May 2009 at 6:55

BallonStyle misspelled

Class BallonStyle has a wrong name (missing an o).

Correct name should be BalloonStyle and its KML tags be written as 
<BalloonStyle> </BalloonStyle>

Original issue reported on code.google.com by [email protected] on 14 Jun 2010 at 4:54

Cascaded Folder make document writing fail

Steps to reproduce the problem:
1. Create a new Kml.
2. Add a Folder to the Kml.
3. Add a Folder (with anything inside) to the previously added Folder.
4. Write Kml to file.

Seen result: Writing to file fails.
Expected result: Writing to file works (since it works in Google earth 
5.0) or an exception is raised when adding the Folder to another Folder 
(if it is not valid in KML).

KmlFramework version: 2009-03-20 (jar)
System: JDK 1.6 (XP SP3)

Original issue reported on code.google.com by [email protected] on 19 May 2009 at 1:47

Spelling of "visibility" is wrong, so adding <visibility> tags is impossible

What steps will reproduce the problem?
1. no steps required. it is a spelling error.

What is the expected output? What do you see instead?
expected is the creation of a <visibility> tag. instead it is named
<visablity> (like the method to set it), and therefore the tag is
ignored/not recognized.

What version of the product are you using? On what operating system?
version 20090130, gentoo linux, jdk 1.6.0.11

Quickfix:
in org.boehn.kmframework.kml.Feature.class replace

kml.println("<visability>" + booleanToInt(visability) + "</visability>");

with

kml.println("<visibility>" + booleanToInt(visability) + "</visibility>");

This will at least fix functionality, but the spelling error should be
corrected everywhere.

Regards,
Daniel.

Original issue reported on code.google.com by [email protected] on 15 Feb 2009 at 5:07

Placemark objects printed twice in Document

What steps will reproduce the problem?
1. Run the SimpleExample and investigate the output

What is the expected output?
<Document>
<Placemark>
somethings inside
</Placemark>
</Document>

What do you see instead?
<Document>
<Placemark>
somethings inside
</Placemark>
<Placemark>
somethings inside
</Placemark>
</Document>


Original issue reported on code.google.com by [email protected] on 21 Jul 2008 at 6:34

text not being xml encoded

Kml kml = new Kml();
Document doc = new Document();
kml.setFeature(doc);
Placemark pt = new Placemark("<hi there>");
doc.addFeature(pt);
kml.createKml("/tmp/bad.xml");

Text that is put into xml needs to be escaped into &lt;hi there&gt;


Original issue reported on code.google.com by [email protected] on 24 Sep 2009 at 9:34

Automatically generated id for KmlObjects is not correct

What steps will reproduce the problem?
1. Create any simple kml, at least one object id must start with a 0-9.
2. Try to validate your kml.

Using UUID.randomUUID() creates random id that can start with either a
letter a-z or a figure 0-9.
When starting with a 0-9, this doesn't follow the standard and validation
fails.

Tested in http://kmlvalidator.com/home.htm and in google maps .

workaround: I edited your cKmlObject source and changed the id generation to :
"id"+UUID.randomUUID()

thanks,
JB

Original issue reported on code.google.com by [email protected] on 6 Jan 2010 at 3:41

Folders don't write out KML for properties such as name.

What steps will reproduce the problem?
1. Generate new Folder with name
2. Write the kml out
3. Open kml in Google Earth

What is the expected output? What do you see instead?
KML elements such as name are missing

What version of the product are you using? On what operating system?
org.boehn.kmlframework_20080721.jar on Linux using JDK 1.6

Please provide any additional information below.
Fix for the issue is to add super.writeInner(kml) call to
org.boehn.kmlframework.kml.Container.writeInner(Kml) method.
Attached is a fixed version of Container.java

Original issue reported on code.google.com by [email protected] on 29 Aug 2008 at 5:35

Attachments:

Problems using Region

I am using version: org.boehn.kmlframework_20090718.zip      
Version 20090718

I am using the Region Object.
The Output kml that is produced is not well formed:
1. The <LatLonAltBox> tag is missing a / in the closing tag.
2. The <Lod> tag is missing a / in the closing tag.
3. <minFadeExtent> tag is generated twice.

<Region>
<LatLonAltBox>
<north>50.9002644390218</north>
<south>50.90008425591732</south>
<east>4.354273054052638</east>
<west>4.354093390995808</west>
<LatLonAltBox>
<minAltitude>0.0</minAltitude>
<maxAltitude>0.0</maxAltitude>
<Lod>
<minLodPixels>-1.0</minLodPixels>
<maxLodPixels>-1.0</maxLodPixels>
<minFadeExtent>-1.0</minFadeExtent>
<minFadeExtent>-1.0</minFadeExtent>
<maxFadeExtent>-1.0</maxFadeExtent>
<Lod>
</Region>

Thanks
Asaf B.

Original issue reported on code.google.com by [email protected] on 5 Aug 2009 at 2:16

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.