Giter VIP home page Giter VIP logo

sld4mvt's Introduction

sld4mvt

Use existing SLD files to decide what data to query for MVT files

Installation

Install pipenv globally.

$ pip install pipenv

Clone or download the repository, and change your directory to that folder, and do

$ pipenv install

This will create a virtual environment containing the required packages.

sld4mvt's People

Contributors

fhb1990 avatar

Stargazers

 avatar

Watchers

Rubio Vaughan avatar Bert Temme avatar Anne Blankert avatar James Cloos avatar Olaf avatar Tom van Tilburg avatar  avatar  avatar Tim Ebben avatar  avatar Huub Fleuren avatar Bart Knuiman avatar  avatar  avatar  avatar

sld4mvt's Issues

Implement <Function name="in"> element functionality

I came across SLDs that use this function to style a layer when an attribute attains a value that occurs in some list. Example found:

<ogc:PropertyIsEqualTo>
	<ogc:Function name="in">
		<ogc:PropertyName>visualisatiecode</ogc:PropertyName>
		<ogc:Literal><![CDATA[11300]]></ogc:Literal>
		<ogc:Literal><![CDATA[11301]]></ogc:Literal>
		<ogc:Literal><![CDATA[11302]]></ogc:Literal>
	</ogc:Function>
	<ogc:Literal>true</ogc:Literal>
</ogc:PropertyIsEqualTo>

This function is not yet supported in the parser.

Nested logical operators

Nested logical operators are not yet supported in the parser. These should translate to a WHERE-clause which reads something like

SELECT *
FROM table
WHERE attribute1 = x AND (attribute2 = y OR attribute2 = z)

sql values not escaped

String values in SQL should escape single quotes to prevent SQL errors (or sql insertion)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.