cyang-kth / fmm

Fast map matching, an open source framework in C++
https://fmm-wiki.github.io/
Apache License 2.0
878 stars 205 forks source link

Question: Does fmm support geopackage format as the network input? #206

Closed ziXet closed 2 years ago

ziXet commented 2 years ago

Just wondering if I can provide a geopackage network file as the input for the fmm and stmach?

Thanks

cyang-kth commented 2 years ago

Currently it is not because the shapefile extension is checked at multiple locations. In theory, it should be possible to achieve this function by just removing those lines, but I have not checked it.

https://github.com/cyang-kth/fmm/blob/5d0eccf7cac1b1bbdb7e7d4593da7ef1b743b6aa/src/config/network_config.cpp#L50-L67

https://github.com/cyang-kth/fmm/blob/5d0eccf7cac1b1bbdb7e7d4593da7ef1b743b6aa/src/network/network.cpp#L30-L41

ziXet commented 2 years ago

That makes sense. Thanks