Hi Peppe,

Did you fill a ticket to track these bugs ?

Some hints :
A few years ago, I created XBasicStyle which extends BasicStyle and wraps VertexStyle in order to make Vertex Style available in ThemingStyle. Maybe some bugs are related to this
change which has not been ported to SLDPlugIn.

If the path of images are not saved with a correct URL, the problem may come from XSLUtility which
has a few methods used by layerstyle2sld.xsl to read/write URL.
ImageFillPattern seems to use geIconURL which itself uses a URL method. I don't know why some methods of this utility class use URL.toString() and others URL.toExternalForm for example...

Michaël




Le 25/11/2018 à 10:27, Giuseppe Aruta a écrit :
I can be more accurate on { ColorThemingStyle for polygons with some fill patterns seems not working} Polygon fill pattern are samples are saved as temp image files like "ojp5731593574799380314pti.png" On saving to SLD file the relative path of the file is saved as tag (in windows) <OnlineResource xlink:type="simple" xlink:href="file:/C:/Users/<Urer>/AppData/Local/Temp/ jp5731593574799380314pti.png "/> When I try to load, the SLD import cannot recognize it and throws an error message in the log file (An ogc:filter could not be found while trying to parse a color theming style).
Peppe

Il giorno ven 23 nov 2018 alle ore 16:24 Giuseppe Aruta <giuseppe.ar...@gmail.com <mailto:giuseppe.ar...@gmail.com>> ha scritto:

    Hi
    it seems that sld import/export has some faults. According to an
    user's mail (I recived) it was not possible to load text symbology
    on a layer.
    While waiting a more complete info (and opening a bug ticket), I
    did some (partial) tests. This is what I found:
    - Save: vertex symbology from external image file is not saved
    into the xml file. The tag <sld:ExternalGraphic> is not recorded
    even if it is present into the layerstyle2sld.xsl file template
    - Load: vertex symbologies applied as ColorThemingStyle are
    decoded as multiple BasicStyle. Thus is not easy to apply a
    styling according to an attribute classification
    - Load: strangelly Labeling works fine. labels are located anyhow
    at the center of the geometry.
    - Load. ColorThemingStyle for polygon works only if user uses base
    fill colors.
    ColorThemingStyle for polygons with some fill patterns seems not
    working
    - Load both line color and line pattern seem to work.
    I remember years ago everyting seemed to work fine
    (http://ojwiki.soldin.de/index.php?title=Import-Export_Layer_Style).
    I wonder if this is connecte external libraries.

    Good news: the method  new Java2XML().write(layer, "layer",
    stringWriter) controls the way to export style (both on project
    file and partially on sld file).
    I thing I will implement an alternative way to export/import style
    to file using this method.

    Best regards
    Peppe





_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to