Closed tigerfoot closed 9 years ago
More explanation ?
On Friday 10 July 2015 08.21:24 verogis wrote:
More explanation ? tomorrow :-)
Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch
openSUSE Member & Board, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot
The request to get the commune is: select nom from communes where ST_Contains(the_geom, ST_SetSRID(ST_Point(594131, 236280), 21781))
The API is ready for this request. I still have to add a plugin in the front end to connect to communes?x=594131&y=236280&srid=21781
.
The table communes got a column code which differentiate de "true" communes (code = 1) from the "arrondissement" (kreis) which got code = 2. You should not show them. You got to add WHERE code=1 to get it right (once you got the right db)
You got to add WHERE code=1 to get it right (once you got the right db)
Modify request in API once I have the good db.
Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch
openSUSE Member & Board, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot
Done in view definition:
CREATE OR REPLACE VIEW api3.communes AS
SELECT gid, nom, st_curvetoline(the_geom) AS the_geom
FROM userdata.communes
WHERE code == 1;
ALTER TABLE api3.communes
OWNER TO sit_dev;
Check with vhe if we can't have a special layers off to get only the label of the city on the map drawed at a specific location (like bottom left)