[Geomoose-users] Identify tool on a raster WMS layer
Jim Klassen
klassen.js at gmail.com
Wed Feb 1 14:53:40 PST 2017
Look at the parcels layer in the demo. The important bits are:
1) Make sure you have the MAP->WEB->METADATA set correctly in the '.map'
file. As you are getting a response from your test GetFeatureInfo
request, I would in particular check that you have:
'wms_feature_info_mime_type' 'text/html'.
https://github.com/geomoose/geomoose/blob/master/maps/demo/parcels/parcels.map
2) Make sure your TEMPLATE is valid HTML. I don't know for sure that it
matters, but it is probably a good idea to wrap your popup content in a
<div>...</div> like in:
https://github.com/geomoose/geomoose/blob/master/maps/demo/parcels/parcels_popup.html
Again from your sample GetFeatureInfo request, MapServer is clearly
working with the '[value_list]' substutition in your template, so that
part is correct for your raster layer. What substitutions are available
in the MapServer template are the only difference between using a RASTER
or a shapefile. GeoMoose itself doesn't know the difference.
3) In the mapbook, <map-source type='mapserver' ...> or <map-source
type='wms' ...> should both work, as long as you have the file/url
correct. If the map displays then it is almost certainly correct. The
type='mapserver' is really just a shortcut (filling in the path to
MapServer and the mapfile automatically) and is treated like type='wms'
internally by GeoMoose.
In the catalog you need <layer src="..." .... popups="true" ....>
See: https://github.com/geomoose/geomoose/blob/master/conf/mapbook.xml
On 02/01/2017 04:24 PM, andy wrote:
>
> Hi James,
>
> On 1 February 2017 at 23:12, James Klassen <klassen.js at gmail.com
> <mailto:klassen.js at gmail.com>> wrote:
>
> http://docs.geomoose.org/2.9/howto/popups.html?highlight=popup#enable-wms-queries-in-the-mapfile
> <http://docs.geomoose.org/2.9/howto/popups.html?highlight=popup#enable-wms-queries-in-the-mapfile>
>
>
> Raster should be same vector except for what substitution
> variables are available.
>
> I have added a CLASS with a NAME, but it does not work.
>
> And it does not work also if I add the same layer as |map-source
> type="mapserver"|.
>
> If I use it as |map-source type="mapserver"| I have
>
> The service you called did not return valid XML. If you are the
> system administrator, you should look into this, if you are not
> the system administrator you should tell them about this.
>
> Instead if I use it as |map-source type="wms"| I have only the
> coordinates click.
>
> What do you think about?
>
> Thank you very much
>
>
>
> ------------------------------------------------------------------------
>
> Andrea Borruso
> website: http://blog.spaziogis.it
> 38° 7’ 48” N, 13° 21’ 9” E, EPSG:4326
>
> ------------------------------------------------------------------------
>
> “cercare e saper riconoscere chi e cosa,
> in mezzo all’inferno, non è inferno,
> e farlo durare, e dargli spazio”
>
> Italo Calvino
>
>
More information about the Geomoose-users
mailing list