No Clocks

No Clocks

4334 bookmarks
Newest
Quick Start | Geo-Agent
Quick Start | Geo-Agent
Map + AI Data Analyst — interactive MapLibre maps with LLM-powered data analysis.
·boettiger-lab.github.io·
Quick Start | Geo-Agent
Guide to creating PMTiles | Tekantis Icon Map
Guide to creating PMTiles | Tekantis Icon Map
Vector tiles unlock all sorts of possibilities in Icon Map Pro as they allow us to place complex lines and polygons on the map without having to load large files into the report.
·icon-map.com·
Guide to creating PMTiles | Tekantis Icon Map
geoparquet/format-specs/distributing-geoparquet.md at main · opengeospatial/geoparquet
geoparquet/format-specs/distributing-geoparquet.md at main · opengeospatial/geoparquet
Specification for storing geospatial vector data (point, line, polygon) in Parquet - opengeospatial/geoparquet
Use zstd for compression, and set the compression level to 15.
Be sure to include the bbox covering, and use GeoParquet version 1.1.
Spatially order the data within the file.
Set the maximum row group size between 50,000 and 150,000 per row.
If the data is larger than ~2 gigabytes consider spatially partitioning the files.
Use STAC Metadata metadata to describe the data.
Parquet has built in compression, enabling users to directly use files that are similar in size to the zipped versions of other formats. You can easily change the compression algorithm, and new ones continue to be added. The default for most Parquet libraries is snappy, which excels at speed and gets good compression. More recently the zstd library has been added to the Parquet ecosystem, and it achieves a better compression ratio with similar speeds to snappy. So it is recommended to use zstd, since at this point most all Parquet libraries support zstd and because better compression makes for faster downloads.
zstd does have a nice ability to control compression, with options ranging up to 22. The cool thing is that decompression times are pretty constant with zstd, so if you're distributing data then it makes a lot of sense to spend a bit more time up to do a higher compression level. Then downloads will go faster, but it won't take clients longer to decompress. Many tools default to one of the lowest compression levels, indeed the core Apache Arrow library that many tools use defaults to 1. So our recommendation is generally to increase the compression level, particularly if you're making data for distribution. But don't bother to go all the way to 22 - the consensus seems to be that the levels 17 and above take way longer, but the size gains are less than one percent. There is more research needed on this topic, but the current recommendation is to aim for something between 11 and 16.
The other new feature is the Native geometry encodings, based on GeoArrow. Using these will enable the same types of speed ups as the bbox covering, but will store the data more efficiently. Parquet readers will be able to use the min/max statistics directly from the geometry column, instead of needing the bbox column. For points this will be a big win, since the bbox for a point adds some overhead. But we do not yet recommend using the native encodings, since the tool support isn't yet extensive enough to be sure that most clients will understand them. But as the ecosystem matures this will be a great option.
GeoParquet 1.1 included a couple new features that help with spatial indexing and querying. The easiest one to use is the bbox covering, which adds a column called bbox that contains the bounding box of each geometry as a native Parquet 'struct' of four values. This enables Parquet readers to quickly filter rows based on the bounding box, and thus greatly increasing the performance of spatial queries. The bbox column by itself is not sufficient to speed up spatial queries - for that you'll need to be sure to follow the next two recommendations. But be sure to include it. It is possible for some tools to make use of the bbox column even if the GeoParquet version is not 1.1, but it's best to actually distribute the files with GeoParquet 1.1 to ensure all tools know they can use the bbox column.
It is essential to make sure that the data is spatially ordered in some way within the file, in order for the bbox column to be used effectively. If the GeoParquet data was converted from a GIS format like GeoPackage or Shapefile then often it will already by spatially ordered. One way to check this is to open the file in a GIS tool and see if the data loads all the spatial data for an area in chunks, or if data for the whole are appears and continues to load everywhere.
GeoParquet itself does not have a specific spatial index like other formats (R-tree in GeoPackage, Packed Hilbert R-tree in FlatGeobuf). Instead data can be ordered in any way, and then Parquet's Row Group statistics will be used to speed up spatial queries (when using bbox covering or native arrow types). Most tools that provide GeoParquet writers have some ability to apply a spatial ordering. The examples below will show how to do this for a few common tools.
A row group in Parquet is 'a logical horizontal partitioning of the data into rows', and there's some good explanation in this article. It ends up being important to get this right, since it will impact the performance of spatial queries. If the row group size is too big then the GeoParquet reader will not be able to 'skip' over large chunks of data and if it's too small then the file metadata can get large, which can slow things down if there are a lot of files.
Unfortunately there's no single 'best' size for row groups, and it will depend on the size of the data and the access patterns. The community is still learning what works best, so there are no solid recommendations at this point - hopefully we'll learn more and update this section in the future. As of this writing there are several larger global datasets that are being distributed with row group sizes of 50,000 to 200,000 rows, so that's what we recommend as a starting point.
Most geospatial tools give you the ability to set the maximum number of rows per row group, but some tools may let you set the byte size for the row group. The core thing that really matters is the byte size for the row group, as that will be the amount of data that needs to be read (and moved over the network in cloud-native geo access patterns). So if your data rows are large then you'll want to set a smaller row group size, and if your rows are small it could make sense to go to the larger end of the spectrum. If you can set the byte size for row groups a common recommendation is to aim for 128MB - 256MB per row group.
One of the useful features of Parquet is the ability to partition a large dataset into multiple files, as most readers can be pointed at a folder of files and it will read them as a single dataset. The reader will use the row group statistics to quickly figure out if a given file needs to be read, and multiple files can be read in parallel. So with spatial data, where most every query contains a spatial filter, partioning the data spatially can greatly accelerate the performance.
Similar to the row group size, the community is still figuring out the best way to spatially partition the data, and the overall query performance will depend on both row group size and the size of the partitioned files, along with the nature of the data. Hopefully someone will do a set of robust testing to help inform more definitive recommendations. For now the recommendation is to spatially partition your data 'in some way', at least if the dataset is larger than a couple gigabytes. If it's smaller than that then the additional overhead of splitting it up is likely not worth it. There was some great discussion on the topic, and an nice blog post with some further experimentation. The leading approach at the moment is to use a K-dimensional tree (KD-tree), which will enable balancing of the file sizes and spatial separation; however, sorts based on S2, GeoHash or R-tree can all work. Partitioning based on admin boundaries is another approach that works and is used in the Google-Microsoft-OSM Buildings - combined by VIDA dataset.
Out of the box GDAL/OGR defaults to snappy compression, with max row group size of 65536. Version 3.9 and later will write out the bbox column by default. And there is a built-in option to spatially order the data that works by creating a temporary GeoPackage file and using its r-tree spatial index. It defaults to false since it can be an intensive operation, and GDAL is usually translating from formats that already have spatial indexes.
GDAL/OGR with recommended settings These examples are done with the `ogr2ogr command-line tool, but the layer creation options will be the same calling from C or Python. You can easily control the compression and the max row group size, and the following command is sufficient if your source data is already spatially ordered in a file format with a spatial index (like FlatGeobuf or GeoPackage): ogr2ogr out.parquet -lco "COMPRESSION=ZSTD" -lco "MAX_ROW_GROUP_SIZE=100000" in.fgb GDAL 3.12 and above introduces COMPRESSION_LEVEL as a Parquet layer creation option. So if you're working with that then you should definitely use it (along with the new gdal CLI, which is used here. gdal vector convert vegetation.fgb vegetation.parquet --lco compression=zstd --lco compression_level=15 If you want to be sure that the output is spatially ordered then you can add SORT_BY_BBOX=YES, like in the following example: ogr2ogr out.parquet -lco SORT_BY_BBOX=YES -lco "COMPRESSION=ZSTD" in.geojson This operation writes the data to a GeoPackage as an interim step, so it can take additional storage and computation, especially with large files, so it's not enabled by default.
None of the tools to write GeoParquet currently write out STAC Metadata, but that makes sense, as they don't write out other metadata formats either. To write STAC metadata you can write it by hand if you've just got one or two GeoParquet files. If you've got more then the best option is to use something like rustac or pystac to do it a bit more programmatically. You should be able to populate some of the STAC fields like bbox from the GeoParquet files directly.
·github.com·
geoparquet/format-specs/distributing-geoparquet.md at main · opengeospatial/geoparquet
Rust Programming Language
Rust Programming Language
A language empowering everyone to build reliable and efficient software.
·rust-lang.org·
Rust Programming Language
Plugins | Cursor Docs
Plugins | Cursor Docs
Browse, install, and manage plugins from the Cursor Marketplace.
·cursor.com·
Plugins | Cursor Docs
Meet the new Cursor · Cursor
Meet the new Cursor · Cursor
Cursor 3 is a unified workspace for building software with agents.
·cursor.com·
Meet the new Cursor · Cursor
Upload Anything: how we revolutionized data upload
Upload Anything: how we revolutionized data upload
Upload a CSV, XLS, SHP, GeoJson, GDB, KML, GML, OSM, GPX, or even image files, & it just works in Felt. Here's how we delivered this buttery smooth experience.
·felt.com·
Upload Anything: how we revolutionized data upload
US Parcel Layer
US Parcel Layer
Landrecords.us US Nationwide Parcel Layer
·kaggle.com·
US Parcel Layer
GeoLake Gateway — Unified Raster + Vector Esri Service
GeoLake Gateway — Unified Raster + Vector Esri Service
GeoLake Gateway serves cloud-native geospatial data from S3 as Esri-compatible ImageServer, MapServer, FeatureServer, and VectorTileServer — no ArcGIS Server required.
·geolakegateway.techmaven.net·
GeoLake Gateway — Unified Raster + Vector Esri Service
Public DuckLake on Object Storage
Public DuckLake on Object Storage
This guide explains how to set up a public read-only DuckLake on object storage such as Amazon S3, Backblaze B2, Cloudflare R2, Leafcloud Object Storage, etc. Users can query this DuckLake through HTTPS without authentication. Warning Please check the pricing models of the providers to understand the costs of serving DuckLakes. The setup described here is conceptually similar to Frozen DuckLakes but it is simpler to set up. Steps Creating the Bucket Create a new public bucket: Amazon S3 Backblaze B2 Cloudflare R2 Make sure that the bucket is accessible through the internet. The exact settings for this vary from…
·ducklake.select·
Public DuckLake on Object Storage
Macros
Macros
DuckLake supports both scalar and table macros. Macros can be created using the standard CREATE MACRO syntax. Macros are stored in the DuckLake metadata across three catalog tables: ducklake_macro, ducklake_macro_impl, and ducklake_macro_parameters. Macros support time travel, so attaching at a previous snapshot will reflect the macros that existed at that point in time. Scalar Macros Scalar macros return a single value. CREATE MACRO add_values(a, b) AS a + b; SELECT add_values(40, 2); Table Macros Table macros return a table. CREATE MACRO filtered_table(threshold) AS TABLE SELECT * FROM my_table WHERE value threshold; SELECT * FROM filtered_table(100); Default Parameters Macros can…
·ducklake.select·
Macros
Queries
Queries
This page explains the queries issued to the DuckLake catalog database for reading and writing data. Reading Data DuckLake specifies tables and update transactions to modify them. DuckLake is not a black box: all metadata is stored as SQL tables under the user's control. Of course, they can be queried in whichever way is best for a client. Below we describe a small working example to retrieve table data. The information below is to provide transparency to users and to aid developers making their own implementation of DuckLake. If you are using the ducklake DuckDB extension, you do not need…
·ducklake.select·
Queries
Introduction
Introduction
This page contains the specification for the DuckLake format, version 0.3. Building Blocks DuckLake requires two main components: Catalog database: DuckLake requires a database that supports transactions and primary key constraints as defined by the SQL-92 standard. Data storage: The DuckLake specification requires a storage component for storing the data in Parquet format. Catalog Database DuckLake uses SQL tables and queries to define the catalog information (metadata, statistics, etc.). This specification explains the schema and semantics of these: Data Types Queries Tables If you are reading this specification for the first time, we recommend starting with the “Queries” page, which…
·ducklake.select·
Introduction
Documentation
Documentation
Welcome to the DuckLake documentation. This documentation has two key parts: The DuckLake specification: The specification of the DuckLake lakehouse format. It describes the SQL tables and queries used to define the catalog database. The ducklake DuckDB extension: User guide for the ducklake DuckDB extension. It presents the features of DuckLake through examples. DuckLake Clients DuckLake currently has the following clients: ducklake DuckDB extension DataFusion-DuckLake DuckLake Spark Connection
·ducklake.select·
Documentation