clickgis's People
clickgis's Issues
DB::Exception: Executable file clickgis does not exist inside user scripts folder
Any idea which step I made a mistake on? This was run on Ubuntu 22 LTS.
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$ source "$HOME/.cargo/env"
$ git clone https://github.com/blackrez/clickgis ~/clickgis
$ cd ~/clickgis
$ cargo build
$ ls -lht target/debug/clickgis # 21 MB
$ cd ~
$ curl --user-agent "curl/7.54.1" https://clickhouse.com/ | sh
$ sudo ./clickhouse install # 23.9.1.951
$ sudo cp ~/clickgis/target/debug/clickgis /var/lib/clickhouse/user_scripts/
$ sudo chown clickhouse:clickhouse /var/lib/clickhouse/user_scripts/clickgis
$ sudo vi /var/lib/clickhouse/preprocessed_configs/clickgis_function.xml
<functions>
<function>
<type>executable_pool</type>
<name>st_aswkt</name>
<return_type>String</return_type>
<argument>
<type>String</type>
<name>value</name>
</argument>
<format>TabSeparated</format>
<command>clickgis --function st_aswkt</command>
</function>
<function>
<type>executable</type>
<name>st_asgeojson</name>
<return_type>String</return_type>
<argument>
<type>String</type>
<name>value</name>
</argument>
<format>TabSeparated</format>
<command>clickgis --function st_asgeojson</command>
</function>
</functions>
$ sudo chown clickhouse:clickhouse /var/lib/clickhouse/preprocessed_configs/clickgis_function.xml
$ cd ~/
$ sudo clickhouse \
local \
-- \
--user_scripts_path=/var/lib/clickhouse/preprocessed_configs \
--user_defined_executable_functions_config=/var/lib/clickhouse/preprocessed_configs/clickgis_function.xml
SELECT addresses,
names,
st_asgeojson(hex(geometry))
FROM s3('https://overturemaps-us-west-2.s3.amazonaws.com/release/2023-07-26-alpha.0/theme=places/type=*/*', '', '', 'Parquet')
WHERE tupleElement(bbox, 'minx') > 5.203050
AND tupleElement(bbox, 'maxx') < 5.322269
AND tupleElement(bbox, 'miny') > 43.630781
AND tupleElement(bbox, 'maxy') < 43.674811
LIMIT 10;
Query id: 8973ad68-4638-4936-91a2-25d828d4577b
โ Progress: 0.00 rows, 0.00 B (0.00 rows/s., 0.00 B/s.) 0%
0 rows in set. Elapsed: 24.676 sec.
Received exception:
Code: 1. DB::Exception: Executable file clickgis does not exist inside user scripts folder /var/lib/clickhouse/preprocessed_configs: while executing 'FUNCTION st_asgeojson(hex(geometry) :: 3) -> st_asgeojson(hex(geometry)) String : 2'. (UNSUPPORTED_METHOD)
st_aswkt doesn't exist
In the install notes there is a st_aswkt
function which doesn't point to anything. In the rust code there is a st_fromwkb
function.
Storage format in clickhouse
Actually clickhouse only support Point, Ring and Polygon and the basic type in are geo Point, LineString, Polygon, MultiPoint, MultiLineString, and MultiPolygon.
How to add all this type and benefits from the speed of clickhouse.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.