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

Split regions if they are "split" by a separator #27

Open
wrznr opened this issue Jan 16, 2020 · 6 comments
Open

Split regions if they are "split" by a separator #27

wrznr opened this issue Jan 16, 2020 · 6 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@wrznr
Copy link
Collaborator

wrznr commented Jan 16, 2020

image

@wrznr wrznr added enhancement New feature or request question Further information is requested labels Jan 16, 2020
@bertsky
Copy link
Collaborator

bertsky commented Jan 16, 2020

Yes, I wonder what Tesseract is thinking when it does this. Such bad manners!

@bertsky
Copy link
Collaborator

bertsky commented Jan 16, 2020

Technically, what exactly would you propose to do? Calculate the point-set difference of the polygons, and then look at the resulting interior sets multipolygon as a sequence?

@bertsky
Copy link
Collaborator

bertsky commented Jan 16, 2020

Do you have an example where clipping is not enough to handle this?

@wrznr
Copy link
Collaborator Author

wrznr commented Jan 16, 2020

NO. It's just cosmetics.

@wrznr
Copy link
Collaborator Author

wrznr commented Jan 16, 2020

@bertsky
Copy link
Collaborator

bertsky commented Jan 16, 2020

I thought about using https://shapely.readthedocs.io/en/stable/manual.html#splitting

Yes, that would work.

But there are other issues besides coordinates:

  • new IDs (append suffix to both, or just one)
  • fix/update reading order (insert at same position, or leave out)
  • splitting up existing text content or lines/words

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants