<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {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
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.emailstyle17
        {mso-style-name:emailstyle17;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>“COUNTYNAME” is the
column name in the shapefile provided with geomoose and when I get zoomto.php
to work with the shapefile that is the qitem I use. <o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>My postgis county layer’s
column for the county name is ‘name’ all lowercase, which is what
use when I call my PostGIS data. So instead of the qstring/qitem used for
shapefile for PostGIS it is:<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal>…./moose/php/zoomto.php?map=/web/gis/geomoose/1.6/data/itemquery.map&qstring=Hennepin&qitem=name<o:p></o:p></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>My qstring (i.e. Hennepin) is
also matching the case and spelling of ‘Hennepin’ in the PostGIS
column ‘name’. Other ideas?<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'>Paul Senne<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'>GIS Specialist<br>
Legislative Coordinating Commission<br>
100 Rev. Dr. Martin Luther King Jr. Blvd. Ste 54<br>
651.296.3924</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:#1F497D'><o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Dan Little
[mailto:danlittle@yahoo.com] <br>
<b>Sent:</b> Friday, October 24, 2008 3:41 PM<br>
<b>To:</b> Paul Senne; geomoose-users@lists.sourceforge.net<br>
<b>Subject:</b> Re: [Geomoose-users] zoomto.php with PostGIS?<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Try
changing "COUNTYNAME" to the lowercase, "countyname".<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
<hr size=1 width="100%" align=center>
</span></div>
<p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Paul Senne <paul.senne@gis.leg.mn><br>
<b>To:</b> "geomoose-users@lists.sourceforge.net"
<geomoose-users@lists.sourceforge.net><br>
<b>Sent:</b> Friday, October 24, 2008 12:30:38 PM<br>
<b>Subject:</b> [Geomoose-users] zoomto.php with PostGIS?</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<div>
<p class=MsoNormal>I’m setting up a geomoose page that we will want to
link to specific areas of a feature layer such as a specific county and have
geomoose zoom directly to those when a user follows said link. I set up
the service and call it with the qitem and the qstring in the URL as follows:<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>…./moose/geomoose.html?call=zoom&qstring=Hennepin&qitem=COUNTYNAME
where ‘COUNTYNAME’ is the table column, ‘Hennepin’ is
the county from the table I want to zoom to and ‘zoom’ is the name
I gave the service. When using a shapefile, this works flawlessly.
However, when using POSTGIS and adjusting the qstring an qitem to match (case
included) the POSTGIS setup, I get nothing.<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>Looking at the url geomoose is calling to retrieve the
bounding coordinates for the zoom extent, I can narrow down the problem
specifically to the DATA source in my itemquery.map mapfile. Geomoose
calls the following url for the coordinates from the zoomto.php script.<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>…./moose/php/zoomto.php?map=/web/gis/geomoose/1.6/data/itemquery.map&qstring=Hennepin&qitem=COUNTYNAME<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>Using shapefile, this spits out the coordinates geomoose
needs. Switching my itemquery.map layer to PostGIS instead of shapefile
yields a response with no information or error.<o:p></o:p></p>
<p class=MsoNormal>My PostGIS data layer is drawing fine and I have identify
working just fine with it. My PostGIS DATA line in the mapfiles
(‘layername’.map, identify.map & itemquery.map) are all
the same:<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>
DATA "the_geom from cty2000 using unique gid"<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>If my PostGIS line is altered (incorrectly), I receive an
error rather than a blank response which leads me to believe that PostGIS is
not giving the zoomto.php script what it needs to spit out coordinates. <o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>Has anyone successfully used PostGIS with the
zoomto.php? If so, any help would be appreciated?<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>Thanks.<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Paul
Senne</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>GIS
Specialist<br>
Legislative Coordinating Commission<br>
100 Rev. Dr. Martin Luther King Jr. Blvd. Ste 54<br>
651.296.3924</span><o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
</div>
</div>
</div>
</div>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
</div>
</body>
</html>