4 ms·
> As an example of the information-retaining quality of SVG representations you could fairly easily imagine the reverse operation: SVG Images TO Postgres. I ac
by ctippett 3y ago
> As an example of the information-retaining quality of SVG representations you could fairly easily imagine the reverse operation: SVG Images TO Postgres.
I actually did this several years ago!
I ended up collecting the floorplan/layout for most of Australia's largest shopping centres by scraping the SVGs from the interactive maps on their websites. I parsed the coordinates they contained — the location/size of individual shops, ingress/egress points, ATMs, etc — as Well-Known Text and stored them as native geometry data types in PostgreSQL.
The shopping centres were even kind enough to leave labels and metadata embedded as attributes in the SVG. Bless.