<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-1223</id>
	<title>Nabble - PostGIS - User</title>
	<updated>2009-11-09T19:52:33Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/PostGIS---User-f1223.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PostGIS---User-f1223.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26277915</id>
	<title>Re: Small benchmark with PostGIS and MS	SQL-ServerSpatial: Any suggestions?</title>
	<published>2009-11-09T19:52:33Z</published>
	<updated>2009-11-09T19:52:33Z</updated>
	<author>
		<name>Kevin Neufeld</name>
	</author>
	<content type="html">Right. &amp;nbsp;You probably won't be able to actually publish the numbers as 
&lt;br&gt;Stanley pointed out, but for your own knowledge, I agree with Paul - 
&lt;br&gt;round out your testing with
&lt;br&gt;different spatial joins, like STContains, STTouches, STCrosses, etc. 
&lt;br&gt;with different geometry types (point/point, point/line, point/poly, 
&lt;br&gt;line/line, line/poly, poly/poly). &amp;nbsp;Test with different geometry sizes.
&lt;br&gt;&lt;br&gt;Test the spatial index by performing queries like &amp;quot;SELECT count(*) FROM 
&lt;br&gt;mytable WHERE geom.Filter(@geom)&amp;quot; (the &amp;&amp; equivalent operator in 
&lt;br&gt;PostGIS) over large tables, each of a different geometry type.
&lt;br&gt;&lt;br&gt;Personally, I would limit the number of tests like you have in #4. &amp;nbsp;
&lt;br&gt;Although interesting, you won't know how STArea and STIntersects 
&lt;br&gt;comparatively perform using such a query (since they're both in the same 
&lt;br&gt;query). &amp;nbsp;Rather, test raw computation speed by computing the buffer, 
&lt;br&gt;area, centroid, boundary, isvalid, pointonsurface, etc (in different 
&lt;br&gt;tests of course) of several large polygonal tables (one with small 
&lt;br&gt;polygons, one with large polygons, one mixed, etc). 
&lt;br&gt;&lt;br&gt;Try STUnion-ing an entire table of polygons and again of lines. &amp;nbsp;If you 
&lt;br&gt;really want to send shivers up your spine, I highly recommend you throw 
&lt;br&gt;in some simple point-in-polygon tests (ie. 100's of thousands of points 
&lt;br&gt;in a single large polygon of several 10's of thousands of vertices). &amp;nbsp;I 
&lt;br&gt;know Lion King is an old show, but I can't help but think &amp;quot;Mufasa&amp;quot;.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Kevin
&lt;br&gt;&lt;br&gt;Sufficool, Stanley wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Read the EULA on MSSQL first.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 5. &amp;nbsp;BENCHMARK TESTING. &amp;nbsp;You must obtain Microsoft's prior written approval to disclose to a third party the results of any benchmark test of the software. &amp;nbsp;However, this does not apply to the Microsoft .NET Framework (see below).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277915&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt; 
&lt;br&gt;&amp;gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277915&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;] On 
&lt;br&gt;&amp;gt;&amp;gt; Behalf Of Paul Ramsey
&lt;br&gt;&amp;gt;&amp;gt; Sent: Monday, November 09, 2009 3:08 PM
&lt;br&gt;&amp;gt;&amp;gt; To: PostGIS Users Discussion
&lt;br&gt;&amp;gt;&amp;gt; Subject: Re: [postgis-users] Small benchmark with PostGIS and 
&lt;br&gt;&amp;gt;&amp;gt; MS SQL-ServerSpatial: Any suggestions?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Mon, Nov 9, 2009 at 11:55 AM, Stefan Keller 
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277915&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sfkeller@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 1. Loading data (SELECT * INTO...) and generating indices (CREATE 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; SPATIAL INDEX...)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2. Non-spatial selection query (inc. filling table):
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; SELECT * INTO query2_result FROM {dataset} t
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; WHERE t.Name = n;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Don't do &amp;quot;SELECT INTO&amp;quot; as you'll muddy your query performance 
&lt;br&gt;&amp;gt;&amp;gt; with insert performance.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 3. Spatial query (inc. filling table):
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; SELECT * FROM {dataset} t &amp;nbsp;INTO query3_result
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; WHERE t.geom.STIntersects(@poly) = 1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; I try to do these kinds of queries with a &amp;quot;SELECT count(*)&amp;quot; 
&lt;br&gt;&amp;gt;&amp;gt; so that there is no penalty converting the rows returned into 
&lt;br&gt;&amp;gt;&amp;gt; some kind of output format.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 4. Combining two spatial functions (inc. filling table):
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; SELECT * FROM {polygons} t INTO query3_result
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; WHERE STArea(t.geom)&amp;gt;x AND t.geom.STIntersects(@poly) = 1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 5. Join of a linestring and a point table &amp;nbsp;(inc. filling table):
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; SELECT s.* FROM {linestrings} t
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; INNER JOIN {points} s ON STDistance(t.geom, s.geom) &amp;lt;= x INTO 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; query5_result
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; WHERE t.Type = 'Autobahn'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; For PostGIS, you have to use ST_DWithin() to get an 
&lt;br&gt;&amp;gt;&amp;gt; equivalent query to the STDistance query above.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Try some full table joins
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; select sum(length(p.geom)) from polys p join lines l on 
&lt;br&gt;&amp;gt;&amp;gt; st_contains(p.geom, l.geom) where l.type = 'Autobahn'
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Mix up the typologies, do st_contains/st_intersects of 
&lt;br&gt;&amp;gt;&amp;gt; poly/poly, poly/line, poly/poing Mix up the geometry sizes, 
&lt;br&gt;&amp;gt;&amp;gt; do the above on polygon tables of counties and of tracts
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Publish all the SQL and the data tables so people can 
&lt;br&gt;&amp;gt;&amp;gt; critique your work before you start publishing numbers.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; P.
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; postgis-users mailing list &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277915&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277915&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277915&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Small-benchmark-with-PostGIS-and-MS-SQL-Server-Spatial%3A-Any-suggestions--tp26272648p26277915.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26275694</id>
	<title>Re: Small benchmark with PostGIS and MS SQL-ServerSpatial: Any suggestions?</title>
	<published>2009-11-09T15:31:51Z</published>
	<updated>2009-11-09T15:31:51Z</updated>
	<author>
		<name>Sufficool, Stanley-2</name>
	</author>
	<content type="html">Read the EULA on MSSQL first.
&lt;br&gt;&lt;br&gt;5. &amp;nbsp;BENCHMARK TESTING. &amp;nbsp;You must obtain Microsoft's prior written approval to disclose to a third party the results of any benchmark test of the software. &amp;nbsp;However, this does not apply to the Microsoft .NET Framework (see below).
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26275694&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26275694&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;] On 
&lt;br&gt;&amp;gt; Behalf Of Paul Ramsey
&lt;br&gt;&amp;gt; Sent: Monday, November 09, 2009 3:08 PM
&lt;br&gt;&amp;gt; To: PostGIS Users Discussion
&lt;br&gt;&amp;gt; Subject: Re: [postgis-users] Small benchmark with PostGIS and 
&lt;br&gt;&amp;gt; MS SQL-ServerSpatial: Any suggestions?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Mon, Nov 9, 2009 at 11:55 AM, Stefan Keller 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26275694&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sfkeller@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 1. Loading data (SELECT * INTO...) and generating indices (CREATE 
&lt;br&gt;&amp;gt; &amp;gt; SPATIAL INDEX...)
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 2. Non-spatial selection query (inc. filling table):
&lt;br&gt;&amp;gt; &amp;gt;   SELECT * INTO query2_result FROM {dataset} t
&lt;br&gt;&amp;gt; &amp;gt;     WHERE t.Name = n;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Don't do &amp;quot;SELECT INTO&amp;quot; as you'll muddy your query performance 
&lt;br&gt;&amp;gt; with insert performance.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 3. Spatial query (inc. filling table):
&lt;br&gt;&amp;gt; &amp;gt;   SELECT * FROM {dataset} t  INTO query3_result
&lt;br&gt;&amp;gt; &amp;gt;     WHERE t.geom.STIntersects(@poly) = 1
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I try to do these kinds of queries with a &amp;quot;SELECT count(*)&amp;quot; 
&lt;br&gt;&amp;gt; so that there is no penalty converting the rows returned into 
&lt;br&gt;&amp;gt; some kind of output format.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 4. Combining two spatial functions (inc. filling table):
&lt;br&gt;&amp;gt; &amp;gt;   SELECT * FROM {polygons} t INTO query3_result
&lt;br&gt;&amp;gt; &amp;gt;     WHERE STArea(t.geom)&amp;gt;x AND t.geom.STIntersects(@poly) = 1
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 5. Join of a linestring and a point table  (inc. filling table):
&lt;br&gt;&amp;gt; &amp;gt;   SELECT s.* FROM {linestrings} t
&lt;br&gt;&amp;gt; &amp;gt;     INNER JOIN {points} s ON STDistance(t.geom, s.geom) &amp;lt;= x INTO 
&lt;br&gt;&amp;gt; &amp;gt; query5_result
&lt;br&gt;&amp;gt; &amp;gt;     WHERE t.Type = 'Autobahn'
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; For PostGIS, you have to use ST_DWithin() to get an 
&lt;br&gt;&amp;gt; equivalent query to the STDistance query above.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Try some full table joins
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; select sum(length(p.geom)) from polys p join lines l on 
&lt;br&gt;&amp;gt; st_contains(p.geom, l.geom) where l.type = 'Autobahn'
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Mix up the typologies, do st_contains/st_intersects of 
&lt;br&gt;&amp;gt; poly/poly, poly/line, poly/poing Mix up the geometry sizes, 
&lt;br&gt;&amp;gt; do the above on polygon tables of counties and of tracts
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Publish all the SQL and the data tables so people can 
&lt;br&gt;&amp;gt; critique your work before you start publishing numbers.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; P.
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-users mailing list &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26275694&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26275694&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Small-benchmark-with-PostGIS-and-MS-SQL-Server-Spatial%3A-Any-suggestions--tp26272648p26275694.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26275402</id>
	<title>Re: Small benchmark with PostGIS and MS SQL-Server Spatial: Any suggestions?</title>
	<published>2009-11-09T15:07:33Z</published>
	<updated>2009-11-09T15:07:33Z</updated>
	<author>
		<name>Paul Ramsey-3</name>
	</author>
	<content type="html">On Mon, Nov 9, 2009 at 11:55 AM, Stefan Keller &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26275402&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sfkeller@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; 1. Loading data (SELECT * INTO...) and generating indices (CREATE
&lt;br&gt;&amp;gt; SPATIAL INDEX...)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2. Non-spatial selection query (inc. filling table):
&lt;br&gt;&amp;gt;   SELECT * INTO query2_result FROM {dataset} t
&lt;br&gt;&amp;gt;     WHERE t.Name = n;
&lt;br&gt;&lt;br&gt;Don't do &amp;quot;SELECT INTO&amp;quot; as you'll muddy your query performance with
&lt;br&gt;insert performance.
&lt;br&gt;&lt;br&gt;&amp;gt; 3. Spatial query (inc. filling table):
&lt;br&gt;&amp;gt;   SELECT * FROM {dataset} t  INTO query3_result
&lt;br&gt;&amp;gt;     WHERE t.geom.STIntersects(@poly) = 1
&lt;br&gt;&lt;br&gt;I try to do these kinds of queries with a &amp;quot;SELECT count(*)&amp;quot; so that
&lt;br&gt;there is no penalty converting the rows returned into some kind of
&lt;br&gt;output format.
&lt;br&gt;&lt;br&gt;&amp;gt; 4. Combining two spatial functions (inc. filling table):
&lt;br&gt;&amp;gt;   SELECT * FROM {polygons} t INTO query3_result
&lt;br&gt;&amp;gt;     WHERE STArea(t.geom)&amp;gt;x AND t.geom.STIntersects(@poly) = 1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 5. Join of a linestring and a point table  (inc. filling table):
&lt;br&gt;&amp;gt;   SELECT s.* FROM {linestrings} t
&lt;br&gt;&amp;gt;     INNER JOIN {points} s ON STDistance(t.geom, s.geom) &amp;lt;= x INTO query5_result
&lt;br&gt;&amp;gt;     WHERE t.Type = ‘Autobahn’
&lt;br&gt;&lt;br&gt;For PostGIS, you have to use ST_DWithin() to get an equivalent query
&lt;br&gt;to the STDistance query above.
&lt;br&gt;&lt;br&gt;Try some full table joins
&lt;br&gt;&lt;br&gt;select sum(length(p.geom)) from polys p join lines l on
&lt;br&gt;st_contains(p.geom, l.geom) where l.type = 'Autobahn'
&lt;br&gt;&lt;br&gt;Mix up the typologies, do st_contains/st_intersects of poly/poly,
&lt;br&gt;poly/line, poly/poing
&lt;br&gt;Mix up the geometry sizes, do the above on polygon tables of counties
&lt;br&gt;and of tracts
&lt;br&gt;&lt;br&gt;Publish all the SQL and the data tables so people can critique your
&lt;br&gt;work before you start publishing numbers.
&lt;br&gt;&lt;br&gt;P.
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26275402&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Small-benchmark-with-PostGIS-and-MS-SQL-Server-Spatial%3A-Any-suggestions--tp26272648p26275402.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26272648</id>
	<title>Small benchmark with PostGIS and MS SQL-Server Spatial: Any suggestions?</title>
	<published>2009-11-09T11:55:32Z</published>
	<updated>2009-11-09T11:55:32Z</updated>
	<author>
		<name>Stefan Keller-4</name>
	</author>
	<content type="html">We're doing a small performance benchmark with PostGIS and Microsoft
&lt;br&gt;SQL-Server Spatial.
&lt;br&gt;&lt;br&gt;We took the Tiger data from FOSS4G's &amp;quot;WMS Performance: Mapserver vs.
&lt;br&gt;Geoserver&amp;quot; and are doing queries like shown below.
&lt;br&gt;&lt;br&gt;Any comments about these and/or suggestions about additional queries?
&lt;br&gt;&lt;br&gt;- Stefan
&lt;br&gt;&lt;br&gt;PostgreSQL syntax with curly brackets as table placeholders:
&lt;br&gt;&lt;br&gt;1. Loading data (SELECT * INTO...) and generating indices (CREATE
&lt;br&gt;SPATIAL INDEX...)
&lt;br&gt;&lt;br&gt;2. Non-spatial selection query (inc. filling table):
&lt;br&gt;&amp;nbsp; &amp;nbsp;SELECT * INTO query2_result FROM {dataset} t
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;WHERE t.Name = n;
&lt;br&gt;&lt;br&gt;3. Spatial query (inc. filling table):
&lt;br&gt;&amp;nbsp; &amp;nbsp;SELECT * FROM {dataset} t &amp;nbsp;INTO query3_result
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;WHERE t.geom.STIntersects(@poly) = 1
&lt;br&gt;&lt;br&gt;4. Combining two spatial functions (inc. filling table):
&lt;br&gt;&amp;nbsp; &amp;nbsp;SELECT * FROM {polygons} t INTO query3_result
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;WHERE STArea(t.geom)&amp;gt;x AND t.geom.STIntersects(@poly) = 1
&lt;br&gt;&lt;br&gt;5. Join of a linestring and a point table &amp;nbsp;(inc. filling table):
&lt;br&gt;&amp;nbsp; &amp;nbsp;SELECT s.* FROM {linestrings} t
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;INNER JOIN {points} s ON STDistance(t.geom, s.geom) &amp;lt;= x INTO query5_result
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;WHERE t.Type = ‘Autobahn’
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26272648&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Small-benchmark-with-PostGIS-and-MS-SQL-Server-Spatial%3A-Any-suggestions--tp26272648p26272648.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26257839</id>
	<title>Re: OpenStreetMap to GPS</title>
	<published>2009-11-08T12:52:57Z</published>
	<updated>2009-11-08T12:52:57Z</updated>
	<author>
		<name>Yancho</name>
	</author>
	<content type="html">Thanks alot :) the last part of the tutorial to load the 900913.sql really wasn&amp;#39;t useful then :) using the -l attributed helped the import to run successfully! thanks guys&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sat, Nov 7, 2009 at 11:28 PM, Emilie Laffray &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257839&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;emilie.laffray@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;Matthew Pulis wrote:&lt;br&gt;
&amp;gt; Guys,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I want to plot a list of GPS acquired locations with data originating&lt;br&gt;
&amp;gt; from OpenStreetMap. I am thinking to keep everything in GPS projection&lt;br&gt;
&amp;gt; since quite near in the future the project is going to be accepting&lt;br&gt;
&amp;gt; live GPS readings.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; OSM SRID = 900913&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Should I consider GPS SRID to be: 4326?&lt;br&gt;
&lt;/div&gt;It looks like you used osm2pgsql in its default mode. If you want to&lt;br&gt;
have data in 4326 with osm2pgsql, you have to use the flag -l.&lt;br&gt;
The default SRID for OSM is 4326. It is only osm2pgsql that is&lt;br&gt;
transforming this into 900913 for the rendering.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
Emilie Laffray&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
postgis-users mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257839&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Matthew Pulis&lt;br&gt;URL : &lt;a href=&quot;http://www.matthewpulis.info&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.matthewpulis.info&lt;/a&gt; | &lt;a href=&quot;http://www.solutions-lab.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.solutions-lab.net&lt;/a&gt;&lt;br&gt;

MSN : pulis_matthew[@]&lt;a href=&quot;http://hotmail.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hotmail.com&lt;/a&gt;&lt;br&gt;ICQ : 145951110&lt;br&gt;Skype : &lt;a href=&quot;http://solutions-lab.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solutions-lab.net&lt;/a&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257839&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/OpenStreetMap-to-GPS-tp26248517p26257839.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26255804</id>
	<title>Re: Is that possible a function to behave differently inside and outside another main function code?</title>
	<published>2009-11-08T09:26:41Z</published>
	<updated>2009-11-08T09:26:41Z</updated>
	<author>
		<name>rodrigosperb</name>
	</author>
	<content type="html">Hi Kevin,
&lt;br&gt;&lt;br&gt;Thanks for your repply. I can't be sure whether the two functions have the same X value, and I don't want them twice, that's why I was using UNION, instead of UNION ALL (which is much faster even...).
&lt;br&gt;&lt;br&gt;But what you said make some sense. Do you think if use first a UNION ALL and then in the outer query (when I order by q.t) I use DISTINCT may work?
&lt;br&gt;&lt;br&gt;I think I will try it out.
&lt;br&gt;&lt;br&gt;Thanks again for the help.
&lt;br&gt;&lt;br&gt;Rodrigo Sperb
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Kevin Neufeld wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Are you sure you want to use &amp;quot;UNION&amp;quot; and not &amp;quot;UNION ALL&amp;quot;? &amp;nbsp;The former 
&lt;br&gt;will remove duplicates, the latter does not. &amp;nbsp;It's conceivable that when 
&lt;br&gt;UNIONed, the three SELECT st_X clauses will return a single value. &amp;nbsp;
&lt;br&gt;Collected and put through ST_LineFromMultiPoint would probably result in 
&lt;br&gt;a single point line (depending on which version of PostGIS you are using 
&lt;br&gt;- the newer versions will ERROR with &amp;quot;geometry requires more points&amp;quot;).
&lt;br&gt;&lt;br&gt;Hope that helps,
&lt;br&gt;Kevin
&lt;br&gt;&lt;br&gt;rodrigosperb wrote:
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a bit of a problem that is sort of driving me crazy. I need to
&lt;br&gt;&amp;gt; perform an &amp;quot;addition of two (mathematical) functions&amp;quot;. I represent them as
&lt;br&gt;&amp;gt; linestrings in my solution, and it is part of another bigger function. The
&lt;br&gt;&amp;gt; code is as follows:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ...header...
&lt;br&gt;&amp;gt; SELECT st_LineFromMultiPoint(st_Collect(st_MakePoint(xy.t,xy.at)))
&lt;br&gt;&amp;gt; FROM (SELECT q.t, dr_delay_value($1,q.t) +
&lt;br&gt;&amp;gt; dr_delay_value($3,dr_delay_value($1,q.t)) AS at
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; FROM (SELECT st_X(st_PointN($1,n)) AS t
&lt;br&gt;&amp;gt; 	 &amp;nbsp; &amp;nbsp;FROM generate_series(1,st_NumPoints($1)) AS h(n)
&lt;br&gt;&amp;gt; 	 &amp;nbsp; &amp;nbsp;UNION
&lt;br&gt;&amp;gt; 	 &amp;nbsp; &amp;nbsp;SELECT st_X(st_PointN($2,n)) AS t
&lt;br&gt;&amp;gt; 	 &amp;nbsp; &amp;nbsp;FROM generate_series(1,st_NumPoints($2)) AS h(n)
&lt;br&gt;&amp;gt; 	 &amp;nbsp; &amp;nbsp;UNION
&lt;br&gt;&amp;gt; 	 &amp;nbsp; &amp;nbsp;SELECT st_Xmax($1) AS t
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ) AS q ORDER BY q.t) AS xy
&lt;br&gt;&amp;gt; ...bottom...
&lt;br&gt;&amp;gt; dr_delay_value() is simply a look-up function that takes the Y value for a
&lt;br&gt;&amp;gt; certain X.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The thing is that eventually this fuction is failing on returning more
&lt;br&gt;&amp;gt; specifically a 2-points linestring (that sould) and returns only a single
&lt;br&gt;&amp;gt; point one. Now, I have prepared a &amp;quot;wrapper&amp;quot; PL/Pgsql function to keep track
&lt;br&gt;&amp;gt; of what is passed to that function (perhaps that was the reason for the
&lt;br&gt;&amp;gt; error. With that I'm pretty much sure that the arguments passed are fine,
&lt;br&gt;&amp;gt; and still get the same error... Strangely, with my wrapper function keeping
&lt;br&gt;&amp;gt; track of the arguments passed to the function I was able to try out to run
&lt;br&gt;&amp;gt; the same request (that inside of the bigger function fails) separately, and
&lt;br&gt;&amp;gt; guess what? is simply works!!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I hope anyone may have a clue of what is going on. That's a very strange
&lt;br&gt;&amp;gt; behavior, I would say.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Rodrigo Sperb
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;postgis-users@postgis.refractions.net
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-that-possible-a-function-to-behave-differently-inside-and-outside-another-main-function-code--tp26251542p26255804.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26255763</id>
	<title>Re: Is that possible a function to behave differently inside and outside another main function code?</title>
	<published>2009-11-08T09:22:19Z</published>
	<updated>2009-11-08T09:22:19Z</updated>
	<author>
		<name>Kevin Neufeld</name>
	</author>
	<content type="html">Are you sure you want to use &amp;quot;UNION&amp;quot; and not &amp;quot;UNION ALL&amp;quot;? &amp;nbsp;The former 
&lt;br&gt;will remove duplicates, the latter does not. &amp;nbsp;It's conceivable that when 
&lt;br&gt;UNIONed, the three SELECT st_X clauses will return a single value. &amp;nbsp;
&lt;br&gt;Collected and put through ST_LineFromMultiPoint would probably result in 
&lt;br&gt;a single point line (depending on which version of PostGIS you are using 
&lt;br&gt;- the newer versions will ERROR with &amp;quot;geometry requires more points&amp;quot;).
&lt;br&gt;&lt;br&gt;Hope that helps,
&lt;br&gt;Kevin
&lt;br&gt;&lt;br&gt;rodrigosperb wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a bit of a problem that is sort of driving me crazy. I need to
&lt;br&gt;&amp;gt; perform an &amp;quot;addition of two (mathematical) functions&amp;quot;. I represent them as
&lt;br&gt;&amp;gt; linestrings in my solution, and it is part of another bigger function. The
&lt;br&gt;&amp;gt; code is as follows:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ...header...
&lt;br&gt;&amp;gt; SELECT st_LineFromMultiPoint(st_Collect(st_MakePoint(xy.t,xy.at)))
&lt;br&gt;&amp;gt; FROM (SELECT q.t, dr_delay_value($1,q.t) +
&lt;br&gt;&amp;gt; dr_delay_value($3,dr_delay_value($1,q.t)) AS at
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; FROM (SELECT st_X(st_PointN($1,n)) AS t
&lt;br&gt;&amp;gt; 	 &amp;nbsp; &amp;nbsp;FROM generate_series(1,st_NumPoints($1)) AS h(n)
&lt;br&gt;&amp;gt; 	 &amp;nbsp; &amp;nbsp;UNION
&lt;br&gt;&amp;gt; 	 &amp;nbsp; &amp;nbsp;SELECT st_X(st_PointN($2,n)) AS t
&lt;br&gt;&amp;gt; 	 &amp;nbsp; &amp;nbsp;FROM generate_series(1,st_NumPoints($2)) AS h(n)
&lt;br&gt;&amp;gt; 	 &amp;nbsp; &amp;nbsp;UNION
&lt;br&gt;&amp;gt; 	 &amp;nbsp; &amp;nbsp;SELECT st_Xmax($1) AS t
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ) AS q ORDER BY q.t) AS xy
&lt;br&gt;&amp;gt; ...bottom...
&lt;br&gt;&amp;gt; dr_delay_value() is simply a look-up function that takes the Y value for a
&lt;br&gt;&amp;gt; certain X.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The thing is that eventually this fuction is failing on returning more
&lt;br&gt;&amp;gt; specifically a 2-points linestring (that sould) and returns only a single
&lt;br&gt;&amp;gt; point one. Now, I have prepared a &amp;quot;wrapper&amp;quot; PL/Pgsql function to keep track
&lt;br&gt;&amp;gt; of what is passed to that function (perhaps that was the reason for the
&lt;br&gt;&amp;gt; error. With that I'm pretty much sure that the arguments passed are fine,
&lt;br&gt;&amp;gt; and still get the same error... Strangely, with my wrapper function keeping
&lt;br&gt;&amp;gt; track of the arguments passed to the function I was able to try out to run
&lt;br&gt;&amp;gt; the same request (that inside of the bigger function fails) separately, and
&lt;br&gt;&amp;gt; guess what? is simply works!!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I hope anyone may have a clue of what is going on. That's a very strange
&lt;br&gt;&amp;gt; behavior, I would say.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Rodrigo Sperb
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26255763&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-that-possible-a-function-to-behave-differently-inside-and-outside-another-main-function-code--tp26251542p26255763.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26254592</id>
	<title>Re: Postgis for dummies</title>
	<published>2009-11-08T07:11:54Z</published>
	<updated>2009-11-08T07:11:54Z</updated>
	<author>
		<name>Jorge Arévalo</name>
	</author>
	<content type="html">On Fri, Nov 6, 2009 at 7:03 PM, Fernando Tong &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254592&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nandorov@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have a dummy question:
&lt;br&gt;&amp;gt; i have a POLYGON, how can i get all the polygon's coordinates with a SELECT
&lt;br&gt;&amp;gt; query?
&lt;br&gt;&amp;gt; something like:
&lt;br&gt;&amp;gt; select unknown_functions(polygon) from mytable
&lt;br&gt;&amp;gt; output:
&lt;br&gt;&amp;gt; 1 POINT(1 2)
&lt;br&gt;&amp;gt; 2 POINT(2 2)
&lt;br&gt;&amp;gt; 3 POINT(3 2)
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; or much better if i get
&lt;br&gt;&amp;gt;     X    Y
&lt;br&gt;&amp;gt; 1  1     2
&lt;br&gt;&amp;gt; 2  2     2
&lt;br&gt;&amp;gt; 3  3     2
&lt;br&gt;&amp;gt; Thanks a lot.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Maybe a
&lt;br&gt;&lt;br&gt;SELECT ST_AsText(polygon_column) FROM Table
&lt;br&gt;&lt;br&gt;Is enough
&lt;br&gt;&lt;br&gt;Output:
&lt;br&gt;&lt;br&gt;POLYGON( (1 1, 2 2, 3 3) )
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, Nov 6, 2009 at 9:19 AM, David Fawcett &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254592&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;david.fawcett@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I think that another good way to approach it is to have a task/problem
&lt;br&gt;&amp;gt;&amp;gt; that you want to solve using PostGIS (whether real or made up).  Learn
&lt;br&gt;&amp;gt;&amp;gt; what you need to about PostGIS to solve that problem and branch out
&lt;br&gt;&amp;gt;&amp;gt; from there.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; David.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Fri, Nov 6, 2009 at 12:04 AM, Paragon Corporation &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254592&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lr@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; You can also look at some of these - might be helpful
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://workshops.opengeo.org/stack-intro/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://workshops.opengeo.org/stack-intro/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; This one is a bit dated but probably still useful
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://2007.foss4g.org/workshops/W-04/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://2007.foss4g.org/workshops/W-04/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Leo
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; ________________________________
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254592&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254592&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;] On Behalf Of Bob
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; and
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Deb
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Sent: Thursday, November 05, 2009 11:51 PM
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; To: PostGIS Users Discussion
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Subject: Re: [postgis-users] Postgis for dummies
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; How about the book, &amp;quot;PostGIS in Action&amp;quot; ?   There is even a free chapter
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; that might give you enough info to get started.  There is also the Wiki.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; -Bob
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; On Thu, Nov 5, 2009 at 6:34 PM, Jeff Matthews &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254592&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Need link to tutorial at the “dummy” level.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; I know a bit about kml, but that’s it.  In looking at postgis, I now
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; see,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; in the instructions, things like, “To spatially-enable a jump-oriented
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; static sql line pointer,….”   That’s just wayyyy over me.  Where do I
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; go as
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; I newbie in gis to become a pro like you all?
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254592&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254592&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254592&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254592&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254592&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Postgis-for-dummies-tp26225997p26254592.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26251542</id>
	<title>Is that possible a function to behave differently inside and outside another main function code?</title>
	<published>2009-11-07T23:43:32Z</published>
	<updated>2009-11-07T23:43:32Z</updated>
	<author>
		<name>rodrigosperb</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I have a bit of a problem that is sort of driving me crazy. I need to perform an &amp;quot;addition of two (mathematical) functions&amp;quot;. I represent them as linestrings in my solution, and it is part of another bigger function. The code is as follows:
&lt;br&gt;&lt;br&gt;...header...
&lt;br&gt;SELECT st_LineFromMultiPoint(st_Collect(st_MakePoint(xy.t,xy.at)))
&lt;br&gt;FROM (SELECT q.t, dr_delay_value($1,q.t) + dr_delay_value($3,dr_delay_value($1,q.t)) AS at
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; FROM (SELECT st_X(st_PointN($1,n)) AS t
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FROM generate_series(1,st_NumPoints($1)) AS h(n)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UNION
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SELECT st_X(st_PointN($2,n)) AS t
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FROM generate_series(1,st_NumPoints($2)) AS h(n)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UNION
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SELECT st_Xmax($1) AS t
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ) AS q ORDER BY q.t) AS xy
&lt;br&gt;...bottom...
&lt;br&gt;dr_delay_value() is simply a look-up function that takes the Y value for a certain X.
&lt;br&gt;&lt;br&gt;The thing is that eventually this fuction is failing on returning more specifically a 2-points linestring (that sould) and returns only a single point one. Now, I have prepared a &amp;quot;wrapper&amp;quot; PL/Pgsql function to keep track of what is passed to that function (perhaps that was the reason for the error. With that I'm pretty much sure that the arguments passed are fine, and still get the same error... Strangely, with my wrapper function keeping track of the arguments passed to the function I was able to try out to run the same request (that inside of the bigger function fails) separately, and guess what? is simply works!!
&lt;br&gt;&lt;br&gt;I hope anyone may have a clue of what is going on. That's a very strange behavior, I would say.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Rodrigo Sperb</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-that-possible-a-function-to-behave-differently-inside-and-outside-another-main-function-code--tp26251542p26251542.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26250537</id>
	<title>Re: Postgis for dummies</title>
	<published>2009-11-07T18:34:37Z</published>
	<updated>2009-11-07T18:34:37Z</updated>
	<author>
		<name>Mark Leslie-2</name>
	</author>
	<content type="html">There's another workshop available at 
&lt;br&gt;&lt;a href=&quot;http://revenant.ca/www/postgis/workshop/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://revenant.ca/www/postgis/workshop/&lt;/a&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Mark
&lt;br&gt;&lt;br&gt;Paragon Corporation wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You can also look at some of these - might be helpful
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://workshops.opengeo.org/stack-intro/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://workshops.opengeo.org/stack-intro/&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; This one is a bit dated but probably still useful
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://2007.foss4g.org/workshops/W-04/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://2007.foss4g.org/workshops/W-04/&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Leo
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; *From:* &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26250537&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26250537&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;] *On Behalf Of 
&lt;br&gt;&amp;gt; *Bob and Deb
&lt;br&gt;&amp;gt; *Sent:* Thursday, November 05, 2009 11:51 PM
&lt;br&gt;&amp;gt; *To:* PostGIS Users Discussion
&lt;br&gt;&amp;gt; *Subject:* Re: [postgis-users] Postgis for dummies
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; How about the book, &amp;quot;PostGIS in Action &amp;lt;&lt;a href=&quot;http://www.manning.com/obe/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.manning.com/obe/&lt;/a&gt;&amp;gt;&amp;quot; 
&lt;br&gt;&amp;gt; ? &amp;nbsp; There is even a free chapter that might give you enough info to get 
&lt;br&gt;&amp;gt; started. &amp;nbsp;There is also the Wiki 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/wiki/UsersWikiMain&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/wiki/UsersWikiMain&lt;/a&gt;&amp;gt;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -Bob
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Thu, Nov 5, 2009 at 6:34 PM, Jeff Matthews &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26250537&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26250537&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info@...&lt;/a&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Need link to tutorial at the “dummy” level.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; I know a bit about kml, but that’s it. &amp;nbsp;In looking at postgis, I now
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; see, in the instructions, things like, “To spatially-enable a
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; jump-oriented static sql line pointer,….” &amp;nbsp; That’s just wayyyy over
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; me. &amp;nbsp;Where do I go as I newbie in gis to become a pro like you all?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Thanks.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; _______________________________________________
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; postgis-users mailing list
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26250537&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26250537&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26250537&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26250537&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Postgis-for-dummies-tp26225997p26250537.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26249268</id>
	<title>Re: OpenStreetMap to GPS</title>
	<published>2009-11-07T14:28:37Z</published>
	<updated>2009-11-07T14:28:37Z</updated>
	<author>
		<name>Emilie Laffray</name>
	</author>
	<content type="html">Matthew Pulis wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Guys,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want to plot a list of GPS acquired locations with data originating
&lt;br&gt;&amp;gt; from OpenStreetMap. I am thinking to keep everything in GPS projection
&lt;br&gt;&amp;gt; since quite near in the future the project is going to be accepting
&lt;br&gt;&amp;gt; live GPS readings.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; OSM SRID = 900913
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Should I consider GPS SRID to be: 4326?
&lt;/div&gt;It looks like you used osm2pgsql in its default mode. If you want to
&lt;/div&gt;have data in 4326 with osm2pgsql, you have to use the flag -l.
&lt;br&gt;The default SRID for OSM is 4326. It is only osm2pgsql that is
&lt;br&gt;transforming this into 900913 for the rendering.
&lt;br&gt;&lt;br&gt;Emilie Laffray
&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26249268&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (202 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26249268/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/OpenStreetMap-to-GPS-tp26248517p26249268.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26248794</id>
	<title>Re: OpenStreetMap to GPS</title>
	<published>2009-11-07T13:37:33Z</published>
	<updated>2009-11-07T13:37:33Z</updated>
	<author>
		<name>Greg Troxel</name>
	</author>
	<content type="html">&lt;br&gt;Matthew Pulis &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26248794&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mpulis@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I want to plot a list of GPS acquired locations with data originating from
&lt;br&gt;&amp;gt; OpenStreetMap. I am thinking to keep everything in GPS projection since
&lt;br&gt;&amp;gt; quite near in the future the project is going to be accepting live GPS
&lt;br&gt;&amp;gt; readings.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; OSM SRID = 900913
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Should I consider GPS SRID to be: 4326?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; However when I try to transform this geometry:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; gis=# select astext(way), asewkt(way), st_srid(way) from malta_roads
&lt;br&gt;&amp;gt; gis-# where osm_id = 23561453;
&lt;/div&gt;&lt;/div&gt;Have you looked at the .osm file with an editor to see what's actually
&lt;br&gt;in it?
&lt;br&gt;&lt;br&gt;I think you'll find that the data in the osm file is actually in SRID
&lt;br&gt;4326. &amp;nbsp;Certainly the osm file saved by JOSM is in this format, and also
&lt;br&gt;e.g. the Massachusetts state extract of the planet file from cloudmade.
&lt;br&gt;&lt;br&gt;It is true that OSM uses google spherical mercator for creating map
&lt;br&gt;tiles, but those are then projected coordinates rather than what appears
&lt;br&gt;in the vector database. &amp;nbsp;It is of course possible that your vector file
&lt;br&gt;has been pre-transformed to something unusual, but from my experience
&lt;br&gt;with osm that would be somewhat odd.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26248794&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (200 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26248794/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/OpenStreetMap-to-GPS-tp26248517p26248794.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26248517</id>
	<title>OpenStreetMap to GPS</title>
	<published>2009-11-07T12:59:14Z</published>
	<updated>2009-11-07T12:59:14Z</updated>
	<author>
		<name>Yancho</name>
	</author>
	<content type="html">Guys,&lt;br&gt;&lt;br&gt;I want to plot a list of GPS acquired locations with data originating from OpenStreetMap. I am thinking to keep everything in GPS projection since quite near in the future the project is going to be accepting live GPS readings.&lt;br&gt;

&lt;br&gt;OSM SRID = 900913&lt;br&gt;&lt;br&gt;Should I consider GPS SRID to be: 4326?&lt;br&gt;&lt;br&gt;However when I try to transform this geometry:&lt;br&gt;&lt;br&gt;gis=# select astext(way), asewkt(way), st_srid(way) from malta_roads &lt;br&gt;gis-# where osm_id = 23561453;&lt;br&gt;

                                                                     astext                                                                     |                                                                           asewkt                                                                           | st_srid &lt;br&gt;

------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+---------&lt;br&gt;

 LINESTRING(1582821.69 4304893.15,1582810.45 4304860.01,1582804.55 4304849.75,1582790.4 4304824.81,1582776.19 4304794.61,1582748.85 4304746.72) | SRID=900913;LINESTRING(1582821.69 4304893.15,1582810.45 4304860.01,1582804.55 4304849.75,1582790.4 4304824.81,1582776.19 4304794.61,1582748.85 4304746.72) |  900913&lt;br&gt;

(1 row)&lt;br&gt;&lt;br&gt;&lt;br&gt;I get:&lt;br&gt;&lt;br&gt;gis=# select astext(st_transform(way, 4326)) from malta_roads &lt;br&gt;gis-# where osm_id = 23561453;&lt;br&gt;ERROR:  transform: couldn&amp;#39;t project point (1.58281e+06 4.30486e+06 0): failed to load NAD27-83 correction file (-38)&lt;br&gt;

HINT:  PostGIS was unable to transform the point because either no grid shift files were found, or the point does not lie within the range for which the grid shift is defined. Refer to the ST_Transform() section of the PostGIS manual for details on how to configure PostGIS to alter this behaviour.&lt;br&gt;

gis=# &lt;br&gt;&lt;br&gt;&lt;br&gt;The data in malta_roads has been acquired from OpenSreetMap in a file .osm. Data regards Maltese roads.&lt;br&gt;&lt;br&gt;Thanks for your help and Happy Weekend!&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Matthew Pulis&lt;br&gt;URL : &lt;a href=&quot;http://www.matthewpulis.info&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.matthewpulis.info&lt;/a&gt; | &lt;a href=&quot;http://www.solutions-lab.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.solutions-lab.net&lt;/a&gt;&lt;br&gt;

MSN : pulis_matthew[@]&lt;a href=&quot;http://hotmail.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hotmail.com&lt;/a&gt;&lt;br&gt;ICQ : 145951110&lt;br&gt;Skype : &lt;a href=&quot;http://solutions-lab.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solutions-lab.net&lt;/a&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26248517&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/OpenStreetMap-to-GPS-tp26248517p26248517.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26242145</id>
	<title>Re: Postgis for dummies</title>
	<published>2009-11-06T21:04:10Z</published>
	<updated>2009-11-06T21:04:10Z</updated>
	<author>
		<name>Kevin Neufeld</name>
	</author>
	<content type="html">The best way? &amp;nbsp;Unfortunately, at this point in time, I'm afraid so. &amp;nbsp;
&lt;br&gt;We've had this on our wish list for some time now 
&lt;br&gt;(&lt;a href=&quot;http://trac.osgeo.org/postgis/ticket/76&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/ticket/76&lt;/a&gt;). &amp;nbsp;If you want, you can import 
&lt;br&gt;a plpgsql implementation of this until it's implemented in C 
&lt;br&gt;(&lt;a href=&quot;http://trac.osgeo.org/postgis/attachment/ticket/76/my_st_dump_points.2.sql&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/attachment/ticket/76/my_st_dump_points.2.sql&lt;/a&gt;). 
&lt;br&gt;&lt;br&gt;&lt;br&gt;Usage would be something like:
&lt;br&gt;SELECT ST_AsText( (ST_DumpPoints( poly )).geom )
&lt;br&gt;FROM (
&lt;br&gt;&amp;nbsp; &amp;nbsp;SELECT 'POLYGON((0 0, 1 1, 1 0, 0 0))'::geometry AS poly
&lt;br&gt;) AS foo;
&lt;br&gt;&lt;br&gt;&amp;nbsp;st_astext 
&lt;br&gt;------------
&lt;br&gt;&amp;nbsp;POINT(0 0)
&lt;br&gt;&amp;nbsp;POINT(1 1)
&lt;br&gt;&amp;nbsp;POINT(1 0)
&lt;br&gt;&amp;nbsp;POINT(0 0)
&lt;br&gt;(4 rows)
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Kevin
&lt;br&gt;&lt;br&gt;Fernando Tong wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; it works, &amp;nbsp;thank you very much. However, i wonder if this is the best 
&lt;br&gt;&amp;gt; way (:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Fri, Nov 6, 2009 at 1:26 PM, Moen, Paul T. &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pmoen@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pmoen@...&lt;/a&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; SELECT DISTINCT ST_X(ST_POINTN(foo.lines,foo.index)) AS
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; x,ST_Y(ST_POINTN(foo.lines,foo.index)) AS y FROM 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; (select thelines.lines,generate_series(1,thelines.n) AS index FROM 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; (select polys.geo AS lines, ST_NUMPOINTS(polys.geo) AS n FROM 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; (SELECT ST_BOUNDARY((ST_DUMP(the_geom)).geom) AS geo FROM
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;quot;YOURTABLE&amp;quot; WHERE YOURQUERY) AS polys) 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; AS thelines) 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; AS foo;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; should work for multipolygons and polygons.although there may be
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; an easier way.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Paul Moen
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; On Nov 6, 2009, at 12:03 PM, Fernando Tong wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; I have a dummy question:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; i have a POLYGON, how can i get all the polygon's coordinates
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; with a SELECT query?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; something like: 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; select unknown_functions(polygon) from mytable
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; output:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 1 POINT(1 2) 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 2 POINT(2 2)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 3 POINT(3 2)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; or much better if i get
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; X &amp;nbsp; &amp;nbsp;Y
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp;1 &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 3 &amp;nbsp;3 &amp;nbsp; &amp;nbsp; 2
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; Thanks a lot.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; On Fri, Nov 6, 2009 at 9:19 AM, David Fawcett
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;david.fawcett@...&lt;/a&gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;david.fawcett@...&lt;/a&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I think that another good way to approach it is to have a
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; task/problem
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; that you want to solve using PostGIS (whether real or made
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; up). &amp;nbsp;Learn
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; what you need to about PostGIS to solve that problem and
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; branch out
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from there.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; David.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; On Fri, Nov 6, 2009 at 12:04 AM, Paragon Corporation
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lr@...&lt;/a&gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lr@...&lt;/a&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; You can also look at some of these - might be helpful
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; &lt;a href=&quot;http://workshops.opengeo.org/stack-intro/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://workshops.opengeo.org/stack-intro/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; This one is a bit dated but probably still useful
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; &lt;a href=&quot;http://2007.foss4g.org/workshops/W-04/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://2007.foss4g.org/workshops/W-04/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; Leo
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; ________________________________
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;&amp;gt;] On
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Behalf Of Bob and
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; Deb
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; Sent: Thursday, November 05, 2009 11:51 PM
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; To: PostGIS Users Discussion
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; Subject: Re: [postgis-users] Postgis for dummies
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; How about the book, &amp;quot;PostGIS in Action&amp;quot; ? &amp;nbsp; There is even a
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; free chapter
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; that might give you enough info to get started. &amp;nbsp;There is
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; also the Wiki.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; -Bob
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; On Thu, Nov 5, 2009 at 6:34 PM, Jeff Matthews
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info@...&lt;/a&gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info@...&lt;/a&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; Need link to tutorial at the “dummy” level.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; I know a bit about kml, but that’s it. &amp;nbsp;In looking at
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; postgis, I now see,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; in the instructions, things like, “To spatially-enable a
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; jump-oriented
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; static sql line pointer,….” &amp;nbsp; That’s just wayyyy over me. 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Where do I go as
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; I newbie in gis to become a pro like you all?
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; postgis-users mailing list
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=16&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=17&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; postgis-users mailing list
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=18&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=19&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; _______________________________________________
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; postgis-users mailing list
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=20&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=21&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=22&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26242145&amp;i=23&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Postgis-for-dummies-tp26225997p26242145.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26241998</id>
	<title>Re: Using plpgsql for in select with st_dump</title>
	<published>2009-11-06T20:22:10Z</published>
	<updated>2009-11-06T20:22:10Z</updated>
	<author>
		<name>Kevin Neufeld</name>
	</author>
	<content type="html">You have a typo in both of your &amp;quot;output := ...&amp;quot; lines. &amp;nbsp;You've declared 
&lt;br&gt;tmpgeo, not tempgeo.
&lt;br&gt;Also, you're missing a line to increment count. &amp;nbsp;Perhaps after the inner 
&lt;br&gt;if statement, &amp;quot;count := count+1;&amp;quot;
&lt;br&gt;Hope that helps,
&lt;br&gt;Kevin
&lt;br&gt;&lt;br&gt;Moen, Paul T. wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I am trying to expand my horizons and learn some plpgsq. &amp;nbsp;I want to 
&lt;br&gt;&amp;gt; split out a list of points from a multipoint via plpgsql into json, 
&lt;br&gt;&amp;gt; not geojson. &amp;nbsp;I get the following notices.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ERROR: &amp;nbsp;missing FROM-clause entry for table &amp;quot;tempgeo&amp;quot;
&lt;br&gt;&amp;gt; LINE 1: SELECT &amp;nbsp; $1 ||'{&amp;quot;x&amp;quot;:'|| $2 ||',&amp;quot;y&amp;quot;:'||tempgeo.they||'}'
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^
&lt;br&gt;&amp;gt; QUERY: &amp;nbsp;SELECT &amp;nbsp; $1 ||'{&amp;quot;x&amp;quot;:'|| $2 ||',&amp;quot;y&amp;quot;:'||tempgeo.they||'}'
&lt;br&gt;&amp;gt; CONTEXT: &amp;nbsp;PL/pgSQL function &amp;quot;pointsfromgeom&amp;quot; line 16 at assignment
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ********** Error **********
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ERROR: missing FROM-clause entry for table &amp;quot;tempgeo&amp;quot;
&lt;br&gt;&amp;gt; SQL state: 42P01
&lt;br&gt;&amp;gt; Context: PL/pgSQL function &amp;quot;pointsfromgeom&amp;quot; line 16 at assignment
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is there any way to do this? Does the record type have to be based on 
&lt;br&gt;&amp;gt; an existing table? &amp;nbsp;Is this the right list to ask? &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; CREATE OR REPLACE FUNCTION pointsfromgeom(ingeom GEOMETRY) RETURNS 
&lt;br&gt;&amp;gt; TEXT AS $$
&lt;br&gt;&amp;gt; DECLARE
&lt;br&gt;&amp;gt; geotype TEXT;
&lt;br&gt;&amp;gt; output TEXT:='';
&lt;br&gt;&amp;gt; BEGIN
&lt;br&gt;&amp;gt; SELECT INTO geotype geometrytype(ingeom);
&lt;br&gt;&amp;gt; IF (geotype = 'MULTIPOINT') THEN
&lt;br&gt;&amp;gt; DECLARE
&lt;br&gt;&amp;gt; tmpgeo RECORD;
&lt;br&gt;&amp;gt; count integer :=1;
&lt;br&gt;&amp;gt; BEGIN
&lt;br&gt;&amp;gt; FOR tmpgeo IN SELECT DISTINCT st_x((st_dump(ingeom)).geom) as 
&lt;br&gt;&amp;gt; thex,st_y((st_dump(ingeom)).geom) as they
&lt;br&gt;&amp;gt; LOOP 
&lt;br&gt;&amp;gt; IF (count=1) THEN
&lt;br&gt;&amp;gt; output := '[{&amp;quot;x&amp;quot;:'||tmpgeo.thex||',&amp;quot;y&amp;quot;:'||tempgeo.they||'}';
&lt;br&gt;&amp;gt; ELSE
&lt;br&gt;&amp;gt; output := output||',{&amp;quot;x&amp;quot;:'||tmpgeo.thex||',&amp;quot;y&amp;quot;:'||tempgeo.they||'}';
&lt;br&gt;&amp;gt; END IF;
&lt;br&gt;&amp;gt; END LOOP;
&lt;br&gt;&amp;gt; output:=output||']';
&lt;br&gt;&amp;gt; END;
&lt;br&gt;&amp;gt; ELSE
&lt;br&gt;&amp;gt; RAISE NOTICE 'Geometry type is not compatable';
&lt;br&gt;&amp;gt; RETURN NULL;
&lt;br&gt;&amp;gt; END IF;
&lt;br&gt;&amp;gt; RETURN output;
&lt;br&gt;&amp;gt; END;
&lt;br&gt;&amp;gt; $$ LANGUAGE 'plpgsql';
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Paul
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26241998&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26241998&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Using-plpgsql-for-in-select-with-st_dump-tp26235953p26241998.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26237281</id>
	<title>Re: Postgis for dummies</title>
	<published>2009-11-06T11:16:34Z</published>
	<updated>2009-11-06T11:16:34Z</updated>
	<author>
		<name>Nandorov</name>
	</author>
	<content type="html">it works,  thank you very much. However, i wonder if this is the best way (:&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 6, 2009 at 1:26 PM, Moen, Paul T. &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237281&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pmoen@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;&lt;div style=&quot;word-wrap:break-word&quot;&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;SELECT DISTINCT ST_X(ST_POINTN(foo.lines,foo.index)) AS x,ST_Y(ST_POINTN(foo.lines,foo.index)) AS y FROM &lt;/div&gt;

&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;(select thelines.lines,generate_series(1,thelines.n) AS index FROM &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;(select polys.geo AS lines, ST_NUMPOINTS(polys.geo) AS n FROM &lt;/div&gt;

&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;(SELECT ST_BOUNDARY((ST_DUMP(the_geom)).geom) AS geo FROM &amp;quot;YOURTABLE&amp;quot; WHERE YOURQUERY) AS polys) &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;AS thelines) &lt;/div&gt;

&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;AS foo;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;should work for multipolygons and polygons.although there may be an easier way.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;div&gt;

&lt;br&gt;&lt;/div&gt;&lt;div&gt;
Paul Moen&lt;br&gt;&lt;br&gt;
&lt;/div&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;
&lt;br&gt;&lt;div&gt;&lt;div&gt;On Nov 6, 2009, at 12:03 PM, Fernando Tong wrote:&lt;/div&gt;&lt;br&gt;&lt;blockquote type=&quot;cite&quot;&gt;I have a dummy question:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;i have a POLYGON, how can i get all the polygon&amp;#39;s coordinates with a SELECT query?&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;something like: &lt;/div&gt;&lt;div&gt;select unknown_functions(polygon) from mytable&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;output:&lt;/div&gt;&lt;div&gt;1 POINT(1 2) &lt;/div&gt;&lt;div&gt;2 POINT(2 2)&lt;/div&gt;&lt;div&gt;3 POINT(3 2)&lt;/div&gt;&lt;div&gt;...&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;or much better if i get&lt;/div&gt;&lt;div&gt;    X    Y&lt;/div&gt;&lt;div&gt;1  1     2&lt;/div&gt;&lt;div&gt;2  2     2&lt;/div&gt;



&lt;div&gt;3  3     2&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks a lot.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 6, 2009 at 9:19 AM, David Fawcett &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237281&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;david.fawcett@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;



&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex&quot;&gt;I think that another good way to approach it is to have a task/problem&lt;br&gt;
that you want to solve using PostGIS (whether real or made up).  Learn&lt;br&gt;
what you need to about PostGIS to solve that problem and branch out&lt;br&gt;
from there.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
David.&lt;br&gt;
&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
On Fri, Nov 6, 2009 at 12:04 AM, Paragon Corporation &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237281&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lr@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; You can also look at some of these - might be helpful&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://workshops.opengeo.org/stack-intro/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://workshops.opengeo.org/stack-intro/&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; This one is a bit dated but probably still useful&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://2007.foss4g.org/workshops/W-04/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://2007.foss4g.org/workshops/W-04/&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Leo&lt;br&gt;
&amp;gt; ________________________________&lt;br&gt;
&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237281&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;&lt;br&gt;
&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237281&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;] On Behalf Of Bob and&lt;br&gt;
&amp;gt; Deb&lt;br&gt;
&amp;gt; Sent: Thursday, November 05, 2009 11:51 PM&lt;br&gt;
&amp;gt; To: PostGIS Users Discussion&lt;br&gt;
&amp;gt; Subject: Re: [postgis-users] Postgis for dummies&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; How about the book, &amp;quot;PostGIS in Action&amp;quot; ?   There is even a free chapter&lt;br&gt;
&amp;gt; that might give you enough info to get started.  There is also the Wiki.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; -Bob&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; On Thu, Nov 5, 2009 at 6:34 PM, Jeff Matthews &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237281&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Need link to tutorial at the “dummy” level.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; I know a bit about kml, but that’s it.  In looking at postgis, I now see,&lt;br&gt;
&amp;gt;&amp;gt; in the instructions, things like, “To spatially-enable a jump-oriented&lt;br&gt;
&amp;gt;&amp;gt; static sql line pointer,….”   That’s just wayyyy over me.  Where do I go as&lt;br&gt;
&amp;gt;&amp;gt; I newbie in gis to become a pro like you all?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Thanks.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt;&amp;gt; postgis-users mailing list&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237281&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; postgis-users mailing list&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237281&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
postgis-users mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237281&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
_______________________________________________&lt;br&gt;postgis-users mailing list&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237281&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;

&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
postgis-users mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237281&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237281&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Postgis-for-dummies-tp26225997p26237281.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26236463</id>
	<title>Re: Postgis for dummies</title>
	<published>2009-11-06T10:26:24Z</published>
	<updated>2009-11-06T10:26:24Z</updated>
	<author>
		<name>Moen, Paul T.</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;SELECT DISTINCT ST_X(ST_POINTN(foo.lines,foo.index)) AS x,ST_Y(ST_POINTN(foo.lines,foo.index)) AS y FROM&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;(select thelines.lines,generate_series(1,thelines.n) AS index FROM&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;(select polys.geo AS lines, ST_NUMPOINTS(polys.geo) AS n FROM&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;(SELECT ST_BOUNDARY((ST_DUMP(the_geom)).geom) AS geo FROM &quot;YOURTABLE&quot; WHERE YOURQUERY) AS polys)&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;AS thelines)&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;AS foo;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br class=&quot;webkit-block-placeholder&quot;&gt;&lt;/div&gt;&lt;div&gt;should work for multipolygons and polygons.although there may be an easier way.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;
Paul Moen&lt;br&gt;&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;&lt;div&gt;&lt;div&gt;On Nov 6, 2009, at 12:03 PM, Fernando Tong wrote:&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt;I have a dummy question:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;i have a POLYGON, how can i get all the polygon's coordinates with a SELECT query?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;something like:&amp;nbsp;&lt;/div&gt;&lt;div&gt;select unknown_functions(polygon) from mytable&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;output:&lt;/div&gt;&lt;div&gt;1 POINT(1 2)&amp;nbsp;&lt;/div&gt;&lt;div&gt;2&amp;nbsp;POINT(2 2)&lt;/div&gt;&lt;div&gt;3&amp;nbsp;POINT(3 2)&lt;/div&gt;&lt;div&gt;...&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;or much better if i get&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;X &amp;nbsp; &amp;nbsp;Y&lt;/div&gt;&lt;div&gt;1 &amp;nbsp;1 &amp;nbsp; &amp;nbsp; 2&lt;/div&gt;&lt;div&gt;2 &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 2&lt;/div&gt;

&lt;div&gt;3 &amp;nbsp;3 &amp;nbsp; &amp;nbsp; 2&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks a lot.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 6, 2009 at 9:19 AM, David Fawcett &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236463&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;david.fawcett@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;I think that another good way to approach it is to have a task/problem&lt;br&gt;
that you want to solve using PostGIS (whether real or made up). &amp;nbsp;Learn&lt;br&gt;
what you need to about PostGIS to solve that problem and branch out&lt;br&gt;
from there.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
David.&lt;br&gt;
&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
On Fri, Nov 6, 2009 at 12:04 AM, Paragon Corporation &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236463&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lr@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; You can also look at some of these - might be helpful&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://workshops.opengeo.org/stack-intro/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://workshops.opengeo.org/stack-intro/&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; This one is a bit dated but probably still useful&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://2007.foss4g.org/workshops/W-04/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://2007.foss4g.org/workshops/W-04/&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Leo&lt;br&gt;
&amp;gt; ________________________________&lt;br&gt;
&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236463&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;&lt;br&gt;
&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236463&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;] On Behalf Of Bob and&lt;br&gt;
&amp;gt; Deb&lt;br&gt;
&amp;gt; Sent: Thursday, November 05, 2009 11:51 PM&lt;br&gt;
&amp;gt; To: PostGIS Users Discussion&lt;br&gt;
&amp;gt; Subject: Re: [postgis-users] Postgis for dummies&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; How about the book, &quot;PostGIS in Action&quot; ?&amp;nbsp;&amp;nbsp; There is even a free chapter&lt;br&gt;
&amp;gt; that might give you enough info to get started.&amp;nbsp; There is also the Wiki.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; -Bob&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; On Thu, Nov 5, 2009 at 6:34 PM, Jeff Matthews &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236463&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Need link to tutorial at the “dummy” level.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; I know a bit about kml, but that’s it.&amp;nbsp; In looking at postgis, I now see,&lt;br&gt;
&amp;gt;&amp;gt; in the instructions, things like, “To spatially-enable a jump-oriented&lt;br&gt;
&amp;gt;&amp;gt; static sql line pointer,….”&amp;nbsp;&amp;nbsp; That’s just wayyyy over me.&amp;nbsp; Where do I go as&lt;br&gt;
&amp;gt;&amp;gt; I newbie in gis to become a pro like you all?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Thanks.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt;&amp;gt; postgis-users mailing list&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236463&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; postgis-users mailing list&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236463&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
postgis-users mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236463&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
_______________________________________________&lt;br&gt;postgis-users mailing list&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236463&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;br&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236463&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Postgis-for-dummies-tp26225997p26236463.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26236141</id>
	<title>Re: Postgis for dummies</title>
	<published>2009-11-06T10:03:57Z</published>
	<updated>2009-11-06T10:03:57Z</updated>
	<author>
		<name>Nandorov</name>
	</author>
	<content type="html">I have a dummy question:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;i have a POLYGON, how can i get all the polygon&amp;#39;s coordinates with a SELECT query?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;something like: &lt;/div&gt;&lt;div&gt;select unknown_functions(polygon) from mytable&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;output:&lt;/div&gt;&lt;div&gt;1 POINT(1 2) &lt;/div&gt;&lt;div&gt;2 POINT(2 2)&lt;/div&gt;&lt;div&gt;3 POINT(3 2)&lt;/div&gt;&lt;div&gt;...&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;or much better if i get&lt;/div&gt;&lt;div&gt;    X    Y&lt;/div&gt;&lt;div&gt;1  1     2&lt;/div&gt;&lt;div&gt;2  2     2&lt;/div&gt;

&lt;div&gt;3  3     2&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks a lot.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 6, 2009 at 9:19 AM, David Fawcett &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236141&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;david.fawcett@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;I think that another good way to approach it is to have a task/problem&lt;br&gt;
that you want to solve using PostGIS (whether real or made up).  Learn&lt;br&gt;
what you need to about PostGIS to solve that problem and branch out&lt;br&gt;
from there.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
David.&lt;br&gt;
&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
On Fri, Nov 6, 2009 at 12:04 AM, Paragon Corporation &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236141&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lr@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; You can also look at some of these - might be helpful&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://workshops.opengeo.org/stack-intro/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://workshops.opengeo.org/stack-intro/&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; This one is a bit dated but probably still useful&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://2007.foss4g.org/workshops/W-04/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://2007.foss4g.org/workshops/W-04/&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Leo&lt;br&gt;
&amp;gt; ________________________________&lt;br&gt;
&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236141&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;&lt;br&gt;
&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236141&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;] On Behalf Of Bob and&lt;br&gt;
&amp;gt; Deb&lt;br&gt;
&amp;gt; Sent: Thursday, November 05, 2009 11:51 PM&lt;br&gt;
&amp;gt; To: PostGIS Users Discussion&lt;br&gt;
&amp;gt; Subject: Re: [postgis-users] Postgis for dummies&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; How about the book, &amp;quot;PostGIS in Action&amp;quot; ?   There is even a free chapter&lt;br&gt;
&amp;gt; that might give you enough info to get started.  There is also the Wiki.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; -Bob&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; On Thu, Nov 5, 2009 at 6:34 PM, Jeff Matthews &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236141&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Need link to tutorial at the “dummy” level.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; I know a bit about kml, but that’s it.  In looking at postgis, I now see,&lt;br&gt;
&amp;gt;&amp;gt; in the instructions, things like, “To spatially-enable a jump-oriented&lt;br&gt;
&amp;gt;&amp;gt; static sql line pointer,….”   That’s just wayyyy over me.  Where do I go as&lt;br&gt;
&amp;gt;&amp;gt; I newbie in gis to become a pro like you all?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Thanks.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt;&amp;gt; postgis-users mailing list&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236141&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; postgis-users mailing list&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236141&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
postgis-users mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236141&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236141&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Postgis-for-dummies-tp26225997p26236141.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26235953</id>
	<title>Using plpgsql for in select with st_dump</title>
	<published>2009-11-06T09:50:47Z</published>
	<updated>2009-11-06T09:50:47Z</updated>
	<author>
		<name>Moen, Paul T.</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;div&gt;I am trying to expand my horizons and learn some plpgsq. &amp;nbsp;I want to split out a list of points from a multipoint via plpgsql into json, not geojson. &amp;nbsp;I get the following notices.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; &quot;&gt;ERROR:&amp;nbsp; missing FROM-clause entry for table &quot;tempgeo&quot;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; &quot;&gt;LINE 1: SELECT &amp;nbsp; $1 ||'{&quot;x&quot;:'|| $2 ||',&quot;y&quot;:'||tempgeo.they||'}'&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; &quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; &quot;&gt;QUERY:&amp;nbsp; SELECT &amp;nbsp; $1 ||'{&quot;x&quot;:'|| $2 ||',&quot;y&quot;:'||tempgeo.they||'}'&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; &quot;&gt;CONTEXT:&amp;nbsp; PL/pgSQL function &quot;pointsfromgeom&quot; line 16 at assignment&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; min-height: 15px; &quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; &quot;&gt;********** Error **********&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; min-height: 15px; &quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; &quot;&gt;ERROR: missing FROM-clause entry for table &quot;tempgeo&quot;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; &quot;&gt;SQL state: 42P01&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; &quot;&gt;Context: PL/pgSQL function &quot;pointsfromgeom&quot; line 16 at assignment&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; &quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; &quot;&gt;Is there any way to do this? Does the record type have to be based on an existing table? &amp;nbsp;Is this the right list to ask? &amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;CREATE OR REPLACE FUNCTION pointsfromgeom(ingeom GEOMETRY) RETURNS TEXT AS $$&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;DECLARE&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;geotype TEXT;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;output TEXT:='';&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;BEGIN&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		SELECT INTO geotype geometrytype(ingeom);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;IF (geotype = 'MULTIPOINT') THEN&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;DECLARE&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;tmpgeo RECORD;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;count integer :=1;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;BEGIN&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;FOR tmpgeo IN SELECT DISTINCT st_x((st_dump(ingeom)).geom) as thex,st_y((st_dump(ingeom)).geom) as they&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;LOOP&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;					&lt;/span&gt;IF (count=1) THEN&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;						&lt;/span&gt;output := '[{&quot;x&quot;:'||tmpgeo.thex||',&quot;y&quot;:'||tempgeo.they||'}';&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;					&lt;/span&gt;ELSE&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;						&lt;/span&gt;output := output||',{&quot;x&quot;:'||tmpgeo.thex||',&quot;y&quot;:'||tempgeo.they||'}';&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;					&lt;/span&gt;END IF;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;END LOOP;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;				&lt;/span&gt;output:=output||']';&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;END;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;ELSE&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;RAISE NOTICE 'Geometry type is not compatable';&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;RETURN NULL;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;END IF;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;RETURN output;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;END;&lt;/div&gt;&lt;div&gt;$$ LANGUAGE 'plpgsql';&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;Thanks,&lt;/div&gt;&lt;div&gt;&lt;br class=&quot;webkit-block-placeholder&quot;&gt;&lt;/div&gt;&lt;div&gt;Paul&lt;/div&gt;
&lt;br&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235953&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Using-plpgsql-for-in-select-with-st_dump-tp26235953p26235953.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26232736</id>
	<title>Re: Postgis for dummies</title>
	<published>2009-11-06T06:19:41Z</published>
	<updated>2009-11-06T06:19:41Z</updated>
	<author>
		<name>David Fawcett</name>
	</author>
	<content type="html">I think that another good way to approach it is to have a task/problem
&lt;br&gt;that you want to solve using PostGIS (whether real or made up). &amp;nbsp;Learn
&lt;br&gt;what you need to about PostGIS to solve that problem and branch out
&lt;br&gt;from there.
&lt;br&gt;&lt;br&gt;David.
&lt;br&gt;&lt;br&gt;On Fri, Nov 6, 2009 at 12:04 AM, Paragon Corporation &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26232736&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lr@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; You can also look at some of these - might be helpful
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://workshops.opengeo.org/stack-intro/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://workshops.opengeo.org/stack-intro/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This one is a bit dated but probably still useful
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://2007.foss4g.org/workshops/W-04/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://2007.foss4g.org/workshops/W-04/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Leo
&lt;br&gt;&amp;gt; ________________________________
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26232736&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;
&lt;br&gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26232736&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;] On Behalf Of Bob and
&lt;br&gt;&amp;gt; Deb
&lt;br&gt;&amp;gt; Sent: Thursday, November 05, 2009 11:51 PM
&lt;br&gt;&amp;gt; To: PostGIS Users Discussion
&lt;br&gt;&amp;gt; Subject: Re: [postgis-users] Postgis for dummies
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How about the book, &amp;quot;PostGIS in Action&amp;quot; ?   There is even a free chapter
&lt;br&gt;&amp;gt; that might give you enough info to get started.  There is also the Wiki.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Bob
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, Nov 5, 2009 at 6:34 PM, Jeff Matthews &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26232736&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Need link to tutorial at the “dummy” level.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I know a bit about kml, but that’s it.  In looking at postgis, I now see,
&lt;br&gt;&amp;gt;&amp;gt; in the instructions, things like, “To spatially-enable a jump-oriented
&lt;br&gt;&amp;gt;&amp;gt; static sql line pointer,….”   That’s just wayyyy over me.  Where do I go as
&lt;br&gt;&amp;gt;&amp;gt; I newbie in gis to become a pro like you all?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26232736&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26232736&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26232736&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Postgis-for-dummies-tp26225997p26232736.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26227339</id>
	<title>Re: Postgis for dummies</title>
	<published>2009-11-05T22:04:05Z</published>
	<updated>2009-11-05T22:04:05Z</updated>
	<author>
		<name>Paragon Corporation-2</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=859505605-06112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;You can also look at some of these - might be 
helpful&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=859505605-06112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=859505605-06112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;A href=&quot;http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_tut01&lt;/A&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=859505605-06112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=859505605-06112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;A href=&quot;http://workshops.opengeo.org/stack-intro/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://workshops.opengeo.org/stack-intro/&lt;/A&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=859505605-06112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=859505605-06112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;This one is a bit dated but probably still 
useful&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=859505605-06112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;A href=&quot;http://2007.foss4g.org/workshops/W-04/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://2007.foss4g.org/workshops/W-04/&lt;/A&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=859505605-06112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=859505605-06112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Leo&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR&gt;
&lt;DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left&gt;
&lt;HR tabIndex=-1&gt;
&lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;From:&lt;/B&gt; 
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26227339&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt; 
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26227339&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;] &lt;B&gt;On Behalf Of &lt;/B&gt;Bob 
and Deb&lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; Thursday, November 05, 2009 11:51 PM&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; 
PostGIS Users Discussion&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; Re: [postgis-users] Postgis for 
dummies&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;How about the book, &quot;&lt;A href=&quot;http://www.manning.com/obe/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;PostGIS in 
Action&lt;/A&gt;&quot; ?&amp;nbsp;&amp;nbsp; There is even a free chapter that might give you 
enough info to get started.&amp;nbsp; There is also the &lt;A href=&quot;http://trac.osgeo.org/postgis/wiki/UsersWikiMain&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wiki&lt;/A&gt;.&lt;BR&gt;&lt;BR&gt;-Bob&lt;BR&gt;&lt;BR&gt;
&lt;DIV class=gmail_quote&gt;On Thu, Nov 5, 2009 at 6:34 PM, Jeff Matthews &lt;SPAN dir=ltr&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26227339&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info@...&lt;/a&gt;&amp;gt;&lt;/SPAN&gt; 
wrote:&lt;BR&gt;
&lt;BLOCKQUOTE style=&quot;BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex&quot; class=gmail_quote&gt;
  &lt;DIV lang=EN-US vlink=&quot;purple&quot; link=&quot;blue&quot;&gt;
  &lt;DIV&gt;
  &lt;P class=MsoNormal&gt;Need link to tutorial at the &amp;#8220;dummy&amp;#8221; level.&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&amp;nbsp;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;I know a bit about kml, but that&amp;#8217;s it.&amp;nbsp; In looking at 
  postgis, I now see, in the instructions, things like, &amp;#8220;To spatially-enable a 
  jump-oriented static sql line pointer,&amp;#8230;.&amp;#8221;&amp;nbsp;&amp;nbsp; That&amp;#8217;s just wayyyy over 
  me.&amp;nbsp; Where do I go as I newbie in gis to become a pro like you all?&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&amp;nbsp;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;Thanks.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR&gt;_______________________________________________&lt;BR&gt;postgis-users 
  mailing list&lt;BR&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26227339&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;BR&gt;&lt;A href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26227339&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Postgis-for-dummies-tp26225997p26227339.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26226935</id>
	<title>Re: Postgis for dummies</title>
	<published>2009-11-05T20:51:22Z</published>
	<updated>2009-11-05T20:51:22Z</updated>
	<author>
		<name>Bob and Deb</name>
	</author>
	<content type="html">How about the book, &amp;quot;&lt;a href=&quot;http://www.manning.com/obe/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;PostGIS in Action&lt;/a&gt;&amp;quot; ?   There is even a free chapter that might give you enough info to get started.  There is also the &lt;a href=&quot;http://trac.osgeo.org/postgis/wiki/UsersWikiMain&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Wiki&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;-Bob&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 5, 2009 at 6:34 PM, Jeff Matthews &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26226935&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;









&lt;div link=&quot;blue&quot; vlink=&quot;purple&quot; lang=&quot;EN-US&quot;&gt;

&lt;div&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;Need link to tutorial at the “dummy” level.&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt; &lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;I know a bit about kml, but that’s it.  In
looking at postgis, I now see, in the instructions, things like, “To
spatially-enable a jump-oriented static sql line pointer,….”  
That’s just wayyyy over me.  Where do I go as I newbie in gis to
become a pro like you all?&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt; &lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;Thanks.&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;


&lt;br&gt;_______________________________________________&lt;br&gt;
postgis-users mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26226935&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26226935&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Postgis-for-dummies-tp26225997p26226935.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26225997</id>
	<title>Postgis for dummies</title>
	<published>2009-11-05T18:34:41Z</published>
	<updated>2009-11-05T18:34:41Z</updated>
	<author>
		<name>Jeff Matthews-2</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;Need link to tutorial at the &amp;#8220;dummy&amp;#8221; level.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;I know a bit about kml, but that&amp;#8217;s it.&amp;nbsp; In
looking at postgis, I now see, in the instructions, things like, &amp;#8220;To
spatially-enable a jump-oriented static sql line pointer,&amp;#8230;.&amp;#8221;&amp;nbsp;&amp;nbsp;
That&amp;#8217;s just wayyyy over me.&amp;nbsp; Where do I go as I newbie in gis to
become a pro like you all?&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Thanks.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26225997&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Postgis-for-dummies-tp26225997p26225997.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26213913</id>
	<title>Re: SOLVED: Combining / agglomerating / clustering numbers of adjacent polygons</title>
	<published>2009-11-05T04:49:12Z</published>
	<updated>2009-11-05T04:49:12Z</updated>
	<author>
		<name>nicklas.aven</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;I don't know if I have misunderstood this, but to me it looks like what you are doing is:&lt;br /&gt;
	&lt;br /&gt;
	create table agglom_areas as&lt;br /&gt;
	select (st_dump(st_union(the_geom))).geom as split_geom&lt;br /&gt;
	from     grid_squares;&lt;br /&gt;
	&lt;br /&gt;
	with cascaded union (geos 3.1 or higher) this should befast as I understand it.&lt;br /&gt;
	&lt;br /&gt;
	But if I have missunderstood everything, just ignore it :-)&lt;br /&gt;
	&lt;br /&gt;
	/Nicklas&lt;br /&gt;
	&lt;br /&gt;
	 2009-11-05 Derek Jones  wrote:&lt;br /&gt;
	&lt;br /&gt;
	Dear Leo&lt;br /&gt;
	
&gt;&lt;br /&gt;
	
&gt;Hey thanks!&lt;br /&gt;
	
&gt;&lt;br /&gt;
	
&gt;Since these and other steps can run for several tens of minutes or even &lt;br /&gt;
	
&gt;hours because of the data densities, I didn't notice because I left them &lt;br /&gt;
	
&gt;each cooking and did something else instead, but I appreciate any &lt;br /&gt;
	
&gt;improvements here because I may well be running the same kind of query &lt;br /&gt;
	
&gt;elsewhere also.&lt;br /&gt;
	
&gt;&lt;br /&gt;
	
&gt;Occam's Razor and all that ;-)&lt;br /&gt;
	
&gt;&lt;br /&gt;
	
&gt;Kind regards&lt;br /&gt;
	
&gt;&lt;br /&gt;
	
&gt;Derek.&lt;br /&gt;
	
&gt;&lt;br /&gt;
	
&gt;Paragon Corporation wrote:&lt;br /&gt;
	
&gt;&gt;  &lt;br /&gt;
	
&gt;&gt; Derek,&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; FWIW -- this is a bit faster and shorter to write than your last step.  You&lt;br /&gt;
	
&gt;&gt; probably won't notice the difference until you start dealing with huge&lt;br /&gt;
	
&gt;&gt; geometry collections.&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; --REVISED LAST STEP&lt;br /&gt;
	
&gt;&gt; create table&lt;br /&gt;
	
&gt;&gt;    agglom_areas&lt;br /&gt;
	
&gt;&gt; as&lt;br /&gt;
	
&gt;&gt;    SELECT (ST_Dump(the_geom)).geom As split_geom&lt;br /&gt;
	
&gt;&gt; 	FROM temp_f;&lt;br /&gt;
	
&gt;&gt;     &lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; ---YOUR LAST STEP--&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; create table&lt;br /&gt;
	
&gt;&gt;    agglom_areas&lt;br /&gt;
	
&gt;&gt; as&lt;br /&gt;
	
&gt;&gt;    select&lt;br /&gt;
	
&gt;&gt;      st_GeometryN&lt;br /&gt;
	
&gt;&gt;      (&lt;br /&gt;
	
&gt;&gt;        the_geom,&lt;br /&gt;
	
&gt;&gt;        generate_series(1,st_NumGeometries(the_geom))&lt;br /&gt;
	
&gt;&gt;      ) as split_geom&lt;br /&gt;
	
&gt;&gt;    from&lt;br /&gt;
	
&gt;&gt;      temp_f;&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; Leo&lt;br /&gt;
	
&gt;&gt; -----Original Message-----&lt;br /&gt;
	
&gt;&gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26213913&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;&lt;br /&gt;
	
&gt;&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26213913&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;] On Behalf Of Derek&lt;br /&gt;
	
&gt;&gt; Jones&lt;br /&gt;
	
&gt;&gt; Sent: Wednesday, November 04, 2009 10:26 PM&lt;br /&gt;
	
&gt;&gt; Cc: PostGIS Users Discussion&lt;br /&gt;
	
&gt;&gt; Subject: [postgis-users] SOLVED: Combining / agglomerating / clustering&lt;br /&gt;
	
&gt;&gt; numbers of adjacent polygons&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; Dear all,&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; I solved the problem with just a handful of lines of SQL in the end... :-P&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; Kinda roundabout thinking but it worked. Here's the solution:&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; grid_squares contains my reduced grid set from the complete grid overlay&lt;br /&gt;
	
&gt;&gt; from a previous select - it's the density table. I also previously removed&lt;br /&gt;
	
&gt;&gt; singletons from it with a check for any grid entries that had 0 touching&lt;br /&gt;
	
&gt;&gt; entities.&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; # Break out the multipolygon grids into polygons&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; create table&lt;br /&gt;
	
&gt;&gt;    temp_e&lt;br /&gt;
	
&gt;&gt; as&lt;br /&gt;
	
&gt;&gt;    select&lt;br /&gt;
	
&gt;&gt;      st_GeometryN&lt;br /&gt;
	
&gt;&gt;      (&lt;br /&gt;
	
&gt;&gt;        the_geom,&lt;br /&gt;
	
&gt;&gt;        generate_series(1,st_NumGeometries(the_geom))&lt;br /&gt;
	
&gt;&gt;      ) as split_geom&lt;br /&gt;
	
&gt;&gt;    from&lt;br /&gt;
	
&gt;&gt;      grid_squares;&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; # Break out the polygons into linestrings and agglomerate into areas #&lt;br /&gt;
	
&gt;&gt; Becomes one big area as a multipolygon so ...&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; create table&lt;br /&gt;
	
&gt;&gt;    temp_f&lt;br /&gt;
	
&gt;&gt; as&lt;br /&gt;
	
&gt;&gt;    select&lt;br /&gt;
	
&gt;&gt;      st_buildarea&lt;br /&gt;
	
&gt;&gt;      (&lt;br /&gt;
	
&gt;&gt;        st_collect&lt;br /&gt;
	
&gt;&gt;        (&lt;br /&gt;
	
&gt;&gt;          st_ExteriorRing(split_geom)&lt;br /&gt;
	
&gt;&gt;        )&lt;br /&gt;
	
&gt;&gt;      ) as the_geom&lt;br /&gt;
	
&gt;&gt;    from&lt;br /&gt;
	
&gt;&gt;      temp_e;&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; # ... afterwards, break out into polygons again # each of which is the&lt;br /&gt;
	
&gt;&gt; clustered set of # polygons comprising the outer boundary agglomeration # of&lt;br /&gt;
	
&gt;&gt; the original grid areas.&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; create table&lt;br /&gt;
	
&gt;&gt;    agglom_areas&lt;br /&gt;
	
&gt;&gt; as&lt;br /&gt;
	
&gt;&gt;    select&lt;br /&gt;
	
&gt;&gt;      st_GeometryN&lt;br /&gt;
	
&gt;&gt;      (&lt;br /&gt;
	
&gt;&gt;        the_geom,&lt;br /&gt;
	
&gt;&gt;        generate_series(1,st_NumGeometries(the_geom))&lt;br /&gt;
	
&gt;&gt;      ) as split_geom&lt;br /&gt;
	
&gt;&gt;    from&lt;br /&gt;
	
&gt;&gt;      temp_f;&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; I can probably with a little work reduce the steps but I don't have a need&lt;br /&gt;
	
&gt;&gt; to at this point.&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; This does exactly what I wanted - hope it's useful perhaps to others in the&lt;br /&gt;
	
&gt;&gt; same jam. Appreciate the help given in any event.&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; Now I can use the generated areas to get me some centroids and then both&lt;br /&gt;
	
&gt;&gt; intersect and then cluster the &quot;other&quot; data set I have which is 10s of 1000s&lt;br /&gt;
	
&gt;&gt; of points and different to this one but related to it.&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; Thank you again. Always useful to bounce these kinds of things around...&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; Kind regards&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; Derek Jones&lt;br /&gt;
	
&gt;&gt; _______________________________________________&lt;br /&gt;
	
&gt;&gt; postgis-users mailing list&lt;br /&gt;
	
&gt;&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26213913&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;br /&gt;
	
&gt;&gt; http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;&gt; _______________________________________________&lt;br /&gt;
	
&gt;&gt; postgis-users mailing list&lt;br /&gt;
	
&gt;&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26213913&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;br /&gt;
	
&gt;&gt; http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;br /&gt;
	
&gt;&gt; &lt;br /&gt;
	
&gt;_______________________________________________&lt;br /&gt;
	
&gt;postgis-users mailing list&lt;br /&gt;
	
&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26213913&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&lt;br /&gt;
	
&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;br /&gt;
	
&gt;&lt;br /&gt;
	
&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26213913&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Combining---agglomerating---clustering-numbers-of-adjacent-polygons-tp26187760p26213913.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26213730</id>
	<title>Re: SOLVED: Combining / agglomerating / clustering numbers of adjacent polygons</title>
	<published>2009-11-05T04:35:24Z</published>
	<updated>2009-11-05T04:35:24Z</updated>
	<author>
		<name>scunacc</name>
	</author>
	<content type="html">Dear Leo
&lt;br&gt;&lt;br&gt;Hey thanks!
&lt;br&gt;&lt;br&gt;Since these and other steps can run for several tens of minutes or even 
&lt;br&gt;hours because of the data densities, I didn't notice because I left them 
&lt;br&gt;each cooking and did something else instead, but I appreciate any 
&lt;br&gt;improvements here because I may well be running the same kind of query 
&lt;br&gt;elsewhere also.
&lt;br&gt;&lt;br&gt;Occam's Razor and all that ;-)
&lt;br&gt;&lt;br&gt;Kind regards
&lt;br&gt;&lt;br&gt;Derek.
&lt;br&gt;&lt;br&gt;Paragon Corporation wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Derek,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; FWIW -- this is a bit faster and shorter to write than your last step. &amp;nbsp;You
&lt;br&gt;&amp;gt; probably won't notice the difference until you start dealing with huge
&lt;br&gt;&amp;gt; geometry collections.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --REVISED LAST STEP
&lt;br&gt;&amp;gt; create table
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;agglom_areas
&lt;br&gt;&amp;gt; as
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;SELECT (ST_Dump(the_geom)).geom As split_geom
&lt;br&gt;&amp;gt; 	FROM temp_f;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---YOUR LAST STEP--
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; create table
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;agglom_areas
&lt;br&gt;&amp;gt; as
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;select
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;st_GeometryN
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;the_geom,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;generate_series(1,st_NumGeometries(the_geom))
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;) as split_geom
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;from
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;temp_f;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Leo
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26213730&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;
&lt;br&gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26213730&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;] On Behalf Of Derek
&lt;br&gt;&amp;gt; Jones
&lt;br&gt;&amp;gt; Sent: Wednesday, November 04, 2009 10:26 PM
&lt;br&gt;&amp;gt; Cc: PostGIS Users Discussion
&lt;br&gt;&amp;gt; Subject: [postgis-users] SOLVED: Combining / agglomerating / clustering
&lt;br&gt;&amp;gt; numbers of adjacent polygons
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Dear all,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I solved the problem with just a handful of lines of SQL in the end... :-P
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Kinda roundabout thinking but it worked. Here's the solution:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; grid_squares contains my reduced grid set from the complete grid overlay
&lt;br&gt;&amp;gt; from a previous select - it's the density table. I also previously removed
&lt;br&gt;&amp;gt; singletons from it with a check for any grid entries that had 0 touching
&lt;br&gt;&amp;gt; entities.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; # Break out the multipolygon grids into polygons
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; create table
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;temp_e
&lt;br&gt;&amp;gt; as
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;select
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;st_GeometryN
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;the_geom,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;generate_series(1,st_NumGeometries(the_geom))
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;) as split_geom
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;from
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;grid_squares;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; # Break out the polygons into linestrings and agglomerate into areas #
&lt;br&gt;&amp;gt; Becomes one big area as a multipolygon so ...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; create table
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;temp_f
&lt;br&gt;&amp;gt; as
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;select
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;st_buildarea
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;st_collect
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;st_ExteriorRing(split_geom)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;) as the_geom
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;from
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;temp_e;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; # ... afterwards, break out into polygons again # each of which is the
&lt;br&gt;&amp;gt; clustered set of # polygons comprising the outer boundary agglomeration # of
&lt;br&gt;&amp;gt; the original grid areas.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; create table
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;agglom_areas
&lt;br&gt;&amp;gt; as
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;select
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;st_GeometryN
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;the_geom,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;generate_series(1,st_NumGeometries(the_geom))
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;) as split_geom
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;from
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;temp_f;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I can probably with a little work reduce the steps but I don't have a need
&lt;br&gt;&amp;gt; to at this point.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This does exactly what I wanted - hope it's useful perhaps to others in the
&lt;br&gt;&amp;gt; same jam. Appreciate the help given in any event.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Now I can use the generated areas to get me some centroids and then both
&lt;br&gt;&amp;gt; intersect and then cluster the &amp;quot;other&amp;quot; data set I have which is 10s of 1000s
&lt;br&gt;&amp;gt; of points and different to this one but related to it.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank you again. Always useful to bounce these kinds of things around...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Kind regards
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Derek Jones
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26213730&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26213730&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26213730&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Combining---agglomerating---clustering-numbers-of-adjacent-polygons-tp26187760p26213730.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26212494</id>
	<title>Re: query question</title>
	<published>2009-11-05T02:55:37Z</published>
	<updated>2009-11-05T02:55:37Z</updated>
	<author>
		<name>G. van Es</name>
	</author>
	<content type="html">Good call!
&lt;br&gt;With the following partial statement we get promising results.
&lt;br&gt;&lt;br&gt;round(st_area(st_intersection(r.the_geom,s.the_geom)) / st_area(r.the_geom) * 100) as Percentage
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Ge
&lt;br&gt;&lt;br&gt;--- On Thu, 11/5/09, Nicolas Ribot &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26212494&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nicky666@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; From: Nicolas Ribot &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26212494&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nicky666@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Subject: Re: [postgis-users] query question
&lt;br&gt;&amp;gt; To: &amp;quot;PostGIS Users Discussion&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26212494&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Date: Thursday, November 5, 2009, 12:45 AM
&lt;br&gt;&amp;gt; 2009/11/5 G. van Es &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26212494&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gves2000@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; &amp;gt; Thanks Maxime,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; That worked!
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; However now I see another problem.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Some polygons are touching in a way they shouldn't.
&lt;br&gt;&amp;gt; This is a problem of our drawing department but since there
&lt;br&gt;&amp;gt; are a few thousand of those objects it would be nice to
&lt;br&gt;&amp;gt; query with a certain tolerance. Say, the object should
&lt;br&gt;&amp;gt; overlap for at least 80%.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You could compute the actual intersection (st_intersection)
&lt;br&gt;&amp;gt; area and
&lt;br&gt;&amp;gt; compare its area to the initial polygons area
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Nicolas
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Well, that is too much rocket science for me at the
&lt;br&gt;&amp;gt; moment.
&lt;br&gt;&amp;gt; &amp;gt; If someone has any clue if this is possible please
&lt;br&gt;&amp;gt; drop me a line.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; Ge
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --- On Wed, 11/4/09, Maxime van Noppen &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26212494&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maxime@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; From: Maxime van Noppen &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26212494&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maxime@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Subject: Re: [postgis-users] query question
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; To: &amp;quot;PostGIS Users Discussion&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26212494&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Date: Wednesday, November 4, 2009, 3:56 AM
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; G. van Es wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; I want to have a list of wich geometry of a
&lt;br&gt;&amp;gt; certain
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; type is touching or crossing another type.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Can someone point me in the right direction?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; If I understand your problem you want to find for
&lt;br&gt;&amp;gt; each
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; geometry in your
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; table which geometries intersect with it ?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; This can be done with the ST_Intersects function
&lt;br&gt;&amp;gt; and an
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; self-join.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Something like :
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; SELECT t1.type, t2.type FROM T t1, T t2 WHERE
&lt;br&gt;&amp;gt; t1.type !=
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; t2.type AND
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ST_Intersects(t1.the_geom, t2.the_geom);
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; This will generate an output like :
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; t1.type | t2.type
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; -----------------
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 13      | 12
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 13      | 1
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 13      | 4
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 12      | 3
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 12      | 8
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Maxime
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26212494&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26212494&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26212494&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26212494&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/query-question-tp26194835p26212494.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26211002</id>
	<title>Re: query question</title>
	<published>2009-11-05T00:45:29Z</published>
	<updated>2009-11-05T00:45:29Z</updated>
	<author>
		<name>Nicolas Ribot</name>
	</author>
	<content type="html">2009/11/5 G. van Es &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26211002&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gves2000@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; Thanks Maxime,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That worked!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; However now I see another problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Some polygons are touching in a way they shouldn't. This is a problem of our drawing department but since there are a few thousand of those objects it would be nice to query with a certain tolerance. Say, the object should overlap for at least 80%.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Hello,
&lt;br&gt;&lt;br&gt;You could compute the actual intersection (st_intersection) area and
&lt;br&gt;compare its area to the initial polygons area
&lt;br&gt;&lt;br&gt;Nicolas
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Well, that is too much rocket science for me at the moment.
&lt;br&gt;&amp;gt; If someone has any clue if this is possible please drop me a line.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Ge
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --- On Wed, 11/4/09, Maxime van Noppen &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26211002&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maxime@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; From: Maxime van Noppen &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26211002&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maxime@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Subject: Re: [postgis-users] query question
&lt;br&gt;&amp;gt;&amp;gt; To: &amp;quot;PostGIS Users Discussion&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26211002&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Date: Wednesday, November 4, 2009, 3:56 AM
&lt;br&gt;&amp;gt;&amp;gt; G. van Es wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; I want to have a list of wich geometry of a certain
&lt;br&gt;&amp;gt;&amp;gt; type is touching or crossing another type.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Can someone point me in the right direction?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If I understand your problem you want to find for each
&lt;br&gt;&amp;gt;&amp;gt; geometry in your
&lt;br&gt;&amp;gt;&amp;gt; table which geometries intersect with it ?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This can be done with the ST_Intersects function and an
&lt;br&gt;&amp;gt;&amp;gt; self-join.
&lt;br&gt;&amp;gt;&amp;gt; Something like :
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; SELECT t1.type, t2.type FROM T t1, T t2 WHERE t1.type !=
&lt;br&gt;&amp;gt;&amp;gt; t2.type AND
&lt;br&gt;&amp;gt;&amp;gt; ST_Intersects(t1.the_geom, t2.the_geom);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This will generate an output like :
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; t1.type | t2.type
&lt;br&gt;&amp;gt;&amp;gt; -----------------
&lt;br&gt;&amp;gt;&amp;gt; 13      | 12
&lt;br&gt;&amp;gt;&amp;gt; 13      | 1
&lt;br&gt;&amp;gt;&amp;gt; 13      | 4
&lt;br&gt;&amp;gt;&amp;gt; 12      | 3
&lt;br&gt;&amp;gt;&amp;gt; 12      | 8
&lt;br&gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; Maxime
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26211002&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26211002&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26211002&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/query-question-tp26194835p26211002.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26210850</id>
	<title>Re: SOLVED: Combining / agglomerating / clustering numbers of adjacent polygons</title>
	<published>2009-11-05T00:31:13Z</published>
	<updated>2009-11-05T00:31:13Z</updated>
	<author>
		<name>Paragon Corporation-2</name>
	</author>
	<content type="html">&amp;nbsp;
&lt;br&gt;Derek,
&lt;br&gt;&lt;br&gt;FWIW -- this is a bit faster and shorter to write than your last step. &amp;nbsp;You
&lt;br&gt;probably won't notice the difference until you start dealing with huge
&lt;br&gt;geometry collections.
&lt;br&gt;&lt;br&gt;--REVISED LAST STEP
&lt;br&gt;create table
&lt;br&gt;&amp;nbsp; &amp;nbsp;agglom_areas
&lt;br&gt;as
&lt;br&gt;&amp;nbsp; &amp;nbsp;SELECT (ST_Dump(the_geom)).geom As split_geom
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FROM temp_f;
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;---YOUR LAST STEP--
&lt;br&gt;&lt;br&gt;create table
&lt;br&gt;&amp;nbsp; &amp;nbsp;agglom_areas
&lt;br&gt;as
&lt;br&gt;&amp;nbsp; &amp;nbsp;select
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;st_GeometryN
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;the_geom,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;generate_series(1,st_NumGeometries(the_geom))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;) as split_geom
&lt;br&gt;&amp;nbsp; &amp;nbsp;from
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;temp_f;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Leo
&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26210850&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;
&lt;br&gt;[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26210850&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;] On Behalf Of Derek
&lt;br&gt;Jones
&lt;br&gt;Sent: Wednesday, November 04, 2009 10:26 PM
&lt;br&gt;Cc: PostGIS Users Discussion
&lt;br&gt;Subject: [postgis-users] SOLVED: Combining / agglomerating / clustering
&lt;br&gt;numbers of adjacent polygons
&lt;br&gt;&lt;br&gt;Dear all,
&lt;br&gt;&lt;br&gt;I solved the problem with just a handful of lines of SQL in the end... :-P
&lt;br&gt;&lt;br&gt;Kinda roundabout thinking but it worked. Here's the solution:
&lt;br&gt;&lt;br&gt;grid_squares contains my reduced grid set from the complete grid overlay
&lt;br&gt;from a previous select - it's the density table. I also previously removed
&lt;br&gt;singletons from it with a check for any grid entries that had 0 touching
&lt;br&gt;entities.
&lt;br&gt;&lt;br&gt;# Break out the multipolygon grids into polygons
&lt;br&gt;&lt;br&gt;create table
&lt;br&gt;&amp;nbsp; &amp;nbsp;temp_e
&lt;br&gt;as
&lt;br&gt;&amp;nbsp; &amp;nbsp;select
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;st_GeometryN
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;the_geom,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;generate_series(1,st_NumGeometries(the_geom))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;) as split_geom
&lt;br&gt;&amp;nbsp; &amp;nbsp;from
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;grid_squares;
&lt;br&gt;&lt;br&gt;# Break out the polygons into linestrings and agglomerate into areas #
&lt;br&gt;Becomes one big area as a multipolygon so ...
&lt;br&gt;&lt;br&gt;create table
&lt;br&gt;&amp;nbsp; &amp;nbsp;temp_f
&lt;br&gt;as
&lt;br&gt;&amp;nbsp; &amp;nbsp;select
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;st_buildarea
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;st_collect
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;st_ExteriorRing(split_geom)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;) as the_geom
&lt;br&gt;&amp;nbsp; &amp;nbsp;from
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;temp_e;
&lt;br&gt;&lt;br&gt;# ... afterwards, break out into polygons again # each of which is the
&lt;br&gt;clustered set of # polygons comprising the outer boundary agglomeration # of
&lt;br&gt;the original grid areas.
&lt;br&gt;&lt;br&gt;create table
&lt;br&gt;&amp;nbsp; &amp;nbsp;agglom_areas
&lt;br&gt;as
&lt;br&gt;&amp;nbsp; &amp;nbsp;select
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;st_GeometryN
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;the_geom,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;generate_series(1,st_NumGeometries(the_geom))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;) as split_geom
&lt;br&gt;&amp;nbsp; &amp;nbsp;from
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;temp_f;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I can probably with a little work reduce the steps but I don't have a need
&lt;br&gt;to at this point.
&lt;br&gt;&lt;br&gt;This does exactly what I wanted - hope it's useful perhaps to others in the
&lt;br&gt;same jam. Appreciate the help given in any event.
&lt;br&gt;&lt;br&gt;Now I can use the generated areas to get me some centroids and then both
&lt;br&gt;intersect and then cluster the &amp;quot;other&amp;quot; data set I have which is 10s of 1000s
&lt;br&gt;of points and different to this one but related to it.
&lt;br&gt;&lt;br&gt;Thank you again. Always useful to bounce these kinds of things around...
&lt;br&gt;&lt;br&gt;Kind regards
&lt;br&gt;&lt;br&gt;Derek Jones
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26210850&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26210850&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Combining---agglomerating---clustering-numbers-of-adjacent-polygons-tp26187760p26210850.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26210128</id>
	<title>Re: query question</title>
	<published>2009-11-04T23:08:54Z</published>
	<updated>2009-11-04T23:08:54Z</updated>
	<author>
		<name>G. van Es</name>
	</author>
	<content type="html">Thanks Maxime,
&lt;br&gt;&lt;br&gt;That worked! &amp;nbsp;
&lt;br&gt;&lt;br&gt;However now I see another problem. 
&lt;br&gt;&lt;br&gt;Some polygons are touching in a way they shouldn't. This is a problem of our drawing department but since there are a few thousand of those objects it would be nice to query with a certain tolerance. Say, the object should overlap for at least 80%. 
&lt;br&gt;&lt;br&gt;Well, that is too much rocket science for me at the moment.
&lt;br&gt;If someone has any clue if this is possible please drop me a line.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Ge
&lt;br&gt;&lt;br&gt;--- On Wed, 11/4/09, Maxime van Noppen &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26210128&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maxime@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; From: Maxime van Noppen &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26210128&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maxime@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Subject: Re: [postgis-users] query question
&lt;br&gt;&amp;gt; To: &amp;quot;PostGIS Users Discussion&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26210128&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Date: Wednesday, November 4, 2009, 3:56 AM
&lt;br&gt;&amp;gt; G. van Es wrote:
&lt;br&gt;&amp;gt; &amp;gt; I want to have a list of wich geometry of a certain
&lt;br&gt;&amp;gt; type is touching or crossing another type.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Can someone point me in the right direction?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If I understand your problem you want to find for each
&lt;br&gt;&amp;gt; geometry in your
&lt;br&gt;&amp;gt; table which geometries intersect with it ?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This can be done with the ST_Intersects function and an
&lt;br&gt;&amp;gt; self-join.
&lt;br&gt;&amp;gt; Something like :
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; SELECT t1.type, t2.type FROM T t1, T t2 WHERE t1.type !=
&lt;br&gt;&amp;gt; t2.type AND
&lt;br&gt;&amp;gt; ST_Intersects(t1.the_geom, t2.the_geom);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This will generate an output like :
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; t1.type | t2.type
&lt;br&gt;&amp;gt; -----------------
&lt;br&gt;&amp;gt; 13      | 12
&lt;br&gt;&amp;gt; 13      | 1
&lt;br&gt;&amp;gt; 13      | 4
&lt;br&gt;&amp;gt; 12      | 3
&lt;br&gt;&amp;gt; 12      | 8
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Maxime
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26210128&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26210128&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/query-question-tp26194835p26210128.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26208726</id>
	<title>SOLVED: Combining / agglomerating / clustering numbers of adjacent polygons</title>
	<published>2009-11-04T19:25:40Z</published>
	<updated>2009-11-04T19:25:40Z</updated>
	<author>
		<name>scunacc</name>
	</author>
	<content type="html">Dear all,
&lt;br&gt;&lt;br&gt;I solved the problem with just a handful of lines of SQL in the end... :-P
&lt;br&gt;&lt;br&gt;Kinda roundabout thinking but it worked. Here's the solution:
&lt;br&gt;&lt;br&gt;grid_squares contains my reduced grid set from the complete grid overlay 
&lt;br&gt;from a previous select - it's the density table. I also previously 
&lt;br&gt;removed singletons from it with a check for any grid entries that had 0 
&lt;br&gt;touching entities.
&lt;br&gt;&lt;br&gt;# Break out the multipolygon grids into polygons
&lt;br&gt;&lt;br&gt;create table
&lt;br&gt;&amp;nbsp; &amp;nbsp;temp_e
&lt;br&gt;as
&lt;br&gt;&amp;nbsp; &amp;nbsp;select
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;st_GeometryN
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;the_geom,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;generate_series(1,st_NumGeometries(the_geom))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;) as split_geom
&lt;br&gt;&amp;nbsp; &amp;nbsp;from
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;grid_squares;
&lt;br&gt;&lt;br&gt;# Break out the polygons into linestrings and agglomerate into areas
&lt;br&gt;# Becomes one big area as a multipolygon so ...
&lt;br&gt;&lt;br&gt;create table
&lt;br&gt;&amp;nbsp; &amp;nbsp;temp_f
&lt;br&gt;as
&lt;br&gt;&amp;nbsp; &amp;nbsp;select
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;st_buildarea
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;st_collect
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;st_ExteriorRing(split_geom)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;) as the_geom
&lt;br&gt;&amp;nbsp; &amp;nbsp;from
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;temp_e;
&lt;br&gt;&lt;br&gt;# ... afterwards, break out into polygons again
&lt;br&gt;# each of which is the clustered set of
&lt;br&gt;# polygons comprising the outer boundary agglomeration
&lt;br&gt;# of the original grid areas.
&lt;br&gt;&lt;br&gt;create table
&lt;br&gt;&amp;nbsp; &amp;nbsp;agglom_areas
&lt;br&gt;as
&lt;br&gt;&amp;nbsp; &amp;nbsp;select
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;st_GeometryN
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;the_geom,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;generate_series(1,st_NumGeometries(the_geom))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;) as split_geom
&lt;br&gt;&amp;nbsp; &amp;nbsp;from
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;temp_f;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I can probably with a little work reduce the steps but I don't have a 
&lt;br&gt;need to at this point.
&lt;br&gt;&lt;br&gt;This does exactly what I wanted - hope it's useful perhaps to others in 
&lt;br&gt;the same jam. Appreciate the help given in any event.
&lt;br&gt;&lt;br&gt;Now I can use the generated areas to get me some centroids and then both 
&lt;br&gt;intersect and then cluster the &amp;quot;other&amp;quot; data set I have which is 10s of 
&lt;br&gt;1000s of points and different to this one but related to it.
&lt;br&gt;&lt;br&gt;Thank you again. Always useful to bounce these kinds of things around...
&lt;br&gt;&lt;br&gt;Kind regards
&lt;br&gt;&lt;br&gt;Derek Jones
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26208726&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Combining---agglomerating---clustering-numbers-of-adjacent-polygons-tp26187760p26208726.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26204461</id>
	<title>Re: [PostGIS] #175: 'SRID=26915; POINT(482020.9789850 4984378.)' fails to parse</title>
	<published>2009-11-04T12:54:26Z</published>
	<updated>2009-11-04T12:54:26Z</updated>
	<author>
		<name>Reid Priedhorsky-2</name>
	</author>
	<content type="html">Just wanted to express my appreciation for the fix. Thanks folks!
&lt;br&gt;&lt;br&gt;Reid
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 11/04/2009 02:37 PM, PostGIS wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; #175: 'SRID=26915;POINT(482020.9789850 4984378.)' fails to parse
&lt;br&gt;&amp;gt; ---------------------------+------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; Reporter: &amp;nbsp;rpriedhorsky &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; Owner: &amp;nbsp;pramsey &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Type: &amp;nbsp;defect &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp;Status: &amp;nbsp;closed &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;nbsp; Priority: &amp;nbsp;low &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; Milestone: &amp;nbsp;postgis 1.4.1
&lt;br&gt;&amp;gt; &amp;nbsp;Component: &amp;nbsp;postgis &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; Version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; Resolution: &amp;nbsp;fixed &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp;Keywords: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; ---------------------------+------------------------------------------------
&lt;br&gt;&amp;gt; Changes (by pramsey):
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; * status: &amp;nbsp;new =&amp;gt; closed
&lt;br&gt;&amp;gt; &amp;nbsp; * resolution: &amp;nbsp;=&amp;gt; fixed
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26204461&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--PostGIS---175%3A-%27SRID%3D26915--POINT%28482020.9789850-4984378.%29%27-fails-to-parse-tp26204461p26204461.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26202944</id>
	<title>Re: ST_TRANSFORM function problem</title>
	<published>2009-11-04T11:20:43Z</published>
	<updated>2009-11-04T11:20:43Z</updated>
	<author>
		<name>Nicolas Ribot-2</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; Hi Folks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm having a problems with the transform process at present some records in
&lt;br&gt;&amp;gt; my database.
&lt;br&gt;&amp;gt; I try to transform my geometry in a 4326(EPSG:4326) projection to
&lt;br&gt;&amp;gt; 900913(google mercator) projection uses a ST_TRANSFORM postgis function.
&lt;br&gt;&amp;gt; In some geometries in same table(relation) it's work but in others postgis
&lt;br&gt;&amp;gt; show me this erro.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ********** Error **********
&lt;br&gt;&amp;gt; ERROR: transform: couldn't project point: -14 (latitude or longitude
&lt;br&gt;&amp;gt; exceeded limits)
&lt;br&gt;&amp;gt; SQL state: XX000
&lt;br&gt;&amp;gt; Context: SQL statement &amp;quot;SELECT  ST_TRANSFORM( $1 ,900913)&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What could be wrong since the geometry is valid and postgis
&lt;br&gt;&amp;gt; metadata(spatial_ref_sys and geometry_columns) is correct?
&lt;br&gt;&amp;gt; Environment description
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; PostgreSQL 8.3.5 on x86_64-centOS-linux-gnu, compiled by GCC gcc (GCC) 4.1.2
&lt;br&gt;&amp;gt; 20071124 (Red Hat 4.1.2-42)
&lt;br&gt;&amp;gt; PostGIS 1.3.3 USE_GEOS=1 USE_PROJ=1 USE_STATS=1
&lt;br&gt;&amp;gt; PROJ Rel. 4.6.1, 21 August 2008
&lt;br&gt;&amp;gt; GEOS 3.0.3-CAPI-1.4.2
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Would it be possible that your initial data (or some of them) are
&lt;br&gt;stored as lat-lon, instead of lon-lat as it is expected by Postgis?
&lt;br&gt;Could you isolate the points in error and send them to the list ?
&lt;br&gt;&lt;br&gt;Nicolas
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26202944&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ST_TRANSFORM-function-problem-tp26202465p26202944.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26202465</id>
	<title>ST_TRANSFORM function problem</title>
	<published>2009-11-04T10:54:38Z</published>
	<updated>2009-11-04T10:54:38Z</updated>
	<author>
		<name>Rafael Almeida Fernandez Soto-2</name>
	</author>
	<content type="html">Hi Folks,&lt;br&gt;&lt;br&gt;I&amp;#39;m having a problems with the transform process at present some records in my database.&lt;br&gt;I try to transform my geometry in a 4326(EPSG:4326) projection to 900913(google mercator) projection uses a ST_TRANSFORM postgis function.&lt;br&gt;

In some geometries in same table(relation) it&amp;#39;s work but in others postgis show me this erro.&lt;br&gt;&lt;br&gt;********** Error **********&lt;br&gt;ERROR: transform: couldn&amp;#39;t project point: -14 (latitude or longitude exceeded limits)&lt;br&gt;

SQL state: XX000&lt;br&gt;Context: SQL statement &amp;quot;SELECT  ST_TRANSFORM( $1 ,900913)&amp;quot;&lt;br&gt;&lt;br&gt;&lt;div id=&quot;result_box&quot; dir=&quot;ltr&quot;&gt;What could be wrong since the geometry is valid and postgis metadata(spatial_ref_sys and geometry_columns) is correct?&lt;/div&gt;

&lt;br&gt;Environment description&lt;br&gt;&lt;br&gt;PostgreSQL 8.3.5 on x86_64-centOS-linux-gnu, compiled by GCC gcc (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42)&lt;br&gt;PostGIS 1.3.3 USE_GEOS=1 USE_PROJ=1 USE_STATS=1&lt;br&gt;PROJ Rel. 4.6.1, 21 August 2008&lt;br clear=&quot;all&quot;&gt;

GEOS 3.0.3-CAPI-1.4.2&lt;br&gt;&lt;br&gt;Hopes for help!&lt;br&gt;&lt;br&gt;Rafael Soto&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26202465&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ST_TRANSFORM-function-problem-tp26202465p26202465.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26197004</id>
	<title>Re: Combining / agglomerating / clustering numbers of adjacent polygons</title>
	<published>2009-11-04T06:14:29Z</published>
	<updated>2009-11-04T06:14:29Z</updated>
	<author>
		<name>scunacc</name>
	</author>
	<content type="html">Dear Matias
&lt;br&gt;&lt;br&gt;Thanks for the thought. Any help is always appreciated.
&lt;br&gt;&lt;br&gt;&lt;br&gt;I actually am using this agglomeration (when I eventually derive it &amp;nbsp;;-) 
&lt;br&gt;) to seed kmedoids or kmean centroids for statistical clustering, (doing 
&lt;br&gt;it in R via a variety of methods to see what works best). I already have 
&lt;br&gt;a much larger set of points that need to be clustered around the set of 
&lt;br&gt;centroids I generate from this grid agglomeration process.
&lt;br&gt;&lt;br&gt;However doing this gridding and agglomeration process first gives me a 
&lt;br&gt;twofold advantage, in that it not only gives me the centroid for the 
&lt;br&gt;clustering of the &amp;quot;other&amp;quot; data set, but also allows me to identify the 
&lt;br&gt;actual spatial areas in which some of my (statistical) cluster points 
&lt;br&gt;(in the other data set) should fall to start with, so I will do at least 
&lt;br&gt;one level of spatial intersection, then one level of statistical 
&lt;br&gt;clustering on top.
&lt;br&gt;&lt;br&gt;&lt;br&gt;I am at this point favoring doing the grid agglomeration 
&lt;br&gt;programmatically - perhaps I can get that done today. (Unless anyone 
&lt;br&gt;comes up with an SQL solution before I finish coding it up ;-))
&lt;br&gt;&lt;br&gt;I'll let you folks know if I make the programmatic approach work but I'm 
&lt;br&gt;still open to other input in the meantime.
&lt;br&gt;&lt;br&gt;Thanks to all for suggestions thus far.
&lt;br&gt;&lt;br&gt;Kind regards
&lt;br&gt;&lt;br&gt;Derek.
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26197004&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Combining---agglomerating---clustering-numbers-of-adjacent-polygons-tp26187760p26197004.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26196822</id>
	<title>Re: Combining / agglomerating / clustering numbers ofadjacent polygons</title>
	<published>2009-11-04T06:03:35Z</published>
	<updated>2009-11-04T06:03:35Z</updated>
	<author>
		<name>Matias Massigoge-2</name>
	</author>
	<content type="html">Derek,
&lt;br&gt;&lt;br&gt;I work with a &amp;quot;use case&amp;quot; similar for Site Specific Farming.
&lt;br&gt;Right now I'm using statistical clustering without spatial relations.
&lt;br&gt;After the clustering i use spatial relationship just to adjust the
&lt;br&gt;result.
&lt;br&gt;I'm interested in using spatial factor in the clustering, I'm not
&lt;br&gt;experts in statistics but perhaps I can help you.
&lt;br&gt;&lt;br&gt;Good Luck.
&lt;br&gt;&lt;br&gt;Matías
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Wed, Nov 4, 2009 at 5:02 AM, Paragon Corporation &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196822&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lr@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Derek,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Which version of PostgreSQL are you using?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Interestingly we are demonstrating some of these kinds of exercises in our
&lt;br&gt;&amp;gt; upcoming book &amp;quot;PostGIS in Action&amp;quot; book well actually we are in the middle of
&lt;br&gt;&amp;gt; writing those chapters now -- and cleaning up some of our examples - so they
&lt;br&gt;&amp;gt; aren't quite ready to disseminate without a lot of explanation.  But all
&lt;br&gt;&amp;gt; these tricks require the new PostgreSQL 8.4 window function and/or recursive
&lt;br&gt;&amp;gt; query (common table expression) functionality.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sound like the recursive query might be closer to what you want  (where you
&lt;br&gt;&amp;gt; keep on accumulating based on some condition and then start a new bucket).
&lt;br&gt;&amp;gt; There are also several techniques for creating on the fly grids in PostGIS
&lt;br&gt;&amp;gt; which would help out here.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hope that helps,
&lt;br&gt;&amp;gt; Regina
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196822&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;
&lt;br&gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196822&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users-bounces@...&lt;/a&gt;] On Behalf Of Derek
&lt;br&gt;&amp;gt; Jones
&lt;br&gt;&amp;gt; Sent: Tuesday, November 03, 2009 5:27 PM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196822&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [postgis-users] Combining / agglomerating / clustering numbers
&lt;br&gt;&amp;gt; ofadjacent polygons
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Dear list,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have been using postgres/postgis for some years, and written a fair amount
&lt;br&gt;&amp;gt; of spatial SQL and pgsql and R and Perl based queries.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; However, I've hit a brick wall in my thinking (November time change ;-)
&lt;br&gt;&amp;gt; perhaps? ) and wondered if someone could suggest a method to help out.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a spatial data set that varies in density across a region.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have constructed a grid (did it in qgis) and overlayed on the region, and
&lt;br&gt;&amp;gt; then derived the density of items per grid area.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Where the density is &amp;gt;= 3 per area, I retain the grid square in a new table.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Then I want to combine the grid squars to form a larger region and (then
&lt;br&gt;&amp;gt; incidentally to this question) find the centroid of that region where the
&lt;br&gt;&amp;gt; grid areas touch. Singletons are rejected, and, if, say, I had 10000
&lt;br&gt;&amp;gt; original grid squares, I might end up with 1000 clusterings of squares
&lt;br&gt;&amp;gt; unioned together of arbitrary eventual shapes.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Touching here - adjacency - could mean colinear or diagonal with 2 minimum.
&lt;br&gt;&amp;gt; The maximum # of adjacent grid squares could run to 1000s per unioned area.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But, I'm having a hard time to think through how to write the query.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There are no columns in common across the grid squares, otherwise it'd be an
&lt;br&gt;&amp;gt; easy st_union where col_xyz = 'PQR' kind of select, but all I have is the
&lt;br&gt;&amp;gt; spatial adjacency.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've looked through the archives for the past couple of days, and perhaps
&lt;br&gt;&amp;gt; I'm just using the wrong search criteria but I haven't seen anything that
&lt;br&gt;&amp;gt; helps.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I can see how to do this programmatically by agglomerating clusters and
&lt;br&gt;&amp;gt; deleting from the remaining set as I go (and if I did that I would probably
&lt;br&gt;&amp;gt; export the data and do it externally because it's quite a large data set),
&lt;br&gt;&amp;gt; but I was really wanting to write a query for it and let it chug.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any thoughts?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Kind regards
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Derek Jones.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196822&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196822&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Lic. Matías Massigoge
&lt;br&gt;Cel: 54-11-62047686
&lt;br&gt;www.agerpro.com.ar
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196822&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Combining---agglomerating---clustering-numbers-of-adjacent-polygons-tp26187760p26196822.html" />
</entry>

</feed>
