Comments (8)
I should be able to hand this type of description data. Look for a new release sometime next week.
from qgis-kmltools-plugin.
@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.
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.
@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.
@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.
@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.
@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.
@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)
- "Image path/name" field is not visible HOT 6
- Legend symbology reverted/not working with latest version HOT 2
- Add `Extend sides to ground` option to KMZ Export for Google Earth HOT 3
- New option sugestion HOT 8
- Incorrect symbol encoding HOT 4
- Line feed character export HOT 9
- Android Google Earth crashes HOT 10
- KMLTools exportkmz in PyQGIS crashes the QGIS application HOT 6
- Export Alias and hide description field HOT 1
- png-files overwritten and in wrong place? HOT 6
- Symbology is not exported correctly when categorized in QGIS HOT 4
- Language issues, when installing it from the plugin menu and from zip file , its always in korean. HOT 1
- Importing Kmz file with embedded images HOT 2
- Import html embedded information HOT 5
- Export of Polygons does not work properly HOT 4
- Error range object message - graduated symbology HOT 5
- Error code 1 HOT 5
- AttributeError: 'QgsGeometryGeneratorSymbolLayer' object has no attribute 'strokeStyle' HOT 5
- [Feature Request] Implement "FolderPath" Feature HOT 1
- Error exporting polygon layer: no attribute 'strokeStyle' HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qgis-kmltools-plugin.