kenro 0.4.0

SpatiaLite-style spatial SQL for SQLite in pure Rust — PostGIS-compatible ST_ functions, GeoPackage R-tree, CRS transform, H3, MVT. Use via rusqlite, loadable extension, or WASM
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{"_generated_by":"PostGIS 3.5.2 dea6d0a (postgis/postgis:17-3.5)","_script":"scripts/golden/transform.sql"}
{"id":"berlin_utm33:transform","a":"POINT(13.377704 52.516275)","src_srid":4326,"to_srid":32633,"fn":"transform","expected":"POINT(389918.04155008943 5819699.1324378075)"}
{"id":"line_utm33:transform","a":"LINESTRING(13.3 52.5,13.5 52.6)","src_srid":4326,"to_srid":32633,"fn":"transform","expected":"LINESTRING(384603.1511716886 5818010.35925942,398409.6147979013 5828831.862960503)"}
{"id":"london_3857:transform","a":"POINT(-0.127647 51.503459)","src_srid":4326,"to_srid":3857,"fn":"transform","expected":"POINT(-14209.599041288993 6710837.652984613)"}
{"id":"mercator_inverse:transform","a":"POINT(15556200 4257415)","src_srid":3857,"to_srid":4326,"fn":"transform","expected":"POINT(139.74372222820097 35.68537229367021)"}
{"id":"mercator_to_utm:transform","a":"POINT(15556200 4257415)","src_srid":3857,"to_srid":32654,"fn":"transform","expected":"POINT(386323.7029796998 3949779.602095896)"}
{"id":"nairobi_utm37s:transform","a":"POINT(36.821946 -1.292066)","src_srid":4326,"to_srid":32737,"fn":"transform","expected":"POINT(257639.61967749902 9857083.731196266)"}
{"id":"newyork_utm18:transform","a":"POINT(-74.044502 40.689247)","src_srid":4326,"to_srid":32618,"fn":"transform","expected":"POINT(580735.6449794277 4504700.3806555765)"}
{"id":"polygon_3857:transform","a":"POLYGON((139.7 35.6,139.8 35.6,139.8 35.7,139.7 35.6))","src_srid":4326,"to_srid":3857,"fn":"transform","expected":"POLYGON((15551332.863820316 4245720.660441586,15562464.812899645 4245720.660441586,15562464.812899645 4259419.96554792,15551332.863820316 4245720.660441586))"}
{"id":"quito_equator:transform","a":"POINT(-78.467834 -0.180653)","src_srid":4326,"to_srid":32717,"fn":"transform","expected":"POINT(781857.6711283866 9980012.767440937)"}
{"id":"sydney_utm56s:transform","a":"POINT(151.215297 -33.856784)","src_srid":4326,"to_srid":32756,"fn":"transform","expected":"POINT(334900.2612919739 6252290.522406041)"}
{"id":"tokyo_3857:transform","a":"POINT(139.745433 35.658581)","src_srid":4326,"to_srid":3857,"fn":"transform","expected":"POINT(15556390.442245528 4253743.76954561)"}
{"id":"tokyo_utm54:transform","a":"POINT(139.745433 35.658581)","src_srid":4326,"to_srid":32654,"fn":"transform","expected":"POINT(386440.56308509345 3946806.0096163624)"}
{"id":"utm54_inverse:transform","a":"POINT(385000 3946000)","src_srid":32654,"to_srid":4326,"fn":"transform","expected":"POINT(139.7296366934445 35.65114860207944)"}
{"id":"utm56s_inverse:transform","a":"POINT(334000 6252000)","src_srid":32756,"to_srid":4326,"fn":"transform","expected":"POINT(151.20551468693637 -33.85926170450405)"}
{"id":"srid0:transform","a":"POINT(1 2)","src_srid":0,"to_srid":4326,"fn":"transform","expected":{"error": true},"note":"PostGIS raises \"Input geometry has unknown (0) SRID\"; kenro raises too"}
{"id": "unknown_epsg:transform", "a": "POINT(1 2)", "src_srid": 4326, "to_srid": 27700, "fn": "transform", "expected": "POINT(733746.4910117043 -5305711.973378752)", "note": "EPSG:27700 (British National Grid) is outside kenro's built-in CRS table, so it needs the crs-full feature — which `full` now enables. Runners skip this vector when the build lacks the feature.", "needs_feature": "crs-full"}