Git Product home page Git Product logo

Comments (7)

MV88 avatar MV88 commented on July 3, 2024 1

as agreed with @tdipisa we will harden more the geoprocessingtool adding

  • a check that verify that if wpsUrl is not configured or the layer.url is not present it disables the run button by informing the user, this will prevent to run into errors messages that can be avoided with correct configuration
  • we can add a default config in the pluginsCfg with "wpsUrl":"https://yourdomain/geoserver/wps"

from mapstore2.

MV88 avatar MV88 commented on July 3, 2024

that context was missing a key property as it it the wpsUrl

i have fixed the demo_context cfg of GeoProcessingTool and now it is working

can i close this @tdipisa ?

from mapstore2.

tdipisa avatar tdipisa commented on July 3, 2024

@MV88 I don't think the issue can be closed. I didn't understand which config fix you applied. Can you please better specify it.
In any case it seems the tool now no longer works as before: for each layer I've selected (e.g. for the buffer) I have the following, which leads me to think there is some missconfiguration now:

image

Can you please review again?

from mapstore2.

MV88 avatar MV88 commented on July 3, 2024

yes I misstyped the protocol

this is the cfg added

{
  "cfg": {
    "wpsUrl": "https://gs-stable.geo-solutions.it/geoserver/wps",
    "selectedTool": "buffer",
    "buffer": {
      "quadrantSegments": 200,
      "capStyle": "Round"
    }
  },
  "override": {}
}

try again

from mapstore2.

tdipisa avatar tdipisa commented on July 3, 2024

@MV88 thank you. It is working now. Is there something to fix on the JS documentation for this or something to fix in the plugin default config for contexts? If no, please feel free to close the issue.

from mapstore2.

MV88 avatar MV88 commented on July 3, 2024

I think that we could close this issue. the thing is that every time this property is not configured it will cause this issue because

  • the source is a generated vector layer
  • this needs a geoserver behind

solutions

  • we can maybe introduce a default value pointing to out geoservers this would avoid this issue even tough is not ideal.
  • otherwise we have to block the run button when this situation occurs

what do you think ?

from mapstore2.

MV88 avatar MV88 commented on July 3, 2024

Actually i have found a fix that shows the correct error message, i'll proceed this way instead of changing workflow in the ui
also point 2 makes this fix not working so is better to simply correctly handle the error as proposed here

image

from mapstore2.

Related Issues (20)

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.