geostyler-cql-parser
TypeScript icon, indicating that this package has built-in type declarations

3.0.2 • Public • Published

Greenkeeper badge Build Status Coverage Status

geostyler-cql-parser

GeoStyler Translates CQL Filter and Geostyler Style Filters

This is almost a 1on1 transformation from the OpenLayers v2 CQL Parser to TypeScript. Except that it writes Filters in the GeoStyler Style format instead of ol styles.

But you can easily transform the GeoStyler Styles to OL3 with the GeoStyler OpenLayers Parser. So its just two steps from CQL Filter to OL3 Styles.

Building the parser

Run npm run generate everytime the cql-parser.js needs to be updated.

Important: Make sure to remove the export of main in order to prevent errors that occur when using the parser in the browser. I.e. following lines should be removed:

exports.main = function commonjsMain (args) {};
if (typeof module !== 'undefined' && require.main === module) {
  exports.main(process.argv.slice(1));
}

Dependents (6)

Package Sidebar

Install

npm i geostyler-cql-parser

Weekly Downloads

601

Version

3.0.2

License

BSD-2-Clause

Unpacked Size

267 kB

Total Files

9

Last publish

Collaborators

  • jansule
  • annarieger
  • terrestris-info
  • marcjansen
  • kaivolland
  • dnlkoch
  • ahennr
  • buehner
  • hwbllmnn
  • lukaslohoff
  • mholthausen
  • sgoetsch
  • jorzekowsky
  • simonseyock
  • hblitza
  • jweskamm
  • unraveler