Git Product home page Git Product logo

geos-wasm-tester's Introduction

geos-wasm-tester's People

Contributors

sanak avatar

Watchers

 avatar  avatar

geos-wasm-tester's Issues

Support Multi Geometry input from control/interaction

Currently, only single geometry input is possible from OL2 EditingToolbarExt control, because new geometry drawing delete all previous input features.
But, tester app needs more input cases, so consider to support Multi Geometry input.

This changes may require layer separation.

  • Current:
    • layerInput
      • featureA
      • featureB
    • layerOutput
      • featureResult
      • featureExpected
  • After:
    • layerInputA
    • layerInputB
    • layerOutputResult
    • layerOutputExpected

Switch OpenLayers to MapLibre GL JS and use VitePress CSS styling

Move sanak/geos-wasm#6 to this repo.

From the following issue's comment.
#3 (comment)

Well, upstream example uses MapLibre GL JS, so consider to switch MapLibre GL JS to match upstream. https://github.com/chrispahm/geos-wasm/blob/main/package.json#L54
Also, consider to use VitePress (Vue?) CSS styling. https://github.com/chrispahm/geos-wasm/blob/main/package.json#L58

Well, this may need a lot of changes, so I will create another issue for that, and revert issue's subject to original one.

Custom CRS

CRS (Coordinate Reference System) may require some hack or deep investigation, because current OL2 implementation is using custom canvas base one.

Links:

Draw/Modify interaction

The following patch seems to work.
maplibre/maplibre-gl-js#2601 (comment)

Split "main.js" file to some files

Currently, main.js is quite huge (> 1400 lines), and readability and maintainability is quite bad.
Consider to separate current main.js file to some parts (something like map, update args, compute, ui, etc.)

Support WKB HEX format

I created (or separated) this repo from the following PR,

  • Upgrade testxml files from GEOS repository
  • Support WKB HEX format
  • Fix test error

but still needs the works.


The original issue is here.
sanak/geos-wasm#4

Related with #4

Latest (GEOS 3.12.0) testxml files are here.
https://github.com/libgeos/geos/tree/3.12.0/tests/xmltester/tests

The latest testxml format seems to support WKB HEX import, so supporting it will be necessary.
:
WKB HEX format seems to be supported in the latest OpenLayers.

Otherwise, wkx library will be necessary like upstream.
https://github.com/syncpoint/wkx

Skip to load input empty geometry and output exception geometry

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.