[Geomoose-users] Mr. Fraser Would you be able to help me regarding a GeoMoose question identify error

Brent Fraser bfraser at geoanalytic.com
Wed Mar 13 09:49:19 PDT 2013


Tim,

     Hmm. So you're signing up at 
http://lists.osgeo.org/mailman/listinfo/geomoose-users ?  That should 
work; I'll copy this to the list to see if anyone else can help with that.

As for the highlighting problem, it could be your coordinate system 
definition needs to be included somewhere else (but that's a random 
guess, since the demo works).

Best Regards,
Brent Fraser

On 3/13/2013 10:01 AM, Tim Hennig wrote:
> Hi Brent,
>
> That was the cause!  Wow... thank you.
>
> I ended up commenting out the highlight functions in the identify PHP and in the mapbook.
>
> Two questions that I have.....
>
> 1.  Do you have any idea why my highlight function is causing a compiling error? I did notice from a few user group feeds something about shapefiles that might cause the error?
>
> 2.  Do you know off hand how I can start sending questions to the GeoMoose user group feeds?  Like I said, I've sent out questions and never get responses.  When I sent a question to   geomoose-users at lists.osgeo.org it told me that I was not a member (even though I signed up) and I might get a response.  How does one become a member?  I would like to post my question regarding the identify error, etc.
>
> Anyway, I've been hooked on the Moose and once again thank you for your help.
>
> Thank You,
>
> Tim
> -----------------------------------------------------------------
> Tim Hennig
> GIS Coordinator
>
> Community Development Department
> Village of Bellevue
> 2828 Allouez Avenue
> Bellevue, WI 54311
> e-mail: timh at villageofbellevue.org
> web: http://www.villageofbellevue.org
>
> media:  Facebook  |  Twitter  |  Blog  |  YouTube Channel
>  Save money and the environment; think twice before printing this email.
> This message may contain confidential information that is legally privileged, and is intended only for the use of the parties to whom it is addressed.  If you are not an intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any information in this message is strictly prohibited.  If you have received this message in error please notify me at  (920) 468-5225 or by reply e-mail.  Thank you.
>
> -----Original Message-----
> From: Brent Fraser [mailto:bfraser at geoanalytic.com]
> Sent: Tuesday, March 12, 2013 4:23 PM
> To: Tim Hennig
> Subject: Re: Mr. Fraser Would you be able to help me regarding a GeoMoose question identify error
>
> Looks like the Identify is producing the right info, so perhaps the "highlight" function is producing the problem?
>
> Best Regards,
> Brent Fraser
>
> On 3/12/2013 10:38 AM, Tim Hennig wrote:
>> Hi Brent,
>>
>> Thanks for the reply!!
>>
>> I looked in the Net tab and can see the information passing through in the identify.php.  This is the result. I should mention the Demo Version worked when I identify.   I've also included the message that I sent to geomoose.  When I sent it out... I get a message saying that I'm not a member of the form (I signed up, etc) did I do this right?
>>
>> <results><script> GeoMOOSE.clearLayerParameters('highlight');
>> GeoMOOSE.turnLayerOff('highlight/highlight');</script><html><![CDATA[<!-- MapServer Template --> Detailed information for the area you clicked on the map...
>> <table border="0">
>> <tr>
>> <td colspan="2"><b><u>Ground Coordinates</u></b> <br>
>> <b>X: </b>115365.67970819
>> <br>
>> <b>Y: </b>548020.26117988</td>
>> </tr>
>> <tr>
>> <td> </td>
>> <td> </td>
>> </tr>
>> </table>
>> <table border="0" cellpadding="1" cellspacing="2"> <tr
>> bgcolor="#DEE5EB"><td colspan="2"><b><u>Parcels</u></b></tr>
>> <tr>
>> <td align="right"><b>PARCEL ID:</b></td>
>> <td>B-96-5 <a href="javascript:GeoMOOSE.startService('feature_report',
>> {'PARCELID' : 'B-96-5', 'src' : 'Parcel/TaxParcel'})">Report</a></td>
>> </tr>
>> <tr>
>> <td align="right"><b>ADDRESS LOCATION:</b></td>
>> <td>2560 CONTINENTAL CT
>> </tr>
>> <tr>
>> <td align="right"><b>OWNER INFORMATION:</b></td> <td>PETER/JOYCE
>> VANDEN BERGH </tr> <tr> <td align="right"><b>TOTAL VALUE:</b></td>
>> <td>208700.00000000
>> </tr>
>> <tr>
>> <td align="right"><b>ACRES:</b></td>
>> <td>1.68000000
>> </tr>
>> <tr>
>> <td align="right"><b>SQ FT:</b></td>
>> <td>1.592 AC
>> </tr>
>> <tr>
>> <td> </td>
>> <td> </td>
>> </tr>]]></html><footer><![CDATA[<b>Disclaimer: This information is
>> being distributed as demonstation data only.  You should not use the
>> data for any other purposes.</b> ]]></footer></results>
>>
>> **********************************************************************
>> *****************************************
>> Here is the message that I sent to the geomoose email.....
>>
>> Hello,
>>
>> I was wondering if someone can help me regarding an issue that I am having with GeoMoose 2.6.1.
>>
>> I have setup my layers based on the MSW4 install.  I can see me layers and have set the properties, etc that I want.
>>
>> Now I want to start developing the identify tool.  I’ve setup my identify.html, parcel.map, and have set properties in the map file.  When I try to identify I can an, “TypeError.Application.GetMapSource(….) is undefined.  I ran the firebug and it looks like the data is being processed (e.g. cords, parcel info, etc.)  Here is my identify info, it’s passing the information through and is correct.  I’ve also included the error message, parcel.map, identify.html, and mapbook.xml syntax below.
>>
>> Does anyone have any ideas to what’s going on, I am stumped.   I noticed there was one feed regarding something similar, but I did everything that person recommended.  One other thing… I installed the demo version on the web server and everything works, but when I try mine it doesn’t.  I’m I missing something there?
>>
>> This info is passing through the identify.html correctly…..
>> POST http://webmaps.villageofbellevue.org:8080/geomoose2/php/identify.php
>> 200 OK	
>> 28
>>
>> <results><script> GeoMOOSE.clearLayerParameters('highlight');
>> GeoMOOSE.turnLayerOff('highlight/highlight');</script><html><![CDATA[<!-- MapServer Template --> Detailed information for the area you clicked on the map...
>> <table border="0">
>> <tr>
>> <td colspan="2"><b><u>Ground Coordinates</u></b> <br>
>> <b>X: </b>116052.58098509
>> <br>
>> <b>Y: </b>548553.64016749</td>
>> </tr>
>> <tr>
>> <td> </td>
>> <td> </td>
>> </tr>
>> </table>
>> <table border="0" cellpadding="1" cellspacing="2"> <tr
>> bgcolor="#DEE5EB"><td colspan="2"><b><u>Parcels</u></b></tr>
>> <tr>
>> <td align="right"><b>PARCEL ID:</b></td>
>> <td>B-94
>> </tr>
>> <td align="right"><b>ADDRESS LOCATION:</b></td>
>> <td>2595 EATON RD
>> </tr>
>> <tr>
>> <td align="right"><b>OWNER INFORMATION:</b></td> <td>THE HOME DEPOT
>> USA PROPERTY TAX DEPT #4915 </tr> <tr> <td align="right"><b>TOTAL
>> VALUE:</b></td>
>> <td>6268800.00000000
>> </tr>
>> <tr>
>> <td align="right"><b>ACRES:</b></td>
>> <td>11.83400000
>> </tr>
>> <tr>
>> <td align="right"><b>SQ FT:</b></td>
>> <td>515,496 SF
>> </tr>
>> <tr>
>> <td> </td>
>> <td> </td>
>> </tr>]]></html><footer><![CDATA[<b>Disclaimer: This information is
>> being distributed as demonstation data only.  You should not use the
>> data for any other purposes.</b> ]]></footer></results>
>>
>>
>>
>> Error Message….
>>
>> ypeError: Application.getMapSource(...) is undefined
>> window.GeoMOOSE.clearLayerParameters()geomoose.js (line 273) ()dojo.js
>> (line 14) .onServiceReturn()dojo.js (line 14)
>> dojo._listener.getDispatcher/<()dojo.js (line 14)
>> dojo.hitch/<()dojo.js (line 14) dojo._ioSetArgs/<()dojo.js (line 14)
>> _102()dojo.js (line 14) _100()dojo.js (line 14) ()dojo.js (line 14)
>> _102()dojo.js (line 14) _100()dojo.js (line 14) ()dojo.js (line 14)
>> _28d()dojo.js (line 14) _286/func()dojo.js (line 14) _286()dojo.js
>> (line 14)
>> 	Application.getMapSource(layerName).clearParameters();
>> geomoose.js (line 273)
>> TypeError: Application.getMapSource(...) is undefined
>> window.GeoMOOSE.clearLayerParameters()geomoose.js (line 273) ()dojo.js
>> (line 14) .onServiceReturn()dojo.js (line 14)
>> dojo._listener.getDispatcher/<()dojo.js (line 14)
>> dojo.hitch/<()dojo.js (line 14) dojo._ioSetArgs/<()dojo.js (line 14)
>> _102()dojo.js (line 14) _100()dojo.js (line 14) ()dojo.js (line 14)
>> _102()dojo.js (line 14) _100()dojo.js (line 14) ()dojo.js (line 14)
>> _28d()dojo.js (line 14) _286/func()dojo.js (line 14) _286()dojo.js
>> (line 14)
>> 	Application.getMapSource(layerName).clearParameters();
>> geomoose.js (line 273)
>>
>>
>> Parcel Map File
>>
>> MAP
>>                   NAME 'parcels'
>>                   SIZE 100 100
>>                   STATUS ON
>>                   EXTENT  93825.780843 534965.034252 137522.621907
>> 560222.710446
>>
>>                   UNITS METERS
>>
>>                   INCLUDE "../../geomoose_globals.map"
>>
>>                   WEB
>>                                   METADATA
>>                                                   'ows_title' 'Parcel Maps'
>>                                                   'ows_srs' 'EPSG:2929'
>>                                                   'ows_enable_request' '*'
>>                                   END
>>                   END
>>
>>                   PROJECTION
>>                                   'init=epsg:2929'
>>                   END
>>
>>                   LEGEND
>>                         STATUS ON
>>                         LABEL
>>                                   TYPE TRUETYPE
>>                                   FONT vera_sans
>>                                   SIZE 8
>>                                   COLOR 0 0 0
>>                       END
>>                   END
>>     
>>                   LAYER
>>                                   NAME TaxParcel
>>                                   DATA './TaxParcel.shp'
>>                                   STATUS ON
>>                                   TYPE POLYGON
>>                                   TOLERANCE 50
>>                                   TOLERANCEUNITS FEET
>> #                             LABELITEM 'PARCELID'
>> #                             LABELCACHE ON
>> #                             LABELMAXSCALE 2000
>>
>>                                   CLASS
>>                                                   NAME 'Parcels'
>>                                                   STYLE
>>                                                                   WIDTH .5
>>                                                                   OUTLINECOLOR 213 213 213
>>                                                                   MAXSCALEDENOM 8000
>>                                                   END
>>                                                   STYLE
>>                                                                   SIZE .5
>>                                                                   OUTLINECOLOR 213 213 213
>>                                                                   MAXSCALEDENOM 8000
>>                                                   END
>>
>> #                                             LABEL
>> #                                                             TYPE TRUETYPE
>> #                                                             FONT vera_sans
>> #                                                             SIZE 8
>> #                                                             ANTIALIAS TRUE
>> #                                                             COLOR 0 0 0
>> #                                                             OUTLINECOLOR 254 254 200
>> #                                                             BUFFER 4
>> #                                                             MINFEATURESIZE auto
>> #                                                             PARTIALS FALSE
>> #                                                             POSITION cc
>> #                                             END
>>                                   END
>>
>>                                   METADATA
>>                                                   # drill-down identify service record.
>>                                                   'identify_record'              'templates/identify.html'
>>
>>                                                   # query.php / "Search Parcels" functionality.
>>                                                   'itemquery'         'templates/search_result.html'
>>                                                   'itemquery-filter'             '/.*[qstring].*/i'
>>                                                   'qstring_validation_pattern' '.'
>>                                                   
>>                                                   # Feature reports are stored in the conf/feature_report directory.
>>                                                   'feature_report' 'parcel.xml'
>>
>>                                                   'select_record'  'templates/select_result.html'
>>                                                   'select_header' 'templates/select_header.html'
>>                                                   'popups' 'parcels_popup.html'
>>
>>                                   END
>>                                   
>>                     END
>>     
>> END ## end Map
>>
>> Identify.html
>>
>> <!-- MapServer Template -->
>> <tr bgcolor="#DEE5EB"><td colspan="2"><b><u>Parcels</u></b></tr>
>> <tr>
>> <td align="right"><b>PARCEL ID:</b></td> <td>[PARCELID] </tr> <td
>> align="right"><b>ADDRESS LOCATION:</b></td> <td>[LOCATION] </tr> <tr>
>> <td align="right"><b>OWNER INFORMATION:</b></td> <td>[OWNMAIL1] </tr>
>> <tr> <td align="right"><b>TOTAL VALUE:</b></td> <td>[TOTVAL] </tr>
>> <tr> <td align="right"><b>ACRES:</b></td> <td>[ACREAGE] </tr> <tr> <td
>> align="right"><b>SQ FT:</b></td> <td>[MapAreaTxt] </tr> <tr>
>> <td> </td> <td> </td> </tr>
>>
>>
>> Mapbook.xml
>>
>>                   <map-source name="Parcel" type="mapserver" reference="false">
>>                                   <file>./Data/Bellevue/TaxParcel.map</file>
>>                                   <layer name="TaxParcel" status="on"/>
>>                                   <param name="FORMAT" value="image/png;bits=8"/>
>>                   </map-source>
>>
>>                   <service name="identify" title="Identify" display="true">
>>                                   <url>php/identify.php</url>
>>                                   <step type="spatial" name="shape" line="false" polygon="false" jump-start="true" default="point" box="true" pan="false">
>>                                                   <input type="hidden" name="layers" value="Parcel/TaxParcel"/>
>>                                                   <header>
>>                                                                   Click on the map to see more detailed information.
>>                                                   </header>
>>                                                   <input type="visiblelayers" name="layers"/>
>>                                                   <input type="projection" name="projection"/>
>>                                   </step>
>>                   </service>
>>
>>
>> Thank You,
>>
>> Tim
>> -----------------------------------------------------------------
>> Tim Hennig
>> GIS Coordinator
>>
>> Community Development Department
>> Village of Bellevue
>> 2828 Allouez Avenue
>> Bellevue, WI 54311
>> media:  Facebook  |  Twitter  |  Blog  |  YouTube Channel P Save money
>> and the environment; think twice before printing this email.
>> This message may contain confidential information that is legally privileged, and is intended only for the use of the parties to whom it is addressed.  If you are not an intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any information in this message is strictly prohibited.  If you have received this message in error please notify me at  (920) 468-5225 or by reply e-mail.  Thank you.
>>
>>
>> -----Original Message-----
>> From: Brent Fraser [mailto:bfraser at geoanalytic.com]
>> Sent: Tuesday, March 12, 2013 11:24 AM
>> To: Tim Hennig
>> Subject: Re: Mr. Fraser Would you be able to help me regarding a
>> GeoMoose question identify error
>>
>> Tim,
>>
>>      I didn't see your post on the GeoMoose list; when did you post it?
>>
>> It's pretty hard to debug from the messages, but I'd guess your MapSource definition in your mapbook is not correct (could be many
>> reasons).   If you look in the Net tab of firebug, what is the server
>> sending back from the Identify operation in GeoMoose?
>>
>> Best Regards,
>> Brent Fraser
>>
>> On 3/12/2013 10:01 AM, timh at villageofbellevue.org wrote:
>>> Hi Mr. Fraser,
>>>
>>> I saw a comment that you made regarding this posting:
>>> http://osgeo-org.1560.n6.nabble.com/Geomoose-users-Identify-tool-td50
>>> 1
>>> 6095.html#a5016652
>>>
>>> I was wondering if you can help me or direct me to someone who can.  I posted my question to the GeoMoose email, and am not sure if I did it right.
>>>
>>> If you’re interested in helping me, this is what I’m getting for an error message.
>>>
>>> Error Calling the server:
>>> TypeError: Application.getMapSource(….) is undefined is undefined error message.  I keep getting this when I identify a parcel.
>>> TypeError: Application.getMapSource(...) is undefined
>>> window.GeoMOOSE.clearLayerParameters()geomoose.js (line 262)
>>> ()dojo.js (line 14) .onServiceReturn()dojo.js (line 14)
>>> dojo._listener.getDispatcher/<()dojo.js (line 14)
>>> dojo.hitch/<()dojo.js (line 14) dojo._ioSetArgs/<()dojo.js (line 14)
>>> _102()dojo.js (line 14) _100()dojo.js (line 14) ()dojo.js (line 14)
>>> _102()dojo.js (line 14) _100()dojo.js (line 14) ()dojo.js (line 14)
>>> _28d()dojo.js (line 14) _286/func()dojo.js (line 14) _286()dojo.js
>>> (line 14) Application.getMapSource(layerName).clearParameters();
>>>
>>> All the information from the identifyhtml is passing through and I can see the information in FireBug, but after that I get the error message.
>>>
>>> Would you be able to help me or know someone who can? Your help would be much appreciated.
>>>
>>> Thank you,
>>>
>>> Tim Hennig
>>> GIS Coordinator
>>>
>




More information about the Geomoose-users mailing list