-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read context in shapefile with mapnik #4451
Comments
@Wingong - I'm assuming you're trying to access
or
or
HTH |
@artemp I tried |
@Wingong Could you share your shapefile if it's not too large? |
@artemp Of course, but i don't know how to upload file - however, it is just the demo shapefile in mapnik source code, like |
@artemp update: using mapnik::rule and add rules to style can filter the write shape (like |
I tried using C++ with Mapnik to read a shapefile located in path/to/shapefile. The shapefile includes .shp, .shx, .prj, .dbf, etc. files. The shapefile can be read and rendered successfully, including its features. However, the context within each feature contains nothing (it should contain a map with descriptors and attributes).
I have successfully read the DBF file in the shapefile folder using other tools (like QGIS), and the attributes were displayed. I also tried another shapefile in mapnik demo, but the result was the same.
What could be causing this problem? What steps should I take to fix it?
Environment: Win10; Mapnik 2023-06-12#3 built by vcpkg; VS 2022.
The code is as following:
The text was updated successfully, but these errors were encountered: