Vanity package for geopython projects
pip install geopython
>>> import geopython
A pure python CQL parser.
License: MIT License
Vanity package for geopython projects
pip install geopython
>>> import geopython
pycql
originally only supports the old CSW CQL dialect. But more filter languages/dialects exist:
As all these filter languages offer more or less the same functionality, it is envisioned to
pygeofilters
where most of the pycql source code will be copied toWhen this is done, this git repository shall be archived and redirect to pygeofilters
Running the following:
from pycql.integrations.sqlalchemy import to_filter, parse
cql_text = 'title = "foo"'
ast = parse(cql_text)
Results in the following warning:
WARNING: Couldn't write lextab module 'lextab'. [Errno 20] Not a directory: '/Users/tkralidi/Dev/pycsw/lib/python3.7/site-packages/pycql-0.0.8-py3.7.egg/pycql/lextab.py'
The parser for BBOX demands a CRS, while in the ECQL specification this is optional:
BBOX ( Expression , Number , Number , Number , Number [ , CRS ] )
E.g. this works: BBOX(geometry,13,48,14,49,"EPSG:4326")
while this throws an error: BBOX(geometry,13,48,14,49)
although it is valid according to specs.
Error: Syntax error at token RPAREN ) 25 1
pycql
should not demand a CRS.
In OGC API - Records, some properties contain dashes (record-created
, record-updated
, keywords-codespace
, etc.). The following CQL:
record-updated < "2000"
results in the following error:
File "/Users/tkralidi/Dev/pycsw/lib/python3.7/site-packages/pycql-0.0.8-py3.7.egg/pycql/integrations/sqlalchemy/evaluate.py", line 102, in to_filter
return FilterEvaluator(field_mapping).to_filter(ast)
File "/Users/tkralidi/Dev/pycsw/lib/python3.7/site-packages/pycql-0.0.8-py3.7.egg/pycql/integrations/sqlalchemy/evaluate.py", line 33, in to_filter
to_filter(node.lhs), to_filter(node.rhs), node.op,
File "/Users/tkralidi/Dev/pycsw/lib/python3.7/site-packages/pycql-0.0.8-py3.7.egg/pycql/integrations/sqlalchemy/evaluate.py", line 85, in to_filter
to_filter(node.lhs), to_filter(node.rhs), node.op
File "/Users/tkralidi/Dev/pycsw/lib/python3.7/site-packages/pycql-0.0.8-py3.7.egg/pycql/integrations/sqlalchemy/filters.py", line 103, in runop
return _op.function(lhs, rhs)
File "/Users/tkralidi/Dev/pycsw/lib/python3.7/site-packages/pycql-0.0.8-py3.7.egg/pycql/integrations/sqlalchemy/filters.py", line 49, in <lambda>
"-": lambda f, a: f - a,
TypeError: unsupported operand type(s) for -: 'str' and 'str'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.