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

6,416,947 invalid linestrings in _USA.tsv #19

Open
jmealo opened this issue May 14, 2024 · 1 comment
Open

6,416,947 invalid linestrings in _USA.tsv #19

jmealo opened this issue May 14, 2024 · 1 comment

Comments

@jmealo
Copy link

jmealo commented May 14, 2024

Hello,

There's a large number of invalid linestrings in the _USA.tsv file that only contain a single point or are self-referencing.

Only about 88% of the rows in the US file are valid line strings.

  • _USA.tsv = 54,484,737
  • Valid geometries = 48,067,790
  • Invalid geometries (or points): 6,416,947 (according to @turf/boolean-valid)

ST_IsValid returns false for an additional: 211,991 rows on top of that

Additionally, providing the file as a WKT representation per line would be easier for many folks to load into their database and is much smaller on disk.

Thanks,
Jeff

@jmealo
Copy link
Author

jmealo commented May 14, 2024

This is a duplicate of #11

@jmealo jmealo changed the title Invalid linestrings (less than two points) 6,416,947 invalid linestrings in _USA.tsv May 14, 2024
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

1 participant