Does anybody know if there's a sw/extension to convert an SLD to Esri. lyr format, or to import the SLD directly?

  • Interesting question. Someone voted it down by one, probably figuring they'd seen it before, but all the other questions are from ESRI to SLD. Some searching doesn't find anything in this direction or an obvious way to import it. Even FME doesn't seem to manage it (it has no Layer writer, only a reader). Doesn't mean its not out there though. Maybe ESRI have their own bespoke one. – GIS-Jonathan Nov 14 '12 at 15:58
  • giohappy, did you find an answer to this? – GeorgeC Nov 19 '13 at 23:18
  • No GeorgeC, I don't need it anymore. However I haven't heard of solutions unless using writing some custom code based on ESRI APIs – giohappy Nov 20 '13 at 10:11
  • @giohappy what did you change to pass this problem? – nielsgerrits Oct 3 '16 at 9:12

If SLD is declared you can get layer parameters with parsing XML.

In Arcgis you need add a local feature class and load it as feature layer. Next, identifying type of symbology of your layer in SLD and next generate symbols with appropriate type in ArcGIS. Finally save your symbology to LYR.

I don't know if this script is dev... I find lot of subject for convert LYR to SLD but no reverse.

You can do a script for this conversion with arcpy and xml packages in Python environnement if you want. I think lot of persons are interested in.

  • By If SLD is declared do you mean references an SLD schema, or will this work if the SLD just has an XML declaration? – nmtoken Jun 7 '16 at 17:53
  • all declaration in sld are in XML format. You can look at this page. There is an exemple. The reference is just a link. All declarations are in xml file. – GeoStoneMarten Jun 13 '16 at 10:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.