Git Product home page Git Product logo

Comments (11)

pcav avatar pcav commented on September 1, 2024

sto sutdiando, probabilmente va riordinata fisicamente la tabella

from pirati.

Federico81 avatar Federico81 commented on September 1, 2024

basta fare una query order by e esportare? Non so bene se funzioni come in mysql

from pirati.

pcav avatar pcav commented on September 1, 2024

Ho riordinato il layer in base all´anno inizio ed aggiunto al progetto. per cortesia verifica che per questo layer il comportamento sia corretto, se è così lo sostituisco al precedente.
grazie.

from pirati.

Federico81 avatar Federico81 commented on September 1, 2024

mm ho fatto qualche prova e secondo me no: ad esempio cliccando su Pianosa non mi escono in ordine cronologico

from pirati.

pcav avatar pcav commented on September 1, 2024

se confermi che hai fatto la prova su corsari_sort allora direi che è un limite di Lizmap, non so se un bug o se c´è un modo di evitarlo. probabilmente con un js custom si potrebbe fare

from pirati.

Federico81 avatar Federico81 commented on September 1, 2024

Forse facendo una query sul db order by e estrapolando il risultato e usandolo per popolare un nuovo db si riesce secondo te? In mysql si ma postgresql non lo so

from pirati.

pcav avatar pcav commented on September 1, 2024

corsari_sort fa esattamente quello. se anche per questo layer il popup non si comporta come dovrebbe, probabilmente è un bug di Lizmap.
Indago.

from pirati.

Federico81 avatar Federico81 commented on September 1, 2024

ok, magari fai una prova anche a te per essere sicuri che sto facendo la prova giusta: ad esempio a me Pianosa non le mostra in ordine

from pirati.

pcav avatar pcav commented on September 1, 2024

confermo, Pianosa non è ordinata. Però il campo è un text, non un int, questo può spiegare.
provo a riordinaare su un campo trasformato in int.

from pirati.

pcav avatar pcav commented on September 1, 2024

Allora, ho riordinato, ti confermo che pare essere un bug di Lizmap, perché in QGIS desktop vengono listati correttamente, in Lizmap no.
Per riferimento, il permalink di esempio è:
https://lizmap.faunalia.eu/index.php/view/map?repository=faunalia&project=pirati&layers=BFTTTTTF&bbox=1075231.308991%2C5223609.642267%2C1183710.692616%2C5276526.414767&crs=EPSG%3A3857&layerStyles=corsari_sort%3Apredefinito

from pirati.

pcav avatar pcav commented on September 1, 2024

Trovato l´inghippo, parecchio interessante. Deriva tutto dal random access al db: qgis chiede i dati al provider, che li restituisce come gli torna bene. Non è possibile passare a QGIS un filtro ORDER BY al volo. Direi che l´unica soluzione pratica nell´immediato sarebbe usare un formato file based (ad es. Shapefile) invece che DB based, il che avrebbe altre limitazioni (ad es. non si possono applicare filtri).

from pirati.

Related Issues (11)

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.