This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import duckdb | |
import flask | |
# Initialize Flask app | |
app = flask.Flask(__name__) | |
# Setup a global DuckDB connection with spatial extension loaded | |
# Connect to a persistent database file with the geometry data | |
config = {"allow_unsigned_extensions": "true"} | |
con = duckdb.connect("tiles.db", True, config) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File: geoparquet.cpp | |
* | |
* Purpose: A minimal example to build a GeoParquet file using Apache Arrow. | |
* | |
* Prerequisites: The Apache Arrow library is needed and can be installed as follows | |
* $ git clone https://github.com/apache/arrow.git | |
* $ cd arrow/cpp | |
* $ mkdir build | |
* $ cd build |