Skip to content

Add WKB parse tests#37

Open
smohiudd wants to merge 1 commit into
geoarrow:kyle/wkbfrom
smohiudd:saadiq/add-wkb-tests
Open

Add WKB parse tests#37
smohiudd wants to merge 1 commit into
geoarrow:kyle/wkbfrom
smohiudd:saadiq/add-wkb-tests

Conversation

@smohiudd

Copy link
Copy Markdown

Add tests for parseWkb for the following geometries:

  • Polygon
  • LineString
  • Point

@smohiudd

Copy link
Copy Markdown
Author

@kylebarron I pulled in parse-test-cases from loaders. Let me know what you think.

Comment thread tests/io/wkb.test.ts

for (const [title, testCase] of Object.entries(testCasesPoint)) {
const data = new Uint8Array(testCase.wkb);
const offsets = new Uint32Array([0, data.length]);

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These offsets are incorrect. I'm having trouble getting the binary length of each polygon

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by "binary length of each polygon"? The number of bytes after being serialized to WKB?

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

Successfully merging this pull request may close these issues.

2 participants