Giter VIP home page Giter VIP logo

Comments (4)

larseggan avatar larseggan commented on August 14, 2024 1

@datsnew has fixed it locally now in mssqlgeometryconverter.java.
A pull request will be created.

 Override
public void setParticle(PreparedStatement stmt, Geometry particle, int paramIndex) throws SQLException {
if (particle == null) {
stmt.setObject(paramIndex, null);
return;
}
particle = getCompatibleGeometry(particle);
if (is2d) {
try {
stmt.setBytes(paramIndex, WKBWriter.write(particle));
}
catch (Throwable e) {
throw new SQLException(e);
}
}
else {
// Added Replace UTF minus sign with hyphen-minus in particle
stmt.setString(paramIndex, WKTWriter.write(particle).replace('\u2212', '\u002D'));
}

}

from deegree3.

datsnew avatar datsnew commented on August 14, 2024 1

Thank you. I did a test with the suggested parameters and it worked. So it seams that the problem indeed is related to the default locale. The linked issues looks like this was introduced in JDK17, but we experiencing the same behavior with JDK 11.

Thank you for taking the time to look into and discuss this issue.

from deegree3.

larseggan avatar larseggan commented on August 14, 2024

Anyone looking at this bug? Very critical for the Norwegian use of deegree WFS-T.
@datsnew has tried fixing it locally without sucsess.

from deegree3.

stephanr avatar stephanr commented on August 14, 2024

In today's TMC-Meeting we discussed this again and found that this issue seems to be related to the used locale of the system.

Could you try to test if this issue also occurs when your container (tomcat) runs with English as it default locale?
For example, adding the following parameters -Duser.country=GB -Duser.language=en.

See also:

from deegree3.

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.