Re: [postgis-users] Tiger geocoder, Spanish street types are pushed to the end

2012-10-01 Thread James Marca
Leo and Regina,

Thanks for the tips.  To follow up, I ended up going in a slightly
different direction, as I really wanted the whole segment from one
intersection to another, not just the intersection point.

My method relies more on regexes than yours, but I also have the
advantage that I'm only trying to geocode one data source, not any
random address.

Unfortunately, my source data is even less consistent than the
census in how it treats abbreviations!  I'm getting about 70% match
rate, and will have to do the rest by process of elimination I think.

One thing that might help your effort is I did a quick translation of
the abbreviations pdf into a csv document.  I can post it to github or
attach it to the bug report if you are interested. I use it by testing
for both the full name and any possible abbreviations in the regex
compare.

Regards,
James

On Thu, Sep 27, 2012 at 04:20:41PM -0400, Paragon Corporation wrote:
> 
> James,
> Which version are you using?  I assume the 2.1.0SVN one?
> 
> That we can probably change the structure of a bit since it hasn't been
> released yet and can probalby get away with change the norm_addy type as
> well which we've been dragging our feet on a bit
> Mostly because it brings along a bunch of upgrade issues we'd need to
> provide for people using tiger already.
> 
> If  you look at the file
> 
> tiger_2011\tables\lookup_tables_2011.sql
> 
> The street_type_lookup values is what controls how Camino is treated.
> 
> That probably will require another field at some point we are guessing to
> better follow the Tiger Feature name types convention of Prefix Type /
> Suffix type (and possibly Spanish column) they document in 
> 
> http://www.census.gov/geo/www/tiger/tgrshp2011/TGRSHP2011_TechDoc_E.pdf
> 
> I think we are missing a bunch too.  Haven't bothered reconciling their list
> with what we have.
> 
> That's probably a good start.  The normalize_address function itself is
> kinda scary to looku at but you can if you want.  We were hoping to
> modularize it a bit more later.
> 
> 
> Hope that helps,
> Leo and Regina
> http://www.postgis.us
> 
> 
> 
> -Original Message-
> From: postgis-users-boun...@postgis.refractions.net
> [mailto:postgis-users-boun...@postgis.refractions.net] On Behalf Of James
> Marca
> Sent: Thursday, September 27, 2012 4:06 PM
> To: 'PostGIS Users Discussion'
> Subject: Re: [postgis-users] Tiger geocoder,Spanish street types are pushed
> to the end
> 
> On Thu, Sep 27, 2012 at 03:56:53PM -0400, Paragon Corporation wrote:
> > James,
> > 
> > Sadly this is a known issue and one we haven't settled on the best way 
> > to fix without resorting to major surgery.
> 
> oops, my bad.  I forgot to look at the open tickets.
> 
> > 
> > Here is the ticket for it:
> > 
> > http://trac.osgeo.org/postgis/ticket/1118
> > 
> > If you can add your examples to the ticket and add yourself to cc for 
> > the ticket that would be great.  We'll add these to our regress tests 
> > when we finally come up with a palpable fix.
> 
> I'll do it now
> 
> > 
> > 
> > In MA we have similar issues, but mostly with french streets locally 
> > they are a rare occurrence, but Leo feels your pain about Cali since 
> > he's a San Diego boy.
> 
> I was going to say this might be a problem in other countries, but, duh,
> Tiger is US-only.
> 
> > 
> > Sorry we couldn't be more helpful.
> 
> I'm a reasonably competent hacker, so if you point me at the right
> file(s) I'd be happy to try my hand.
> 
> Regards,
> James
> 
> 
> ___
> postgis-users mailing list
> postgis-users@postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users



pgpVopk4CScWq.pgp
Description: PGP signature
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


Re: [postgis-users] where is postgis.sql?

2012-10-01 Thread Mike Toews
On 2 October 2012 13:53, Vince Miller  wrote:
> Thanks Mike, but your method produces the following message:
>
> ERROR:  could not open extension control file 
> "/usr/share/postgresql/9.1/extension/postgis.control": No such file or 
> directory.
>
> My OS is Ubuntu server 12.04, which includes with postgresql 9.1, which 
> installs simply with "apt-get install postgresql".

Both GEOS and PostGIS 2.0 needs to be installed from source. Follow
the instructions here:
http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS20Ubuntu1204src

Hope it works out!

-Mike
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


Re: [postgis-users] where is postgis.sql?

2012-10-01 Thread Vince Miller
Thanks Mike, but your method produces the following message:

ERROR:  could not open extension control file 
"/usr/share/postgresql/9.1/extension/postgis.control": No such file or 
directory.

My OS is Ubuntu server 12.04, which includes with postgresql 9.1, which 
installs simply with "apt-get install postgresql".

I don't know if this install includes the "server headers" that postGIS 
requires, and I don't know how to find out if it does.

Other respondents to my initial query have left the impression that postgis is 
NOT included in the ubuntu distro, that there is no simple "apt-get" for it, 
and that I must download and build it from source separately. To do this I 
evidently must also apt-get gcc and make, and download and build several other 
packages (gdal, Geos, Proj, libxml2, and json-c). I have done this but, in the 
postgis-2.0.1 directory, the command 

./configure --with-raster --with-topology 
--with-xml2config=/home/vince/geos/libxml2-2.7.8/xml2-config

fails with the follwing message:

configure: error: could not find headers include related to libxml2

What am I missing here?

--- On Sat, 9/29/12, Mike Toews  wrote:

> From: Mike Toews 
> Subject: Re: [postgis-users] where is postgis.sql?
> To: "PostGIS Users Discussion" 
> Date: Saturday, September 29, 2012, 2:32 PM
> Hi Vince,
> 
> What operation system? What method did you install? If you
> have
> pg_config installed (part of the development package of
> postgres), you
> can find the share and contrib directory:
> 
> $ ls `pg_config --sharedir`/contrib
> 
> But, since you are using 9.1, you should use the extension
> method of
> attaching postgis. From psql/pgAdmin in your target
> database, use the
> DDL command:
> 
> CREATE EXTENSION postgis;
> 
> -Mike
> 
> On 30 September 2012 06:28, Vince Miller 
> wrote:
> > Newby question: I want to attach postgis to my new db.
> Postgresql 9.1 seemed to install fine, but I can't find
> postgis.sql. Where is it? It's not in /usr/share/.../contrib
> as I'm given to expect. I don't want to compile from source
> to get it, if I don't have to. What's its relationship to
> postgis.sql.in.c?
> >
> > Thanks for your help.
> ___
> postgis-users mailing list
> postgis-users@postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> 
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users