Hi,
I’m trying to get rid of GeoSerializer so I can start migrating from v10 to the latest. I’m already using sqlite, so I figured I would just write my overlays to the database and then read them back on opening the program.
It works as follows:
- Gather all layers and parameters I want to save to an object (same object I use today with GeoSerializer)
- Convert the object to a byte[]
- Write the byte[] to the db
- Read the byte[] from the db
- Cast the byte[] back to object and load layers to map
The objects all look good at step 5, but when I try and add the layers to the map I get the following error on refreshing the map.
Object reference not set to an instance of an object.
After inspecting the overlay and comparing back to the same overlay returned from GeoSerializer I notice several internal parameters that are null in the sqlite record but are not null in the GeoSerializer record. Here are the ones.
What can I do to make this work?
Regards,
Damian