Repository navigation
Description
This tracks what a trial of RustGIS on real, as-published data found. Bigger items have their
own issues; the rest are listed here. Any line can become its own issue when someone takes it
on: say so here.
The trial ran 23 everyday jobs on data exactly as Shelby County, Tennessee, the City of
Memphis, the Census Bureau and FEMA publish it (34 datasets, 4.7 GB): notice lists, zoning
acreage, floodplain exposure, permits by month, geocoding, edit and save back, a zoning map and
a map book, census choropleths, areal interpolation, transit catchments, crashes by road,
routing, terrain by tract, repeatability and pulling a live service. Each result was checked
against an independent reference calculation. Tested on main at d01e6f26.
The calculations held up: apart from #1966, every figure matched the reference, usually to the
last digit. The problems are at the edges: files changing on the way in, edits that can't be
saved back, and a few missing steps.
Wrong without a notice
- [Bug]: Tabulate Intersection reports a negative area when two touching class polygons overlap one zone #1966 Tabulate Intersection gives negative areas when touching class polygons overlap a zone (also hit 77 of 469 traffic zones and a dissolved buffer) (fix(analysis): measure tiny intersection holes without globe complements #2021)
- [Bug]: Tools use features a layer's definition query hides #1995 Tools use features a layer's definition query hides (fix(engine): tools read only the features a definition query keeps (#1995) #2012)
- fix(data): read Shapefile floating point fields at full precision (#1998) #2009 Shapefile
F(floating point) fields are read at 32-bit precision: a valuation of 1,809,878,594 reads as 1,809,878,656, a latitude moves 0.18 m (crates/data/src/io.rs,FieldValue::Floatwidened fromf32) - Text is trimmed on read (CSV, Excel, dBASE); whitespace-only and
<Null>text become null. Read side of Exports don't say when text is trimmed, blank text becomes null, or an empty field is left out #1907; proposal in [Feature]: Read text as the file has it, in every format: keep spaces, and count<Null>read as empty #2059. (fix(data): read text as the file has it: keep spaces, count <Null> read as empty #2303) - fix(data): GeoPackage and FlatGeobuf exports keep a system without an EPSG code (#1998) #2014 GeoPackage and FlatGeobuf export write EPSG:4326, where the guide says the layer's own system is the default (Data: export layers in their own or a chosen coordinate system #521)
- CSV export puts an apostrophe before text starting with
+ - = @(+35.1329460→'+35.1329460, every TIGERINTPTLAT), with no notice or guide line (fix(data): export valid signed numbers in CSV text columns without apostrophe #2043) - A zipped Shapefile set skips its
.dbf-only tables (FEMA flood zips: 5 tables, 2,126 rows) without a notice (named in fix(data): name the .dbf tables a zip leaves out (#1998) #2091; reading them is a line below) - Through GDAL, a polygon with
"coordinates":[]is dropped without a notice (the GeoJSON reader keeps it) (counted in fix(data): report features GDAL conversion leaves out (#1998) #2090, for any feature GDAL's conversion drops) - Slope is in degrees and nothing says so; no percent option (unit stated in fix(raster): state slope units in help and results (#1998) #2068; percent option in feat(raster): slope in percent as an option (#1998) #2245)
- A remap range
[21,21,1]matches nothing (ranges are half-open), with no notice (said in fix(analysis): report empty remap ranges and results (#1998) #2067; making[k,k]match k needs a proposal) - Task and Model from history leave out Add Field, Calculate Field, Calculate Geometry and data loads without a notice (sibling of model.new drops steps and history runs without a word #1923)
- Clip keeps zero-area slivers (tracts that only touch the boundary) without a notice; a map series then makes empty pages (counted in fix(analysis): warn about Clip boundary slivers (#1998) #2118; the slivers are kept)
Edits that can't be saved back
- [Feature]: Publish a layer's edits back to its source file (Shapefile, GeoJSON) #1385 / feat(data): publish a layer's edits back to its Shapefile (#1385) #1958 Publish a layer's edits back to its Shapefile
- [Feature]: Full 3D scenes: heights in the data, 3D objects and point clouds, a scene camera #726 Z kept and written back (a published GeoPackage with Z geometry can't be saved after a geometry edit)
- feat(table): edit standalone tables: cells, rows and fields #1955 Editable standalone tables (three jobs needed a detour to reshape a Census join key)
Data as published that doesn't open, or opens wrong
- [Feature]: Open .csv.gz, .dat and GTFS zips, and say what to do when a published form is refused #1996 Open
.csv.gz,.datand GTFS zips; refusals say what to do (also zipped File Geodatabases) - Delimited text: GTFS
stop_lat/stop_lonnot recognised; projectedX/Yplaced as degrees whileLongitude/Latitudecolumns are ignored; ZIP codes typed as numbers; rows at exactly 0,0 not mentioned (fix(data): prefer longitude/latitude columns over projected X/Y, and count rows at 0,0 (#1998) #2136; ZIP codes keep their digits, so their typing is left as it is) - dBASE
Nfields with decimals declared read as Integer when every value is whole (fix(data): keep Shapefile fields with declared decimals as Double #2047) - A GDAL-read file is re-listed with
ogrinfoon every run, and a busy machine hits the 5-minute limit (fix(data): reuse GDAL's layer listing with its conversion (#1998) #2142) - ArcGIS layers: a failed page isn't retried at a smaller page size (FEMA NFHL layer 28); no
wherefilter onservice.add; a.../MapServer/21address is refused without saying what to use. The one-minute read limit is [Feature]: Read large ArcGIS layers live, a view at a time (an ArcGIS FeatureSource) #829. (fix(services): retry failed ArcGIS pages smaller, add a where filter, and point layer addresses to their service (#1998) #2144)
Missing steps
- [Feature]: Tabulate a categorical raster by zone (area of each class in each polygon) #1997 Tabulate a categorical raster by zone (land cover acres per tract took 45 commands) (feat(analysis): Tabulate Area, the area of each raster class in each zone (#1997) #2255)
- Convert to Date: a format for
6/23/2021 5:00:00 AMand other non-ISO spellings (follow-up to [Feature]: A date and date-time field type #853). feat(edit): choose date formats when converting fields #2098 added patterns, but they read months, days and hours as two digits and have no AM/PM, so this value still doesn't convert (feat(data): read unpadded dates and AM/PM times in Convert Field (#1998) #2248) - Sort a table and keep the top N rows (Summary Statistics output, Export Table) (feat(engine): sort and limit Export Table (#1998) #2246)
- Tabulate Intersection: choose the area unit (only km²); zone fields optional (feat(analysis): Tabulate Intersection takes an area unit, and zone fields become optional (#1998) #2269)
- Geocode Addresses: a match-status column in the output (fix(engine): mark geocoded rows with match status (#1998) #2133)
- Layouts: text that runs off the page is cut without a warning; no "No data" legend entry;
layout.newandinfodon't print element ids (fix(layout): say when text is cut off, return element ids, and offer a No data legend row (#1998) #2131) - Project log: the app version and an input fingerprint per file read; GeoPackage
last_changemakes identical runs differ byte for byte (version and input fingerprints in feat(engine): record the RustGIS version and input file fingerprints in the Session log (#1998) #2253;last_changerecords when the file was written, as the GeoPackage standard intends, so runs are compared on their data) - Network routing rebuilds the graph for each route (190 pairs took 35 times the reference); service area and OD matrix added in feat(analysis): Service Area and OD Cost Matrix over a line network (#2344) #2351 (perf(analysis): reuse the routing graph between routes on the same network (#1998) #2247)
- A moved read-in-place file gives "could not draw the map" without naming the file (Tracking: project format 2, a .rgis that links to its data and .rgispkg as the complete package #1853) (fix(render): name the layer and file when a read-in-place source is missing (#1998) #2254)
Guide
- Map Series is one bullet: page name, margin, per-page scale, the 500-page cap, a locator (docs(guide): explain map series, monthly counts, parcel areas and sentinels (#1998) #2107)
- A recipe for counting records by month (docs(guide): explain map series, monthly counts, parcel areas and sentinels (#1998) #2107)
- Which area to report: ellipsoid acres against a State Plane
Shape__Areaor a deed (docs(guide): explain map series, monthly counts, parcel areas and sentinels (#1998) #2107) - How quantile breaks are placed (at an observed value, not interpolated) (docs(guide): explain map series, monthly counts, parcel areas and sentinels (#1998) #2107)
- Calculate Geometry's unit error lists the valid units; Calculate Field on a missing field points to Add Field (fix(engine): point calculation errors to the valid units and Add Field (#1998) #2121)
- Sentinel values such as FEMA's
-9999in vector fields are averaged as real values (docs(guide): explain map series, monthly counts, parcel areas and sentinels (#1998) #2107) - FlatGeobuf export writes in spatial-index order (docs(guide): explain map series, monthly counts, parcel areas and sentinels (#1998) #2107)
Found while fixing these
-
only_a_supported_download_replaces_the_installed_runner(crates/geolibre/src/install.rs, from fix(geolibre): install the pinned runner release and pass over runners outside the supported range #1946) is flaky under parallel tests: the fake runner script is written and run at once, and a fork in another test can hold it open ("text file busy"), so a 2.0.0 runner reads as one that "doesn't start". Seen once on the fork's Linux CI; the same test code passed in an earlier run of the same branch. Writing the script to a temporary name and renaming it into place avoids it. - A Shapefile read in place (
source/shp.rs) reads a number that isn't finite (nan,inf), or isn't a number, as empty without a notice; the whole read counts them (fix(data): read Shapefile floating point fields at full precision (#1998) #2009). - A zip's MapInfo
.midwithout its.mifis passed over without a notice (read_zip_budgetincrates/data/src/io.rs), as unpaired.dbftables were before fix(data): name the .dbf tables a zip leaves out (#1998) #2091. (feat(data): open dBASE tables on their own and from zips (#1998) #2252) - Opening a
.dbfon its own as a table: today it is refused ("part of a Shapefile"), and a zip's.dbf-only tables are named but not read (fix(data): name the .dbf tables a zip leaves out (#1998) #2091). (feat(data): open dBASE tables on their own and from zips (#1998) #2252) - A map series page whose name field is empty shows
<Null>as its{pageName}(page_nameincrates/engine/src/cmd/layout.rs); it could fall back to the row number, as it does for a missing field. (fix(layout): number map series pages whose name is empty (#1998) #2145)
Second round: Twin Cities, Minnesota (main at 3f50f1df)
The same jobs on data nobody had looked at while fixing the lines above: St. Louis Park, Hennepin and
Ramsey counties, Minneapolis, Saint Paul, the Metropolitan Council, Metro Transit and the Census
Bureau. 20 jobs ran; 10 came out clean, against 5 of 23 in the first round. Every published file the
first round couldn't open (.dat, .csv.gz, GTFS zip) opened directly, and every figure matched
the reference again. Three jobs weren't run because their blockers are known: #726, #829 and network
service areas.
Wrong without a notice
- Exporting a layer ignores its definition query: Minnesota tracts with
COUNTYFP = '053'export
all 1,505, not the 329 drawn (share.exportLayer, any format). Tools follow the query since [Bug]: Tools use features a layer's definition query hides #1995. (fix(export): honor layer definition queries (#1998) #2417) - Coordinates far outside a projected system's range come back at exactly (−1, −1): 5 of
Minneapolis's 864 published crash points (x ≈ 3.6 × 10⁷ in a Hennepin County feet file). This is
the reading side of Reprojection outside a system's area of use can be silently wrong (as in PROJ) #1925. - A CSV row at X = 0, Y = 0 in the system given by
crslands at (−103.6°, 41.7°); the notice
about rows at 0,0 covers only longitude/latitude columns. Minneapolis's assessor CSV has 23 such rows. - CSV export still puts an apostrophe before a zero-padded signed number: TIGER's
INTPTLON
-093.1445780is written'-093.1445780, as is every interior longitude east of 100° W. fix(data): export valid signed numbers in CSV text columns without apostrophe #2043
keeps the apostrophe for codes like-007, and nothing tells which values got one. (fix(data): preserve padded CSV decimals and report export losses (#1998) #2413) - KML export leaves out a field whose values are all empty (31 of the 98 St. Louis Park parcel
fields). (fix(data): preserve padded CSV decimals and report export losses (#1998) #2413) - XY Table To Point with an empty Coordinate System places the points as WGS 84 without a
notice (xy_table_to_point,crates/analysis/src/tools.rs); TIGER's interior points are NAD83.
Data as published that doesn't open, or opens wrong
-
crsrefuses an ESRI code:ESRI:103734(Hennepin County feet) andESRI:103768(Ramsey County
feet) are refused, while the same system's WKT from the Shapefile's.prjworks. - Delimited text pairs a projected X with a latitude: Saint Paul's permits CSV has
PROPX,PROPY,
LatitudeandLongtitude(the publisher's spelling), and its points land at (PROPX,Latitude).
The notice then asks for acrs, which can't fix it. (fix(data): pair coordinate columns and explain file size limits (#1998) #2363) - A 643 MB KML (Minneapolis permits, 412,011 points) is refused as "too large to open", without
the limit or what to do instead. (fix(data): pair coordinate columns and explain file size limits (#1998) #2363) - A county datum such as
D_NAD_1983_HARN_Adj_MN_Hennepingets "possibly a few hundred metres off";
points from that file land a median 2.2 m from the publisher's own latitude/longitude, as with GDAL.
Size
- Joining the Minneapolis assessor table (132,079 rows) to Hennepin's 448,126 parcels and
summarising it peaked at 12.9 GB (626 s, against 83 s for the reference); at62526f0cdthe same job
takes 38 s and peaks at 9.3 GB, with the same answers (fix(engine): avoid redundant work in bulk field operations (#1998) #2364). Measured on the same day, the reference
(pandas + GeoPandas, reading only the 3 parcel fields it needs) takes 16 s and peaks at 1.1 GB. QGIS 4.2.3
(PyQGIS, one process, temporary layers) gets the same counts in 195 s with a 5.7 GB peak. Still open: the project can't be
saved afterwards ("too large to save", 1,598 MiB).
Missing steps
- Map Series: nothing marks the page's own feature, so 35 neighbourhood pages show 35 identical
outlines. (feat(layout): expose map series pages to expressions (#1998) #2382) - Tabulate Intersection leaves out zones that overlap no class polygon (164 of 3,030 traffic zones
here; it says so), so a table with every zone needs the zeros added by hand. (feat(analysis): optionally keep zones with no class overlap (#1998) #2362) - An unknown parameter is ignored without a notice (Summary Statistics'
output), as [Bug]: gp.run and model steps ignore a tool parameter they don't know, without a notice #2307 says. (fix(engine): gp.run and model steps say which tool parameters they ignore (#2307) #2601)
Guide
- Hatch only the features a field flags (a second layer from a selection, then its fill), as a
margin-of-error flag on a choropleth needs. (docs(guide): add four recipes from the Twin Cities trial (#1998) #2360) - Departures per stop in a time window on one service date, from a GTFS feed's tables. (docs(guide): add four recipes from the Twin Cities trial (#1998) #2360)
- Points from text latitude/longitude columns such as TIGER's
INTPTLAT/INTPTLON(XY Table To
Point), for "the block's interior point". (docs(guide): add four recipes from the Twin Cities trial (#1998) #2360) - Compare two fields that spell the same codes differently (
N-1andN1, current against
proposed zoning). (docs(guide): add four recipes from the Twin Cities trial (#1998) #2360)
Found while fixing these (second round)
- A map series resolves its pages by row in the index layer's loaded features (
series_index,series_page_name,series_env), so over a layer read in place, which holds only the features in view, the page count, extents,{pageName}and the page variables follow the drawing window rather than the whole layer. Either refuse such an index layer (asking for Load All Features) or pin each page to a feature id. - On a layer read in place, the map view evaluates a definition query one chunk at a time with
@row_numberrestarting each chunk (crates/map/src/source/window.rs), so a query on@row_numberdraws different rows than Export Features writes (fix(export): honor layer definition queries (#1998) #2417 numbers by position in the whole layer). - Add Field on a layer whose rows are shared with the undo history copies every row to append one null: on the 448,126-parcel join result in the size line above it adds 3.1 GB, more than loading the parcels (2.6 GB), and Calculate Field after it adds 1.4 GB more. Any edit does this, and each Undo step keeps its copy: [Bug]: Undo steps on a large layer each hold a full copy of its rows, so memory grows with every edit #2431. Undo history is bounded by memory (fix(engine): bound undo history by memory #2437) and an edit's copy is checked against free memory (fix(engine): check that an edit's copy fits beside what the session holds #2445, fix(data): memory limits and the edit check plan for what is held and free (#2431) #2463); the copy itself is still made.
Reproductions for each line are kept with the trial; ask @Mavrick-F, or say which line you're
taking and it'll be added here.
Activity
[-]Tracking: findings from a real-data trial (Shelby County, Tennessee)[/-][+]Tracking: findings from a real-data trial[/+]fix(data): read Shapefile floating point fields at full precision (#1998
fix(data): GeoPackage and FlatGeobuf exports keep a system without an…
fix(data): export valid signed numbers in CSV text columns without ap…
docs(raster): show the radians in the percent slope formula (opengeos…
fix(raster): state slope units in help and results (#1998) (#2068)
fix(analysis): report empty remap ranges and results (#1998) (#2067)
fix(data): name the .dbf tables a zip leaves out (#1998) (#2091)
fix(data): report features GDAL conversion leaves out (#1998) (#2090)
fix(data): keep Shapefile fields with declared decimals as Double (#2047
docs(guide): explain map series, monthly counts, parcel areas and sen…
fix(analysis): warn about Clip boundary slivers (#1998) (#2118)
fix(engine): point calculation errors to the valid units and Add Field (
fix(layout): warn on cut text, list element ids and key no data (#1998)…
fix(engine): mark geocoded rows with match status (#1998) (#2133)
22 remaining items
fix(models): keep blank tabulated units compatible (opengeos#1998)
fix(render): name the layer and file when a read-in-place source is m…
feat(engine): record the RustGIS version and input file fingerprints …
feat(analysis): Tabulate Intersection takes an area unit, and zone fi…
fix(data): read text as the file has it: keep spaces, count <Null> re…
fix(analysis): Summary Statistics counts records by case fields alone (…
docs(guide): add four recipes from the Twin Cities trial (opengeos#1998…
feat(analysis): optionally keep zones with no class overlap (opengeos…
fix(engine): avoid redundant work in bulk field operations (opengeos#…
feat(layout): expose map series pages to expressions (opengeos#1998) (o…
docs(data): say spreadsheets show padded CSV decimals as numbers (ope…
fix(data): GPX export names every field it leaves out (opengeos#1998)
fix(data): pair coordinate columns and explain file size limits (open…
fix(data): preserve padded CSV decimals and report export losses (ope…
fix(export): honor layer definition queries (opengeos#1998) (opengeos…