<div dir="ltr">You're likely better off with a simple script that computes the bounding box and then uses mapserver to render the map.<div><br></div><div>E.G.: /cgi-bin/parcel-view.py?PIN=[xyz]</div><div><br></div><div>def getParcelBBOX(conn, pin):</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 11, 2017 at 11:22 AM, Basques, Bob (CI-StPaul) <span dir="ltr"><<a href="mailto:bob.basques@ci.stpaul.mn.us" target="_blank">bob.basques@ci.stpaul.mn.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
<br>
<div>
<blockquote type="cite"><br>
<div>
<div style="word-wrap:break-word">
Hi Steve,
<div><br>
</div>
<div>I want to send a CGI request like : ServerName?pin=202923230045</div>
<div><br>
</div>
<div>And zoom to the pin (parcel polygon) in the returned image and also add a buffer percentage. This is for a reporting application. I can do it with an intermediate service, but it’s been awhile since I did this, and was wondering if anything
new in MapServer might help with this for a single pass approach. </div>
<div><br>
</div>
<div>The zoom parameters would be hardcoded into the MapFILE in an ideal world, I can build an SQL for this for example, but I recall I couldn’t use the BBOX returned from the SQL as a BBOX for Mapserver parent call, my memory is cloudy on that capability
from MapServer though, hence the question. Now that you have me talking it through though, I think the last time I asked about this it was to inquire about possibly chaining more than one MapServer call together to get the result. I think there were fears
at the time about possible runaway processes being created . . . .</div>
<div><br>
</div>
<div>bobb</div>
<div><br>
</div>
<div><br>
<div>
<blockquote type="cite">
<div>On Jul 11, 2017, at 10:38 AM, Stephen Woodbridge <<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>> wrote:</div>
<br class="m_9103468939300603349Apple-interchange-newline">
<div>
<div>On 7/11/2017 10:39 AM, Basques, Bob (CI-StPaul) wrote:<br>
<blockquote type="cite">All,<br>
It’s probably because it’s Tues. but I think I’ve asked this before in the past . . .<br>
I have a DB with PIN numbers for PARCELS and I want to be able to auto-zoom(with buffer) to a PARCEL by just sending in a PIN number via CGI.<br>
can the BBOX be pulled from the DB based on the geom in one shot? I’ve done this in the past with a Webservice that went and grabbed the BBOX separately, then assembled the url for getting the graphic back from Mapserver.<br>
</blockquote>
<br>
Bobb,<br>
<br>
What are you trying to zoom? the image or the client?<br>
<br>
If it is the client then how is mapserver on the server supposed to tell the client it needs to zoom? You have to query the server to get the bbox then make the client zoom appropriately.<br>
<br>
For the image, assuming you want a static image showing the parcel, then I would write a php/python/perl script the you pass the PIN to and it does the work to figure out the extents and return the image.<br>
<br>
-Steve W<br>
<br>
---<br>
This email has been checked for viruses by Avast antivirus software.<br>
<a href="https://www.avast.com/antivirus" target="_blank">https://www.avast.com/<wbr>antivirus</a><br>
<br>
______________________________<wbr>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<wbr>org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-<wbr>users</a></div>
</div>
</blockquote>
</div>
<br>
<div>
<div style="font-family:'Comic Sans MS';font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;background-color:rgb(255,255,255)"><br class="m_9103468939300603349Apple-interchange-newline">
"If you're going through hell, keep going. “</span></div>
<div style="font-family:'Comic Sans MS';font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;background-color:rgb(255,255,255)"><span class="m_9103468939300603349Apple-tab-span" style="white-space:pre-wrap"></span>- Winston
Churchill</span><br style="box-sizing:border-box;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;background-color:rgb(255,255,255)">
<br>
</div>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<div>
<div style="color:rgb(0,0,0);font-family:'Comic Sans MS';font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br class="m_9103468939300603349Apple-interchange-newline">
<br>
</div>
<div style="color:rgb(0,0,0);font-family:'Comic Sans MS';font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<dt>"Be nice to people on your way up because you meet them on your way down."<span class="m_9103468939300603349Apple-converted-space"> </span></dt><dd>- Jimmy Durante
<div><br>
</div>
</dd></div>
<br class="m_9103468939300603349Apple-interchange-newline">
</div>
<br>
</div>
<br>______________________________<wbr>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.<wbr>org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-<wbr>users</a><br></blockquote></div><br></div>