[postgis-users] Line Segment inside polygon

Timothy H. Keitt tklistaddr at keittlab.bio.sunysb.edu
Tue Apr 30 06:13:11 PDT 2002


I would think you need to do a buffer operation rather than a
translation (you can only translate in one direction; if the road
curves, you'll get funny results).

T.

On Tue, 2002-04-30 at 09:06, Obe, Regina DND\MIS wrote:
> I'm trying to match street segments to political districts.  Basically what
> political district a street segment falls into.  The way the political
> districts are cut, they are cut along the center line of the street
> segments.
> 
> When I use truly_inside .. I get the right answer for the most part - except
> for the situation where the street segment is part of the border of a
> political district polygon - in which case the centerline - really sits in
> both districts.  (one side of the street is really in one district and the
> other side of the street is in another district)
> 
> My first hunch is to break this line into 2 parallel lines(representing each
> side of the street) where the middle line is what I currently have (the
> center line)
> 
> 	______________
> 
> 	- - - ----- - - - - -  -
> 
> 	______________
> 
> 
> I assume I need to use the translation function of some sort, but since this
> is all new to me, I'm a bit lost.  Note that my street segments may not be
> straight lines (but most are only composed of 2 - 6 points)
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users





More information about the postgis-users mailing list