<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Thank you Ariel</p>
    <p>It is useful to know that some others have found the same problem
      and thank you for the workaround</p>
    <p>In case I do not find another solution I will try to write a
      python code to do this..</p>
    <p>thank you</p>
    <p>Ivan<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 24/11/2017 19:31, Ariel Neri wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAKd8vtKmpDgt5UeV30obizOz=Uy6P4kV3HZHac9wW3SoBUT2_w@mail.gmail.com">
      <div dir="ltr">Hi, I had to adapt many complicated, hundred of
        clases simbology sld made in qgis to be used in Geoserver some
        time ago.  I tried some programs with no luck, so finally I
        changed a few things in the QGis sld file to make it work in
        Geoserver.
        <div><br>
        </div>
        <div>Basically it´s just 3 steps, using the "search and replace"
          tool:</div>
        <div><br>
        </div>
        <div>1-  i replaced the first line with one from an existing
          geoserver sld:</div>
        <div><?xml version="1.0"
          encoding="UTF-8"?><sld:StyledLayerDescriptor xmlns="<a
            href="http://www.opengis.net/sld" moz-do-not-send="true">http://www.opengis.net/sld</a>"
          xmlns:sld="<a href="http://www.opengis.net/sld"
            moz-do-not-send="true">http://www.opengis.net/sld</a>"
          xmlns:ogc="<a href="http://www.opengis.net/ogc"
            moz-do-not-send="true">http://www.opengis.net/ogc</a>"
          xmlns:gml="<a href="http://www.opengis.net/gml"
            moz-do-not-send="true">http://www.opengis.net/gml</a>"
          version="1.0.0"><br>
        </div>
        <div><br>
        </div>
        <div>2- Also copy the first lines raplacing the "****" with your
          own</div>
        <div>
          <p class="gmail-MsoNoSpacing"><span lang="EN-US"><sld:NamedLayer><span></span></span></p>
          <p class="gmail-MsoNoSpacing"><span lang="EN-US">             
                            <sld:Name>******</span><span
              class="gmail-MsoCommentReference"><span
                style="font-size:8pt"> </span></span><span lang="EN-US"></sld:Name><span></span></span></p>
          <p class="gmail-MsoNoSpacing"><span lang="EN-US">             
                             <sld:UserStyle><span></span></span></p>
          <p class="gmail-MsoNoSpacing"><span lang="EN-US">             
                                           
               <sld:Name>*****</sld:Name><span></span></span></p>
          <p class="gmail-MsoNoSpacing">                               
                         <sld:Title>******</sld:Title><span></span></p>
          <p class="gmail-MsoNoSpacing">                               
                         <sld:Abstract>******</sld:Abstract><span></span></p>
          <p class="gmail-MsoNoSpacing"><span lang="EN-US">             
                                           
               <sld:FeatureTypeStyle><span></span></span></p>
          <p class="gmail-MsoNoSpacing"><span lang="EN-US">             
                                                           
              <sld:Name>name</sld:Name><span></span></span></p>
          <div>
            and do the same with the closings
            <div>
              <div id="gmail-_com_2" class="gmail-msocomtxt">
              </div>
            </div>
          </div>
        </div>
        <div>
          <p class="MsoNormal"><span> </span></p>
          <p class="gmail-MsoNoSpacing">                                              
            <span lang="EN-US"></sld:FeatureTypeStyle><span></span></span></p>
          <p class="gmail-MsoNoSpacing"><span lang="EN-US">                              
              </sld:UserStyle><span></span></span></p>
          <p class="gmail-MsoNoSpacing"><span lang="EN-US">               
              </sld:NamedLayer><span></span></span></p>
          <p class="gmail-MsoNoSpacing"></sld:StyledLayerDescriptor><span></span></p>
        </div>
        <div><br>
        </div>
        <div>3- Use the search and replace tool: replace <span
style="font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times
            New Roman"">   </span><span>“<se:”</span><span>  and</span><span> 
             </span><span>“</se:” with</span><span> </span><span>“<sld:
            (…)”</span><span>  and</span><span>  </span><span>“</sld:
            (…)” respectivly. And replace </span> “SvgParameter” with
          “CssParameter”</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Sorry if i don´t use correct vocabulary, i´m not so much
          into coding, neather into english language.</div>
        <div>A co-worker made a script to do the steps before
          automatically with RStudio and made it even simpler for me.</div>
        <div><br>
        </div>
        <div>This was a good enough work-around for me and solved my
          problem. Probably now there´s a better way (i hope so). I
          share anyway in case it helps you.</div>
        <p class="gmail-MsoNoSpacing" style="margin-left:36pt"><span></span></p>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2017-11-24 14:43 GMT-03:00 Ivan
          Marchesini <span dir="ltr"><<a
              href="mailto:ivan.marchesini@gmail.com" target="_blank"
              moz-do-not-send="true">ivan.marchesini@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear
            geonode users and developer<br>
            <br>
            I apologize if this is a well known problem but browsing on
            Internet (including the mailing list) I wasn't able to find
            a good solution<br>
            <br>
            I have recently installed geonode2.6 (ubuntu, ppa) for a
            project where multiple and not skilled users will be
            involved.<br>
            <br>
            I have tried to do a couple of things:<br>
            <br>
            1) I uploaded a shapefile (separate files) together with a
            sld file exported from qgis. It happened to me that (i) the
            corresponding sld file created in geoserver is very
            different from the  original one (tipicaly the colors are
            lost)  and (ii) since the <Title> tag is not present
            geonode is only able to show me a style called "none"<br>
            <br>
            2) I uploaded a shapefile (separate files) together with a
            sld file exported from udig. It happened to me that (ii)
            since the <Title> tag is not present geonode is only
            able to show me a style called "none"<br>
            <br>
            is there a way for creating a well formatted sld file for
            geoserver/geonode using some desktop GIS or some other tools
            with a GUI?<br>
            It is very important to me since I can't ask the other
            colleagues to edit directly the xml files..  they will be
            too much scared by that!!<br>
            <br>
            thank you for your answers<br>
            <br>
            Ivan<br>
            <br>
            ______________________________<wbr>_________________<br>
            geonode-users mailing list<br>
            <a href="mailto:geonode-users@lists.osgeo.org"
              target="_blank" moz-do-not-send="true">geonode-users@lists.osgeo.org</a><br>
            <a
              href="https://lists.osgeo.org/mailman/listinfo/geonode-users"
              rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailma<wbr>n/listinfo/geonode-users</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>