[Geomoose-users] FW: XY indentifyer
Dan Little
danlittle at yahoo.com
Wed Mar 19 14:22:02 EDT 2008
<td
align="Left">Get XY:</td>
<td><input
type="Button" name="Button" value="Click"
onClick="window.alert('[shpxy xf=,]')"</td>
</tr>
Check this out:
http://mapserver.gis.umn.edu/docs/reference/templatereference/templatereference
----- Original Message ----
From: Jay Kapalczynski <jkapalczynski at ci.maple-grove.mn.us>
To: geomoose-developers at lists.sourceforge.net; geomoose-users at lists.sourceforge.net
Sent: Wednesday, March 19, 2008 12:59:20 PM
Subject: [Geomoose-users] FW: XY indentifyer
<!--
_filtered {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
_filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", "sans-serif";}
a:link, span.MsoHyperlink
{color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{margin:0in;margin-bottom:.0001pt;font-size:8.0pt;font-family:"Tahoma", "sans-serif";}
span.EmailStyle17
{font-family:"Calibri", "sans-serif";color:windowtext;}
span.EmailStyle18
{font-family:"Calibri", "sans-serif";color:#1F497D;}
span.BalloonTextChar
{font-family:"Tahoma", "sans-serif";}
.MsoChpDefault
{font-size:10.0pt;}
_filtered {margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{}
-->
Instead of adding to the code in
my first email below …..I added some code to the "identify_Parcels.html"
page that returns the data from where you used the identify button.
That gets the button seen below…..it
then pops up an alert box that give the "PID" value fromt eh Parcel
Selected
I don’t know if I am on
the correct path here but what I want to do is get the PID value seen below
written as a variable and
place that in the Alert box…this
way I can potentially use this to update a Database via Javascript
Maybe click the button and pop
up a Form that prepopulates the PID value and then allows for further data
input…
<td
align="Left">Get XY:</td>
<td><input
type="Button" name="Button" value="Click"
onClick="window.alert('[PID]')"</td>
</tr>
Any thoughts…think I am on
the correct path…
One last thought…..HOW
DO I GET THE XY shown below written to a Variable and placed a Alert Box…..
From: Jay Kapalczynski
Sent: Wednesday, March 19, 2008 12:07 PM
To: geomoose-users at lists.sourceforge.net;geomoose-developers at lists.sourceforge.net
Subject: XY indentifyer
Sorry for the loaded questions. Trying to really learn
this stuff….If anyone can be of assistance I would be
appreciative….
Question1:
I am looking at the Identify Tool Code. (see Below)
I see the call to the identify.map
Once in the identify.map there is a call to you specify
layer "TEMPLATE 'parcels/identify_parcels.html'"
Once there you tell it what fields to show values on…
Where in that process does the code tell it to place all the
values from the TEMPLATE above into the Info Tab in GeoMoose?
Is this whats going on???
Is the code below passing all those input types to
MapServer? Is this being done in the URL? Then MapServer reads them
and passes them back? To where…how does that get passed back to the
Info Tab?
<service
title="Identify" default="true"
cursor="url(cursors/identify2.cur), auto"
icon="shared/images/toolbar/identify.jpg"
highlight="shared/images/toolbar/identify_selected.jpg"
locked="true" shape="point">
<url>/cgi-bin/mapserv.exe</url>
<input type="hidden" name="map"
value="/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/identify.map"/>
<input type="point" name="mapxy" delim="
"/>
<input type="extent" name="imgext" delim="
"/>
<input type="layertitles" name="layers" delim="
"/>
<input type="imagesize" name="imgsize" delim="
"/>
<input type="hidden" name="mode" value="nquery"/>
</service>
Question2:
I see in the Identify Code above that it is getting the
mapXY….how would I go about stripping all the other stuff above and just
create the button "onClick" write the XY to a variable and pop up a
messagebox giving the user the XY?
Any thoughts would be appreciated…trying to learn how
to code in the Web Environment……Something I can do in ArcGIS easily
but confused with all the calls and requests back and forth….
THanks Again
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
-------------- next part --------------
Skipped content of type multipart/related
More information about the Geomoose-users
mailing list