I have a parquet file containing transportation information that I have been able to parse in python and extract the needed data as follows:
import pandas as pd
import shapely.wkb
import shapely.geometry
import matplotlib.pyplot as plt
import utm
df = pd.read_parquet("lanes_small.parquet", engine="fastparquet")
plt.figure()
for index, object in df.iterrows():
if not "segment" in object["id"]:
continue
linestring = shapely.wkb.loads(object["geometry"])
coordinates = shapely.geometry.mapping(linestring)["coordinates"]
xy_coordinates = [utm.from_latlon(lat, lon) for lon, lat in coordinates]
plt.plot(
[xy_coord[1] for xy_coord in xy_coordinates],
[xy_coord[0] for xy_coord in xy_coordinates],
)
plt.show()
But I am unable to do the same in C++, I have tried about 100 different ways but none of them work, maybe the closest I have gotten is this:
I have a parquet file containing transportation information that I have been able to parse in python and extract the needed data as follows:
But I am unable to do the same in C++, I have tried about 100 different ways but none of them work, maybe the closest I have gotten is this:
Which ends with
Failed read: NotImplemented: Support for codec 'snappy' not built
And I have added snap to the conan project:
And even then I have no idea what I am supposed to get out from the table and the documentation is of little help.
Any input of what I should do?