[mapserver-users] query creation issues
Worth Lutz
wal3 at mindspring.com
Wed Mar 20 13:13:52 PDT 2013
Did you see this in Steve's email:
> layer=mjrroads&shapeindex=[shpidx]&shpext=[shpext_esc]&mapext=shape&ma
> p=[map]">-->
> <tr>
> <td>[shpidx]</td>
> <tr><td>[name]</td></tr>
> <tr><td>[type]</td></tr>
> </tr>
Attribute binding is case sensitive. For shapefiles it should be UPPERCASE
and for postgis it should be lowercase.
Also, you tags are not nested correctly, you have a tr nested inside a tr.
:-O
-Steve W
Your data comes from shapefiles. You need to put "name" and "type" in upper
case.
[NAME] [TYPE]
Worth
_____
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Mirrlees
Sent: Wednesday, March 20, 2013 3:47 PM
To: steve.lime at state.mn.us; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] query creation issues
Does anyone have any updates on how to fix this? As I mentioned before I
managed to get the ID field populated whenever I query the map but I need to
get the same thing for the name of the road and the type of road...
If there is anything else that you require please let me know as this is
causing a great deal of confusion why it won't work!
Thanks,
Mark
_____
From: mmirrlees at hotmail.com
To: steve.lime at state.mn.us; mapserver-users at lists.osgeo.org
Date: Wed, 20 Mar 2013 14:53:57 -0400
Subject: Re: [mapserver-users] query creation issues
Hi there, Ok I managed to get this outputted...but under the [name] and
[type] I need to get these fields populated from the query of the
mjrroads...
ID
Name
Type
1164
[name]
[type]
Code from mjrroadsquery.html
<!-- MapServer Template -->
<!--<IMG
src="http://[host]/cgi-bin/mapserv.exe?mode=INDEXQUERY&qformat=png24&qlayer=
mjrroads&shapeindex=[shpidx]&shpext=[shpext_esc]&mapext=shape&map=[map]">-->
<tr>
<td>[shpidx]</td>
<td>[name]</td>
<td>[type]</td>
</tr>
Now if I change the [name] to [map] in the mjrroadsquery.html I get the
following...
ID
Name
Type
1164
/wwwroot/M_Mirrlees_Assign3/global.map
[type]
Code from mjrroads.html
<!-- MapServer Template -->
<h3><b>Layer: Major Roads</b></h3>
<br>
<INPUT NAME="img" TYPE="image" SRC="[img]" width=500 height=500 border=0
ALT="Map Image">
<table border=1>
<tr> </td>
<th>ID</th>
<th>Name</th>
<th>Type</th>
</tr>
All i'm trying to do is get the Name and Type fields to be showing the name
of the road, and the type of the road.
Thanks,
Mark
_____
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.2904 / Virus Database: 2641/6189 - Release Date: 03/19/13
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130320/19ad1c53/attachment.htm>
More information about the MapServer-users
mailing list