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

Skip to load input empty geometry and output exception geometry #13

Open
sanak opened this issue Oct 14, 2023 · 0 comments
Open

Skip to load input empty geometry and output exception geometry #13

sanak opened this issue Oct 14, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sanak
Copy link
Owner

sanak commented Oct 14, 2023

Currently, if input geometry is empty (like POINT EMPTY), the following error occurred.

Uncaught Error: Cannot fit empty extent provided as `geometry`
    at assert (asserts.js:11:11)
    at View.fit (View.js:1353:7)
    at zoomToExtent (mapiopanel.js?t=1697297407333:349:21)
    at MapIoPanel.loadInput (mapiopanel.js?t=1697297407333:462:7)
    at HTMLSelectElement.loadTestCase (testcasepanel.js:198:24)

Also, if output (result) geometry is none by exception, the following error occurred.

Error: Invalid geometry type: EXCEPTION
    at Parser.parseGeometry_ (WKT.js:546:15)
    at Parser.parse (WKT.js:293:17)
    at WKT.parse_ (WKT.js:629:19)
    at WKT.readGeometryFromText (WKT.js:677:27)
    at WKT.readFeatureFromText (WKT.js:639:23)
    at WKT.readFeature (TextFeature.js:36:17)
    at featureFromWkt (mapiopanel.js?t=1697297407333:311:31)
    at MapIoPanel.loadOutput (mapiopanel.js?t=1697297407333:468:23)
    at updateOutput (geosop.js?t=1697297376663:160:26)
    at GeosOp.compute (geosop.js?t=1697297376663:455:13)

Above errors need to be handled correctly.

@sanak sanak added the bug Something isn't working label Oct 14, 2023
@sanak sanak self-assigned this Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant