[Geomoose-users] XY indentifyer

Dan Little danlittle at yahoo.com
Wed Mar 19 14:30:13 EDT 2008


GeoMOOSE is using AJAX.

It goes a little something like this...

The service definition is used to tell GeoMOOSE two things.  First, what inputs need to be "taken in" be it spatial (via the shape attribute) or something considered more "tabular" like a type="user" input.  The second thing it tells GeoMOOSE is how to format a URL and send it to a CGI program (mapserver, a PHP script, whatever).  

So GeoMOOSE takes in the input, formats the URL (or XML request...), and send it to a service (CGI program).  The service returns some information in one of many formats:
1) Text/XML - GeoMOOSE can take in a *lot* of different commands from an XML return but they aren't formatted the prettiest.
2) Text/Plain - GeoMOOSE will format this into HTML by converting the '\n's into '<br/>'.
3) Text/CSV - GeoMOOSE will turn this into an HTML table.
4) Text/HTML - This content is placed inside of the div by a little bit of javascript code, "div.innerHTML = ajaxRequest.responseText;".  That's not the actual code, but there is a line in there that is entirely similar and performs the same function.

This process of abstractly defining how to talk with a Service and then getting a Return and reacting is at the core of the GeoMOOSE design.  GeoMOOSE strives to comply to a "Service Oriented Architecture" where small unrelated programs can work in harmony with each other but WORK nonetheless.  GeoMOOSE also strives to respect REST, a web design philosophy that does not require that the "state" of the application be known by the server.  So things look a little bit different in the hope that it actually can be MORE of a swiss army knife to more people.

----- Original Message ----
From: Jay Kapalczynski <jkapalczynski at ci.maple-grove.mn.us>
To: geomoose-users at lists.sourceforge.net; geomoose-developers at lists.sourceforge.net
Sent: Wednesday, March 19, 2008 12:06:36 PM
Subject: [Geomoose-users] 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;}
/* 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;}
span.EmailStyle17
	{font-family:"Calibri", "sans-serif";color:windowtext;}
.MsoChpDefault
	{}
 _filtered {margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
	{}
-->
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
   
   
   
   
   
 






      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20080319/03ef9413/attachment.html


More information about the Geomoose-users mailing list