I'm working on an extension to import KML files (Geodata XML files by google) into Inkscape using various projections (to replace my former conversion website..)
I've few questions
Do you think it could be included into inkscape (or it's too small public ?) (including 80% of test coverage is some work.. ;) )
As the gui could not be responsive (to hide/disable field according to choice), Is there some gnome GUI extension exemple ?
is it possible to change the background color of the new document (basically to set checkerboard background)
1. It's possible to include this in Inkscape, if you wanted. If it's Free Software licensed and has good tests etc. But it's also possible to add it to the new extension manager which is currently in beta for the 1.1 release, but should allow extensions authors to let users install their works.
I didn't heard about the extension manager yet. It could be a good option to first add it as an external extension, and then see if it could/should be bunddled with inkscape. I guess the idea behind the extension manager is to not include to many think in the core program 😉.
That way I can put a more restrictive licence (something like AGPL) but change it latter to the Inkscape GPL one...
I'll have a look at the extension-manager code to see the custom GUI 😄 !
Everything is possible, but that's not really a very common use-case, so it's probably not interesting to add it to the extension I think... (In fact I should probably put labels&description into a group with the form/shape/line !)
You can move all texts to the top or to an other layer by selecting a single text, right click > Select Same > Object Type
Hello,
I'm working on an extension to import KML files (Geodata XML files by google) into Inkscape using various projections (to replace my former conversion website..)
I've few questions
Thank you
Point 3 solved with:
Hi anonymous developer 😉
1. It's possible to include this in Inkscape, if you wanted. If it's Free Software licensed and has good tests etc. But it's also possible to add it to the new extension manager which is currently in beta for the 1.1 release, but should allow extensions authors to let users install their works.
2. A GUI can be done, the extensions manager is an example codebase https://gitlab.com/inkscape/extras/extension-manager, as is the clipart importer https://gitlab.com/doctormo/inkscape-import-clipart/-/blob/master/import_clipart.py.
Let me know here what you might do, I'm interested in getting extensions authors into the manager system.
- double post -
Hello,
Thank you for the informations.
I didn't heard about the extension manager yet. It could be a good option to first add it as an external extension, and then see if it could/should be bunddled with inkscape. I guess the idea behind the extension manager is to not include to many think in the core program 😉.
That way I can put a more restrictive licence (something like AGPL) but change it latter to the Inkscape GPL one...
I'll have a look at the extension-manager code to see the custom GUI 😄 !
Thank you again,
Franklin
Hi,
Here is a first version: https://gitlab.com/franklin204/inkscape-kml2svg-extension
I didn't implement a custom GUI yet but the import KML/KMZ extension is functional.
Export back is only supported for KML (not KMZ yet) and only if projection is Mercator (I need to code the reverse projection for all others...).
Thanks for your feedback.
Franklin
Hello !
Version 0.0.4 is out, it fix default text style value and inx syntax errors.
Franklin
This is a really cool extension.
In the UK, each postcode area has a page on wikipedia.
You can download a KML file from each page.
For example: https://en.wikipedia.org/wiki/BB_postcode_area
Is it possible to add
For each area ?
( I randomised the colours )
Hello,
Thank you for your feedback. I'm not 100% sure of the request:
- the SVG already contains theses information into SVG elements attributes (visible in object properties/XML explorer)
- do you mean adding these information as additional text on the final SVG ?
"- do you mean adding these information as additional text on the final SVG ?"
Yes :)
I can see the choice for font 'Arial', but I cannot get the labels to appear.
The font choice was for the conversion of KML "Point" placemarks to text in the SVG.
The name and descriptions are 'only' attributes of the shape, not standalone elements.
However, i just push an update to an extra options in expert mode to include them:
The label and descriptions are placed at the center of the corresponding object (which may overlay other texts & objects..).
The main issue is that saving back to KML will add theses labels as additional Placemark point...
Available for testing in master (no tag yet): https://gitlab.com/franklin204/inkscape-kml2svg-extension/-/archive/master/inkscape-kml2svg-extension-master.zip
Also added an extra option to randomize color at import (if color information is missing into KML/KMZ), just for fun 😊
Yes that's really good.
I just chose the name only and the random fill :)
Can the Text be put into it's own layer ?
Everything is possible, but that's not really a very common use-case, so it's probably not interesting to add it to the extension I think... (In fact I should probably put labels&description into a group with the form/shape/line !)
You can move all texts to the top or to an other layer by selecting a single text, right click > Select Same > Object Type
Hello !
Version 0.0.5 is out, it fix default text style value and inx syntax errors.
This version:
Franklin
Hello !
Version 0.0.6 is out, it fix default text style value and inx syntax errors.
This version:
Franklin