Giter VIP home page Giter VIP logo

Comments (8)

hamiltoncj avatar hamiltoncj commented on June 9, 2024 1

I should be able to hand this type of description data. Look for a new release sometime next week.

from qgis-kmltools-plugin.

hamiltoncj avatar hamiltoncj commented on June 9, 2024

@ulmi I just uploaded a new release, version 3.0.1. It is now in the QGIS plugin repo. It works for the sample you gave me. You will need to select that you want to expand tag=value pairs. Let me know how it works and whether there is anything else that you would suggest.

from qgis-kmltools-plugin.

ulmi avatar ulmi commented on June 9, 2024

@hamiltoncj

Sorry only tested it now. Thanks for your time and work, unfortunately it doesn't work.

I'm sending you some examples u can grab at this link

The plugin is very useful and I manage to get it to work with one of the examples, when I changed the tags to <td><tr> in a text editor.

from qgis-kmltools-plugin.

hamiltoncj avatar hamiltoncj commented on June 9, 2024

@ulmi
I was out for a few days so I am just taking a look. Your link for examples has expired or does not work. Could you send it to me again?

When you ran the algorithm did you change "How to expand description field" to "Expand to "tag=value" pairs"?

from qgis-kmltools-plugin.

ulmi avatar ulmi commented on June 9, 2024

@hamiltoncj yeah firefox send only works for 24 hours, sorry!!
I'm attaching the examples.zip on github

When you ran the algorithm did you change "How to expand description field" to "Expand to "tag=value" pairs"?

Yes I tried with different results with the examples:

  • With example 1 no fields are collected for the html field selection dialog
  • With example 2 this error occurs

File "/.local/share/QGIS/QGIS3/profiles/default/python/plugins/kmltools/htmlExpansionDialog.py", line 202, in processAlgorithm
self.htmlProcessor.autoGenerateFileds()
File "/.local/share/QGIS/QGIS3/profiles/default/python/plugins/kmltools/htmlExpansionDialog.py", line 66, in autoGenerateFileds
self.htmlparser.processHtmlTagValue(desc)
File "/.local/share/QGIS/QGIS3/profiles/default/python/plugins/kmltools/htmlExpansionDialog.py", line 356, in processHtmlTagValue
tag = m[1].strip()
TypeError: '_sre.SRE_Match' object is not subscriptable

thx again for your time and work

from qgis-kmltools-plugin.

hamiltoncj avatar hamiltoncj commented on June 9, 2024

@ulmi
With example 1, it uses a ':' to separate the tag and value. I am looking for an '=' sign. I can add this.

For example 2 I have not been able to replicate the error. It works for me. What version of QGIS are you using and what operating system are you on? If you are not using the latest QGIS 3 please try updating it and see if you get the same error.

Actually looking at the error message I think I know what is wrong. Look for an update soon.

from qgis-kmltools-plugin.

hamiltoncj avatar hamiltoncj commented on June 9, 2024

@ulmi
In version 3.0.2 I added "tag: value" support; however, your example 1 is really strange. The description field of each Placemark has the tag and values all reversed and cannot be parsed. For the popup in Google Earth it uses Balloon styling text which is in the right order. For me to support the text from styling is going to be a much more difficult task. I don't know why the Placemark description data is so badly formatted that it is unusable.

I think I have fixed example 2. Let me know if it works for you.

from qgis-kmltools-plugin.

ulmi avatar ulmi commented on June 9, 2024

@hamiltoncj
example 2 works flawlessly ;)

The example 1 is a really pain...although the plugin stills helps...a lot, after some "hack n' slash" of the kml on a text editor removing all the styling and converting the tags to a table format with some find & replaces, I managed to expand the description field with the plugin.

It's crud, rudimentary and painfull, but it works.

Thank you again for your work.

from qgis-kmltools-plugin.

Related Issues (20)

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.