distribute-geoparquet
Plan and produce a distribution-ready GeoParquet publication using evidence-backed compression, spatial ordering, row-group, partitioning, compatibility, STAC, and frontend-access choices; route file-level metadata and data checks to validate-geoparquet.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- distribute-geoparquet
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Plan and produce a distribution-ready GeoParquet publication using evidence-backed compression, spatial ordering, row-group, partitioning, compatibility, STAC, and frontend-access choices; route file-level metadata and data checks to validate-geoparquet.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/distribution-recommendations.md8.8 KB
- 参考文档references/tool-recipes.md9.9 KB
- 参考文档references/troubleshooting.md8.2 KB
03 SKILL.md 正文
Distribute GeoParquet
Use this sub-skill when a user is planning a public or internal GeoParquet
release, choosing a writer, designing a partitioned distribution, or diagnosing
spatial-access performance. It is a planning and recipe skill: it does not
install, bundle, invoke, or claim to verify GDAL/OGR, DuckDB, geoparquet-io
(gpio), Sedona, Spark, cloud storage, or frontend readers.
For concrete file metadata, schema, native-type, geo-metadata, CRS, bbox,
compression, and data-validity checks, route to
../validate-geoparquet/SKILL.md. Ask the
user to probe the installed tool and version before selecting a command. Keep
the tool/version output and any validation report as evidence; do not infer
support from a command name alone.
Routing workflow
- Establish the publication target: one file or a dataset, approximate size and row count, object-store layout, query shapes, frontend versus analytic access, expected readers, and whether old GeoParquet readers must work.
- Choose the format target. Prefer native GeoParquet 2.0 when the complete
reader set supports Parquet
GEOMETRY/GEOGRAPHYand geospatial statistics. Choose GeoParquet 1.1 with the bbox covering when compatibility with a wider or older reader population is more important. Do not describe GDAL's native type-only output as conformant GeoParquet 2.0; seereferences/tool-recipes.md. - Plan physical layout: spatial ordering, row groups, and—normally for data above roughly 2 GB—spatial partitioning. Tune the plan to feature size and access patterns, not just row counts.
- Plan publication metadata: STAC Collection/Items, media type
application/vnd.apache.parquet, stable object URLs, and reader/browser access constraints. - Hand the plan and candidate writer recipe to the user. Require them to
install/probe the external tools and then use
../validate-geoparquet/SKILL.mdon the resulting files. If a required tool or reader capability is unknown, mark it unresolved rather than claiming success.
For detailed recommendations, read
references/distribution-recommendations.md.
For copyable commands and code, read
references/tool-recipes.md. For failure modes,
read references/troubleshooting.md.
Decision guardrails
- Use ZSTD, normally level 15 or higher. Levels 17–22 can take substantially longer for less than roughly one percent additional size reduction; choose based on publishing time and benchmark evidence.
- Spatial ordering is a prerequisite for useful row-group bbox pruning. A valid bbox or native geometry statistic does not make unsorted data fast.
- Start with 50,000–150,000 rows per row group. If byte sizing is available, target about 128–256 MiB per group, reducing row counts for wide or complex features. Frontend bbox access often needs smaller groups than full scans.
- Partition spatially, rather than only by arbitrary attributes, when the dataset is larger than about 2 GB or selective spatial reads dominate. KD trees, grids, geohash/S2/H3/A5 cells, and administrative boundaries are alternatives with different balance and overlap trade-offs.
- A single file can serve analytics and a frontend, but row-group size is a compromise: small groups reduce irrelevant network transfer for bbox reads; too many groups increase metadata and full-scan overhead. Consider separate distributions when the workloads conflict.
- STAC describes the published asset; it is not a substitute for GeoParquet metadata or validation. Use the Parquet media type and describe partition extents with Items.
.parquetandapplication/vnd.apache.parquetare the interoperable file extension and media type. Avoid presenting.geoparquetas the default.
Synthetic planning cases
- 10 GB public data with old-reader compatibility: probe the actual reader matrix first. If old readers do not reliably understand native Parquet geospatial types, select a GeoParquet 1.1 distribution with bbox covering, ZSTD level 15, spatial ordering, 100,000-row (or byte-sized) row groups, and spatial partitions. Publish a STAC Collection with per-partition Items. Only choose 2.0 as the public canonical distribution when the old-reader gate is explicitly cleared; a second 2.0 distribution may be preferable to silently sacrificing compatibility.
- Slow bbox query from unsorted data and oversized row groups: do not first add arbitrary indexes or claim the bbox metadata is broken. Confirm ordering and inspect row-group sizing with the validation skill, then rewrite with spatial ordering and smaller groups (for example 100,000 rows as a starting point, or a byte target around 128–256 MiB). Repartition if the dataset is large. Re-run the same selective query and metadata/data checks; retain both before/after observations.
References
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).