Search found 6 matches

by aferust
Sat Dec 07, 2024 3:43 pm
Forum: Showcase
Topic: ESP32 port of OSGEO/shapelib
Replies: 0
Views: 1349

ESP32 port of OSGEO/shapelib

I thought this was a suitable place to share a library here. I created a port of OSGeo/shapelib to be used with ESP32 boards. Here is some background. SHP files are a de facto Geographic Information System (GIS) standard. It can store GPS points, polylines, polygons, etc. With my port, one may read ...
by aferust
Sat Dec 07, 2024 3:14 pm
Forum: ESP32 Arduino
Topic: file.write issues with mode "w+b" using SD
Replies: 6
Views: 1694

Re: file.write issues with mode "w+b" using SD

Hey, I resolved my issue. I was so stupid not to consider the lifetime of an instance of class fs::File returning from fs::open. With the previous code, ref variables of fs::File were roaming around, which was a problem for the internal pointer of File (std::shared_ptr<FileImpl>). I had to allocate ...
by aferust
Wed Dec 04, 2024 11:29 am
Forum: ESP32 Arduino
Topic: file.write issues with mode "w+b" using SD
Replies: 6
Views: 1694

Re: file.write issues with mode "w+b" using SD

Btw the problem is "r+".
by aferust
Wed Dec 04, 2024 9:03 am
Forum: ESP32 Arduino
Topic: file.write issues with mode "w+b" using SD
Replies: 6
Views: 1694

Re: file.write issues with mode "w+b" using SD

I have already detected the crash lines of my code using my poor man's debugging method. Using the tool you suggested, it only helped to reveal ...portable/xtensa\port.c:162, and ...Arduino15\packages\esp32\hardware\esp32\3.0.7\cores\esp32\main.cpp:59 which I could infer anything. Decoding stack res...
by aferust
Tue Dec 03, 2024 11:37 am
Forum: ESP32 Arduino
Topic: file.write issues with mode "w+b" using SD
Replies: 6
Views: 1694

Re: file.write issues with mode "w+b" using SD

"w+" does not work either. Anyway, thank you for your response. We will only have reading functionality, which is nice, though.
by aferust
Sun Dec 01, 2024 10:12 am
Forum: ESP32 Arduino
Topic: file.write issues with mode "w+b" using SD
Replies: 6
Views: 1694

file.write issues with mode "w+b" using SD

Using ESP32S3 rev2 board on windows Arduino IDE. I am creating a port to osgeo shapelib [1, 2]. My port lives here [3]. The library reads and creates shapefiles to extract geographical information (GIS vector layers) such as polygon maps, GPS points, polylines, etc. I modified the library to work wi...