Code Monkey home page Code Monkey logo

Comments (4)

DiracM avatar DiracM commented on May 30, 2024 1

Hi Joshday, just tested the new release and it's looking good. I like the approach on the code, nice job.

from kml.jl.

joshday avatar joshday commented on May 30, 2024

Looks like gx:CascadingStyle isn't in the spec (https://developers.google.com/kml/documentation/kmlreference) and thus doesn't exist in this package.

At the very least I could improve the error, but are there other gx elements outside of the spec that exist?

from kml.jl.

DiracM avatar DiracM commented on May 30, 2024

Good point Joshday. I'm using Google Earth web version to generate the kml files and another thing that I have noticed it is adding on it is gx:fovy. I would maybe suggest to add an option of ignoring these non standard tags in order for the user to still be able to use the kmls generated by Google Earth.

from kml.jl.

joshday avatar joshday commented on May 30, 2024

I discovered your initial error was actually in XML.jl, but I there were some unreleased changes that fixed it.

I have:

  1. Released a new version of XML.jl
  2. Bumped KML's lower bound on XML.
  3. Changed errors to warnings in KML.jl when encountering something that's not in the KML spec.
julia> read(file, KML.KMLFile)
┌ Warning: Unhandled case encountered while trying to add child with tag `gx_CascadingStyle` to parent `Document: [Node Element <Document> (1 child)]`.
└ @ KML ~/.julia/dev/KML/src/parsing.jl:69
┌ Warning: Unhandled case encountered while trying to add child with tag `gx_CascadingStyle` to parent `Document: [Node Element <Document> (1 child)]`.
└ @ KML ~/.julia/dev/KML/src/parsing.jl:69
┌ Warning: Unhandled case encountered while trying to add child with tag `gx_fovy` to parent `LookAt: [Node Element <LookAt> (5 children)]`.
└ @ KML ~/.julia/dev/KML/src/parsing.jl:69
KMLFile (1.186 KiB)

I'll get a KML release out soon with the changes.

from kml.jl.

Related Issues (8)

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.