Skip to content

Repository files navigation

gq2-style

Small helper scripts for converting .lyrx files to .sld, fixing known GeoServer-specific issues, and validating the generated styles.

Included scripts

  • lyrx_to_sld.sh — full conversion pipeline
  • fix_sld_vendoroptions.sh — fixes known VendorOption ordering issues
  • geoserver_validate.sh — validates SLD files against GeoServer REST: Used by system. You need geoserver to run this.
  • xmllint_validate.sh — validates SLD files against the OGC schema
  • qgis_sld_test.py — quick SLD test script for QGIS Python Console : Copy the code into QGIS Python console and test your SLD

Main workflow

Run the full conversion pipeline with an absolute folder path:

./lyrx_to_sld.sh /full/path/to/folder

What it does:

  1. starts a temporary lyrx2sld container
  2. converts all .lyrx files in the target folder
  3. extracts real .sld files from the returned ZIP payloads
  4. validates the results with GeoServer
  5. applies the SLD fix only if validation fails
  6. removes temporary containers when finished

Notes

  • The data/ folder is ignored and treated as local working data.
  • xmllint may report VendorOption warnings for GeoServer-specific styles.
  • GeoServer validation is the main acceptance check for this project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages