Hi there 

I guess I misread that!

Thanks for everyone's help! As everything is working the way is needed!

Mark
Sent from my BlackBerry® powered by Virgin Mobile.

-----Original Message-----
From: Worth Lutz <[email protected]>
Date: Wed, 20 Mar 2013 20:13:52 
To: <[email protected]>; <[email protected]>
Subject: RE: [mapserver-users] query creation issues



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: [email protected] 
[mailto:[email protected]] On Behalf Of Mark Mirrlees
Sent: Wednesday, March 20, 2013 3:47 PM
To: [email protected]; [email protected]
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: [email protected]
To: [email protected]; [email protected]
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>&nbsp;</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 <http://www.avg.com> 
Version: 2013.0.2904 / Virus Database: 2641/6189 - Release Date: 03/19/13
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to