ioda-net / geo-front3

frontend from geoadmin/mf-geoadmin3
Other
1 stars 0 forks source link

Feature handle double objects #50

Closed tigerfoot closed 9 years ago

tigerfoot commented 9 years ago

In some case data are stored in the same view table ( like PF) but are spread on the map in 2 distincts layers. Result the point is shown 2 times.

to be analyzed : should we split the view like the mapserver layer is ? <- @verogis

Insure that an object is stored and shown only once in feature results <- @Jenselme

Reference on map http://api.disney.interne/shorten/6670932030

verogis commented 9 years ago

@tigerfoot I tried by changing the sql for features CREATE OR REPLACE VIEW features.geojb_pf AS SELECT pf.the_geom, pf.genre, pf.numero, materialisation_ili_md01be11.fr AS genre_fr, materialisation_ili_md01be11.de AS genre_de, pf.gid FROM pf, materialisation_ili_md01be11 WHERE materialisation_ili_md01be11.code = pf.code AND pf.code in (0,2); This way I got only the altimetric fixed point (splitting as the mapserver layer are split) I still got two answer for the same objet http://api.disney.interne/shorten/6670a637e8

I changed the features.geojb_pf as it was before

tigerfoot commented 9 years ago

Thanks for the feedback. It seems normal, due to double request. The unicity will be handle by the feature grid code.