Skip to content
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

Support of 3D Polygon and LineString #111

Open
nnvvijay opened this issue Oct 10, 2023 · 3 comments
Open

Support of 3D Polygon and LineString #111

nnvvijay opened this issue Oct 10, 2023 · 3 comments

Comments

@nnvvijay
Copy link

Hi,
Looks like I am not able to convert 3D polygon and LineString to shp file.

const coordinates = [
[
[0, 0, 0], // Vertex 1: x, y, z
[0, 10, 0], // Vertex 2: x, y, z
[10, 10, 0],// Vertex 3: x, y, z
[10, 0, 0], // Vertex 4: x, y, z
[0, 0, 0] // Closing vertex to complete the polygon
]
];

After conversion, I am getting only X and Y values, not Z values. Is this supported?

--Vijay

@sheindel
Copy link
Contributor

Hello Vijay,

Right now this is not supported by this library. There is a PR out that attempts to deal with this but I have not made time to review it yet. My time to support this library is limited and so I can mainly only support my use case which is for 2d shapefiles. If you want to look at the 3D PR and add any comments or tests that might be helpful, I will see if I can integrate it.

@nnvvijay
Copy link
Author

Hi,
Thanks for your quick response. Yes, I am interested in validating and testing it as I need a 3D polyline in my project. Please see the details about how to use this.

--Vijay

@sheindel
Copy link
Contributor

The two PRs that deal with 3D objects are

#55
#60

Feel free to try one of these out and post any testing results in a new PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants