I have a project where I need to save polygons to a database. I found that you can get the coordinates array from a feature using:
feature.getGeometry().getCoordinates(). This returns an array of all the coordinate points. Is this the bare minimum I have to save to a database in order to redraw this feature from scratch again later?
I don't need a PostGIS database to save all of the other feature data. The other information is not needed for my application. All I need is too redraw the exact same feature that was saved into the database.
I also only use EPSG:3857. But I would also save this with a feature just to be sure.