clerk

jmv 2024-05-13T21:10:51.263279Z

hello! is anyone here doing gis visualizations with clerk? curious to hear any advice.

wcohen 2024-05-15T10:56:19.717299Z

Also sorry I still haven’t gotten around to a release, but if you want to perform batch JTS operations on geometries that also have attributes (a la a shapefile or geojson), you can cast those maps to Featurelike (https://github.com/willcohen/ovid/blob/master/src/ovid/feature.clj) and apply these versions of JTS functions which will operate on the geometry (https://github.com/willcohen/aurelius/blob/master/src/aurelius/jts.clj)

🙏🏻 1
2024-05-14T08:07:43.705089Z

@kommen has been doing some nice work with GIS data for Vienna

kommen 2024-05-14T08:09:46.759829Z

@jmv305 curious to hear what you are looking for. I’m just a bit swamped right now, maybe chat in a few days?

👍🏻 1
jmv 2024-05-14T14:04:07.293109Z

I’m trying to do property tax lot analysis for my city. I have some useful info using qgis but I’d like to do more data transformation before presenting.

wcohen 2024-05-14T19:08:41.003079Z

there's lots of ways to do property analysis via clojure even if the final visualization stays in qgis, if you're asking

wcohen 2024-05-14T19:10:12.898999Z

i have big aspirations in the next year or two to get my final visualization step happening in clerk/clay/leaflet/mapbox/etc but for now QGIS is just too familiar for me. i'm currently trying to shift my mental model from postgis->qgis to clojure->qgis, which seems like lower-hanging fruit. qgis to leaflet/maplibre is just so fundamentally different that if you don't need a web map, it may end up as a yak shave

wcohen 2024-05-14T19:15:40.937659Z

(for example, re property analysis, slides 18-21, 50, 60-62 were visualized with QGIS, though i ran these GIS layers through tech.ml.dataset to play with the attributes/geometries a little). next step is to see how clerk/clay work with it. https://www.bostonplans.org/documents/zoning/citywide-adu-zoning/2024-05-08-adu-zoning-analysis-public-meeting/adu-zoning-analysis-public-meeting-presentation tech.ml.dataset can handle JTS objects in a column, which lines up well with the idea of a QGIS layer or shapefile or PostGIS table

wcohen 2024-05-14T19:20:43.457879Z

and you can either re-export a tech.ml.dataset layer as a csv and re-join it to the geometries in qgis, or you can get it as a sequence of maps and export it out as a big geojson using https://github.com/Factual/geo/blob/master/src/geo/io.clj#L143 also note i've bumped Factual/geo's deps as a deps.edn branch at https://github.com/willcohen/geo/commit/479420ae259b17ec759fe0613e470c4d9c979e68. Factual/geo seems pretty unmaintained so I'll likely push a point release to clojars of my fork soon.

jmv 2024-05-15T02:05:30.849009Z

Thank you, this is great! I was initially wondering about viewing in clerk but manipulating in Clojure and viewing in qgis is totally doable.