<div dir="ltr">Wow. That did the trick. That was both simple and complex. Thanks very much.<div><br></div><div>I will look into resources you pointed me to. Really powerful stuff.</div><div><br></div><div>Thanks again,</div>

<div><br></div><div>Mitch</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><div><div><br></div></div></div></div></div><div class="gmail_quote">On Thu, Aug 1, 2013 at 10:24 AM, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=woodbri@swoodbridge.com&cc=&bcc=&su=&body=','_blank');return false;">woodbri@swoodbridge.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 8/1/2013 9:45 AM, Mitchell Gibbs wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks very much for all of your work on integrating the PAGC address<br>
parser into PostGIS. I'm new to PostGIS and was getting frustrated with<br>
the old address parser. The PAGC standardizer took some time to figure<br>
out but now that's I've got it working the quality of the results is<br>
much better and the performance is a huge boost.<br>
<br>
I am finding a situation that is confounding the current version and I<br>
wondered if there might be a simple solution.<br>
<br>
If an apartment has a designation like "1SW", the standardizer returns<br>
nothing. (e.g. "12345 S EVANS RD APT 1SW, OAK PARK, IL 60453"). Changing<br>
the unit designation to 1S or 1W works fine.<br>
<br>
Any advice?<br>
</blockquote>
<br></div></div>
You can add the following rule to the rules table:<br>
<br>
insert rules set rule='16 0 22 -1 16 17 17 -1 4 7';<br>
<br>
This parses:<br>
<br>
APT 1 SW as:<br>
<br>
UNITH NUMBER DIRECT -> UNITH UNITT UNITT<br>
  16    0     22    -1   16    17    17  -1 EXTRA RANK(7)<br>
<br>
You wil have to read more about the rules in pagclib and the pagc docs. You can also use pagc_stand to get some diagnostic output on how the standardizer works.<br>
<br>
-Steve<br>
______________________________<u></u>_________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=postgis-devel@lists.osgeo.org&cc=&bcc=&su=&body=','_blank');return false;">postgis-devel@lists.osgeo.org</a><br>


<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel" target="_blank">http://lists.osgeo.org/cgi-<u></u>bin/mailman/listinfo/postgis-<u></u>devel</a><br>
</blockquote></div><br></div></div>