[GeoMoose-users] How to perform select with geomoose

Brent Fraser bfraser at geoanalytic.com
Wed Apr 27 12:45:08 PDT 2022


First, confirm that Mapserver is getting the attributes you like from the database.    Have  a look at the DATA statement in your map file.  Look at https://mapserver.gis.umn.edu/input/vector/postgis.html#data-access-connection-method for examples on including database table columns:
DATA "the_geom from (select g.gid, g.the_geom...Try to get Mapserver to label with one of your columns.  Then try showing the values in GeoMoose using Identify.

Second, have a look at my protocol summary (I really need to put this in the doc) https://github.com/geomoose/gm3/issues/547
It shows that GeoMoose does support an Identify operation with a mapsource of type="mapserver" so you could just use 

<template name="identify" auto="true"/>

But I see you've configured the "query-as" technique in your mapbook, so Identify, Search and Select operations should work by passing the attribute requests via the WFS mapsource.  You may need to add

<template name="identify-grid-columns" src="./templates/Poste-columns.json" />
<template name="identify-grid-row" src="./templates/Poste-row.html" />

to get Identify to work, but i would need do some digging to confirm this.

Best regards,
Brent Fraser
GeoAnalytic Inc.

----------------------------------------
From: "SINSES" <espoirsins at gmail.com>
Sent: 4/27/22 12:26 PM
To: "geomoose-users at lists.osgeo.org" <geomoose-users at lists.osgeo.org>
Subject: [GeoMoose-users] How to perform select with geomoose

Hello All.

Please, I am a new user of geomoose, I am trying to set up the application with my own data via a postgis connexion. I would like to be able to perform operations like identify, search and select. I have tried anyway but at the end Nothing is selected and I don’t recieve any error message. Could you please glance my code down and tell me what is going wrong ?

- 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20220427/e45b9836/attachment.html>


More information about the Geomoose-users mailing list