[mapserver-users] Connect Mapserver to datawarehouse via ODBC(?) driver

Никита Щипков n.schipkov at gmail.com
Thu Dec 9 00:57:11 PST 2021


Hello everyone!

I'm researching possibilities to connect a datawarehouse (Clickhouse) to
Mapserver. It was chosen for its query execution performance and
its capability of supporting geographic data types (Points, Rings and
(Multi-)Polygons).

My current questions are:
- What are the most potential capabilities of Mapserver to establish and
test a connection with Clickhouse (ODBC, e.g.)? More info here: Introduction
| ClickHouse Documentation <https://clickhouse.com/docs/en/interfaces/>

- Clickhouse works with a slightly different SQL dialect and methods of
converting geo types into each other than PostGIS. E.g. a Point in CH is
basically a Tuple containing two Float values, and a Ring (polygon without
holes) is an Array of Tuples (Geo | ClickHouse Documentation
<https://clickhouse.com/docs/en/sql-reference/data-types/geo/>). What are
the chances that Mapserver would adequately parse the following query and
related CH Geotypes?

select
Cast(toString(arrayZip(groupArray(ptr.x), groupArray(ptr.y))), 'Ring') as
geom
from default.points_to_ring ptr;


Feel free to ask any questions.
Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20211209/b3fa59a0/attachment.html>


More information about the MapServer-users mailing list