Skip to main content
Question

*lyr to *qml or *sld

  • September 26, 2018
  • 5 replies
  • 352 views

Forum|alt.badge.img

Hi,

I have a Esri FileGDB with style information in a *lyr file. I want to use this data in QGIS and therefore I need to convert the *lyr file in *qml or *sld.

Is there any possibility to do this with FME? Or does someone know another way for the conversion?

Thank you and best regards.

5 replies

oscard
Influencer
Forum|alt.badge.img+21
  • Influencer
  • September 26, 2018

FME doesn't have a writer for SLD or QML.

 

 

Can a text editor open a LYR? If so, you could craft a workflow to create your own SLD. It's just an XML with special tags.


Forum|alt.badge.img
  • Author
  • September 26, 2018
oscard wrote:

FME doesn't have a writer for SLD or QML.

 

 

Can a text editor open a LYR? If so, you could craft a workflow to create your own SLD. It's just an XML with special tags.

A text editor can't read a *lyr. I use Notepad++.

 

 

 


oscard
Influencer
Forum|alt.badge.img+21
  • Influencer
  • September 26, 2018
oscard wrote:

FME doesn't have a writer for SLD or QML.

 

 

Can a text editor open a LYR? If so, you could craft a workflow to create your own SLD. It's just an XML with special tags.

I answer myself. No, it can't be opened with a text editor. But FME has a LYR Reader!!

 

 

You have to check if FME reads all the symbology information you want:

 

 

 

With that and with lots of patience you could build a SLD file using FME transformers and a Text FIle Writer.

 


oscard
Influencer
Forum|alt.badge.img+21
  • Influencer
  • September 26, 2018
joe_gerner wrote:
A text editor can't read a *lyr. I use Notepad++.

 

 

 

Yeah, I couldn't find any LYR file to check that, but I have created one to check what FME can read about it. Check my comment to my answer.

 

 

You will have to see if FME is capable of reading all you want about the style.

 

 


redgeographics
Celebrity
Forum|alt.badge.img+49

An SLD is XML (and judging by the extension so is QML), so if you know its structure you can write it with FME.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings