News for hackers. Stuff that matters.
Re:Apache Baremaps: online maps toolkit by bchapuis on Sunday May 28, 2023 @04:28PM (#36107464)
Hi, author here, I just noticed that Baremaps was submitted to HN. Our demo runs on PostGIS, and I'm surprised it's holding up under the load. I'm happy to answer questions.

Here is the fullscreen demonstration for those who are interested. https://demo.baremaps.com/

Re:Apache Baremaps: online maps toolkit by Waterluvian on Sunday May 28, 2023 @05:39PM (#36108061)
As a geographer who migrated to mobile robotics and web mapping, I’ve found that there is a lack of “serious” web spatial analysis tools for in-browser work. Think the geotoolbox you get in ArcGIS or QGIS for building analytical processing pipelines for raster and vector datasets, particularly from web sources.

Lately I’ve revisited the idea and found that with wasm, SharedArrayBuffer for parallelism, and more maturing libraries, it may be possible to provide a much richer set of analytical tools.

Is this an idea you’ve explored? This would be my “if I won the lottery, what would I work on?” project.

Re:Apache Baremaps: online maps toolkit by bchapuis on Sunday May 28, 2023 @05:48PM (#36108123)
Have you tried Turf.js? It goes pretty far when it comes to in-browser spatial analysis. Baremaps is more about the server side of web mapping. We currently use MapLibre for rendering the vector tiles we produce in the browser and plan to support 3d tiles in the future.
Re:Apache Baremaps: online maps toolkit by Waterluvian on Sunday May 28, 2023 @05:51PM (#36108150)
I should try Turf again. The core problem last time was that it fundamentally does not support “Simple”/ Euclidean coordinate systems. When I want to do analysis on flatland indoor maps, it does all the math wrong.
Re:Apache Baremaps: online maps toolkit by urschrei on Sunday May 28, 2023 @07:09PM (#36108700)
GEOS will be available in WASM sooner or later (if it isn’t already, and if the licence works for you), rust-geo (under active development, I’m one of a few core contributors who work on it) is available compiled to WASM today (you can see a demo from a core contributor at rgis.app). Those are both vector only. For a more mature product that “only” leverages JS, placemark is the state of the art, and is amazing.

I’m not a raster or EO person so I can’t speak to GDAL’s availability, but I’m dubious that the browser is a good interface for that kind of work, or for a full GIS more generally.

Re:Apache Baremaps: online maps toolkit by mch82 on Sunday May 28, 2023 @08:26PM (#36109207)
Watch out for software license conflicts moving the code to WASM. Some code can run on a server without triggering distribution clauses. WASM runs on the client and may count as distribution.

Assume Apache Baremaps uses an Apache license, it might be more wasm-friendly than most GIS software…

Re:Apache Baremaps: online maps toolkit by mch82 on Sunday May 28, 2023 @08:23PM (#36109183)
If you get a chance, it would be neat to see a brief summary article added to your website that talks about how much traffic and how Baremaps + PostGIS handled it. Info like that can be hard to come by when evaluating GIS frameworks and is really helpful!
Re:Apache Baremaps: online maps toolkit by bchapuis on Monday May 29, 2023 @03:29AM (#36111608)
Unfortunately, I don't gather statistics on the demonstration server. I believe that the in-memory caffeine cache (https://github.com/ben-manes/caffeine) saved me.
Re:Apache Baremaps: online maps toolkit by tiluha on Sunday May 28, 2023 @09:27PM (#36109577)
What is the library being used to display the map?
Re:Apache Baremaps: online maps toolkit by bchapuis on Monday May 29, 2023 @03:30AM (#36111612)
MapLibre (https://maplibre.org/) is used to render the map.
Re:Apache Baremaps: online maps toolkit by tiluha on Monday May 29, 2023 @09:52AM (#36113970)
Thanks!