<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-1221</id>
	<title>Nabble - PostGIS</title>
	<updated>2009-11-23T03:55:11Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/PostGIS-f1221.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PostGIS-f1221.html" />
	<subtitle type="html">PostGIS adds support for geographic objects to the PostgreSQL object-relational database. PostGIS home is &lt;a href=&quot;http://postgis.refractions.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26476752</id>
	<title>Re: The Road to 1.5</title>
	<published>2009-11-23T03:55:11Z</published>
	<updated>2009-11-23T03:55:11Z</updated>
	<author>
		<name>Mark Cave-Ayland-3</name>
	</author>
	<content type="html">Paul Ramsey wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; #204, #110, #251 are on Mark's plate to finish for this milestone
&lt;br&gt;&lt;br&gt;Yes, I've already made a start on this and am busy in the middle of 
&lt;br&gt;ripping the guts out of shp2pgsql and friends to make this happen...
&lt;br&gt;&lt;br&gt;&lt;br&gt;ATB,
&lt;br&gt;&lt;br&gt;Mark.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Mark Cave-Ayland - Senior Technical Architect
&lt;br&gt;PostgreSQL - PostGIS
&lt;br&gt;Sirius Corporation plc - control through freedom
&lt;br&gt;&lt;a href=&quot;http://www.siriusit.co.uk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.siriusit.co.uk&lt;/a&gt;&lt;br&gt;t: +44 870 608 0063
&lt;br&gt;&lt;br&gt;Sirius Labs: &lt;a href=&quot;http://www.siriusit.co.uk/labs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.siriusit.co.uk/labs&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26476752&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/The-Road-to-1.5-tp26448830p26476752.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26475014</id>
	<title>Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW</title>
	<published>2009-11-23T01:40:41Z</published>
	<updated>2009-11-23T01:40:41Z</updated>
	<author>
		<name>Nicklas Avén</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;&lt;/title&gt;
	
&lt;meta name=&quot;GENERATOR&quot; content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/meta&gt;
&lt;/head&gt;

&lt;body&gt;
	
&lt;div align=&quot;left&quot;&gt;I compiled the LIBXML2&amp;nbsp;&amp;nbsp;library with a lot of warnings, do you have them too Regina or should I post them, Oliver.&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;When I should test it I couldn't find any sql.definition of the function ST_GeomFromGML. As I see in postgis.sql.in.c that is because LIBXML2 isn't found. So I guess the compilation didn't sucess. I will see if I get time to try later today.&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;/Nicklas&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&lt;br /&gt;
		2009-11-23 PostGIS wrote:&lt;br /&gt;
		&lt;br /&gt;
		#273: ST_GeomFromGML crashes in Windows compiled in MingW&lt;br /&gt;
		&gt;----------------------+-----------------------------------------------------&lt;br /&gt;
		&gt; Reporter: robe | Owner: colivier &lt;br /&gt;
		&gt; Type: defect | Status: new &lt;br /&gt;
		&gt; Priority: medium | Milestone: PostGIS 1.5.0&lt;br /&gt;
		&gt; Component: postgis | Version: trunk &lt;br /&gt;
		&gt;Resolution: | Keywords: &lt;br /&gt;
		&gt;----------------------+-----------------------------------------------------&lt;br /&gt;
		&gt;Comment (by robe):&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt; Strange. Maybe its something else I install getting in the way or I'm not&lt;br /&gt;
		&gt; compiling libxml right. I have another box I can try on later. Nicklas&lt;br /&gt;
		&gt; -- you have a mingw install -- if its not asking too much -- can you try&lt;br /&gt;
		&gt; compiling and doing the simple&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt; {{{&lt;br /&gt;
		&gt; SELECT&lt;br /&gt;
		&gt; ST_GeomFromGML('
		&lt;gml:point&gt;
			&lt;gml:coordinates&gt;1,2&lt;/gml:coordinates&gt;&lt;/gml:point&gt;')&lt;br /&gt;
		&gt; }}}&lt;br /&gt;
		&gt; to see if it works.&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt; Olivier - what is your mingw gcc and mingw/msys versions? On my gcc 3.5&lt;br /&gt;
		&gt; box, I was able to compile and install without errors (except libxml make&lt;br /&gt;
		&gt; checks fail), but got crashes when doing the above test. On my upgraded&lt;br /&gt;
		&gt; mingw running gcc 4.4, I can't compile libxml at all.&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;-- &lt;br /&gt;
		&gt;Ticket URL: 
		&lt;http: 273#comment:13 ticket postgis trac.osgeo.org&gt;&lt;/http:&gt;&lt;br /&gt;
		&gt;PostGIS 
		&lt;http: postgis trac.osgeo.org&gt;&lt;/http:&gt;&lt;br /&gt;
		&gt;The PostGIS Trac is used for bug, enhancement &amp;amp; task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.&lt;br /&gt;
		&gt;_______________________________________________&lt;br /&gt;
		&gt;postgis-devel mailing list&lt;br /&gt;
		&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475014&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475014&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PostGIS---273%3A-ST_GeomFromGML-crashes-in-Windows-compiled-in-MingW-tp26015500p26475014.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26473569</id>
	<title>Re: [PostGIS] #240: ST_SimplifyPreserveTopology documentation unclear on intersections within a MultiPolygon</title>
	<published>2009-11-22T23:11:34Z</published>
	<updated>2009-11-22T23:11:34Z</updated>
	<author>
		<name>PostGIS-4</name>
	</author>
	<content type="html">#240: ST_SimplifyPreserveTopology documentation unclear on intersections within a
&lt;br&gt;MultiPolygon
&lt;br&gt;----------------------+-----------------------------------------------------
&lt;br&gt;&amp;nbsp; Reporter: &amp;nbsp;perchrh &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; Owner: &amp;nbsp;robe &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Type: &amp;nbsp;defect &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;Status: &amp;nbsp;new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; Priority: &amp;nbsp;medium &amp;nbsp; | &amp;nbsp; Milestone: &amp;nbsp;PostGIS 1.5.0
&lt;br&gt;&amp;nbsp;Component: &amp;nbsp;postgis &amp;nbsp;| &amp;nbsp; &amp;nbsp; Version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;Resolution: &amp;nbsp; &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;----------------------+-----------------------------------------------------
&lt;br&gt;Comment (by perchrh):
&lt;br&gt;&lt;br&gt;&amp;nbsp;In the ESRI shapefile standard, a Record with shapetype Polygon is a
&lt;br&gt;&amp;nbsp;collection of zero or more Rings (in other terms: a MultiPolygon
&lt;br&gt;&amp;nbsp;containing multiple Polygons). The rings may intersect each other and
&lt;br&gt;&amp;nbsp;cannot self-intersect.
&lt;br&gt;&lt;br&gt;&amp;nbsp;It is clear that ST_SimplifyPreserveTopology doesn't introduce self-
&lt;br&gt;&amp;nbsp;intersections and doesn't introduce intersections between Polygons if
&lt;br&gt;&amp;nbsp;there were none in the input.
&lt;br&gt;&lt;br&gt;&amp;nbsp;My question, that I didn't manage to get answered by a quick look at the
&lt;br&gt;&amp;nbsp;code is, is the processing of these valid MultiPolygons with intersecting
&lt;br&gt;&amp;nbsp;Polygons guaranteed to result in a MultiPolygon with no new intersections?
&lt;br&gt;&amp;nbsp;Or does it just guarantee that the intersection count will not be higher
&lt;br&gt;&amp;nbsp;than in the input? To put it another way, if I have a MultiPolygon with
&lt;br&gt;&amp;nbsp;three polygons, two of them intersecting each other (A and B), is it
&lt;br&gt;&amp;nbsp;possible that B and C will intersect after ST_SimplifyPreserveTopology?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ticket URL: &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/ticket/240#comment:7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/ticket/240#comment:7&lt;/a&gt;&amp;gt;
&lt;br&gt;PostGIS &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/&lt;/a&gt;&amp;gt;
&lt;br&gt;The PostGIS Trac is used for bug, enhancement &amp;amp; task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473569&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PostGIS---240%3A-ST_SimplifyPreserveTopology-documentation-unclear-on-intersections-within-a-MultiPolygon-tp25002918p26473569.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26471752</id>
	<title>Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW</title>
	<published>2009-11-22T18:03:09Z</published>
	<updated>2009-11-22T18:03:09Z</updated>
	<author>
		<name>PostGIS-4</name>
	</author>
	<content type="html">#273: ST_GeomFromGML crashes in Windows compiled in MingW
&lt;br&gt;----------------------+-----------------------------------------------------
&lt;br&gt;&amp;nbsp; Reporter: &amp;nbsp;robe &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; Owner: &amp;nbsp;colivier &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Type: &amp;nbsp;defect &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;Status: &amp;nbsp;new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; Priority: &amp;nbsp;medium &amp;nbsp; | &amp;nbsp; Milestone: &amp;nbsp;PostGIS 1.5.0
&lt;br&gt;&amp;nbsp;Component: &amp;nbsp;postgis &amp;nbsp;| &amp;nbsp; &amp;nbsp; Version: &amp;nbsp;trunk &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;Resolution: &amp;nbsp; &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;----------------------+-----------------------------------------------------
&lt;br&gt;Comment (by robe):
&lt;br&gt;&lt;br&gt;&amp;nbsp;One thing I forgot to mention. &amp;nbsp;I was testing against the Enterprisedb
&lt;br&gt;&amp;nbsp;compiled PostgreSQL 8.3/8.4, not my mingw compiled version. &amp;nbsp;I do that
&lt;br&gt;&amp;nbsp;because sometimes they behave differently. &amp;nbsp;For example plr works fine
&lt;br&gt;&amp;nbsp;under my mingw compiled postgresql 84, but I for the life of me can't even
&lt;br&gt;&amp;nbsp;get it to load in the visual c++ compiled EDB packaged PostgreSQL. &amp;nbsp;So
&lt;br&gt;&amp;nbsp;that I know I will eventually have to bite the bullet and figure out how
&lt;br&gt;&amp;nbsp;to compile plr under vc++.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ticket URL: &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/ticket/273#comment:14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/ticket/273#comment:14&lt;/a&gt;&amp;gt;
&lt;br&gt;PostGIS &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/&lt;/a&gt;&amp;gt;
&lt;br&gt;The PostGIS Trac is used for bug, enhancement &amp;amp; task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26471752&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PostGIS---273%3A-ST_GeomFromGML-crashes-in-Windows-compiled-in-MingW-tp26015500p26471752.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26471674</id>
	<title>Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW</title>
	<published>2009-11-22T17:53:15Z</published>
	<updated>2009-11-22T17:53:15Z</updated>
	<author>
		<name>PostGIS-4</name>
	</author>
	<content type="html">#273: ST_GeomFromGML crashes in Windows compiled in MingW
&lt;br&gt;----------------------+-----------------------------------------------------
&lt;br&gt;&amp;nbsp; Reporter: &amp;nbsp;robe &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; Owner: &amp;nbsp;colivier &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Type: &amp;nbsp;defect &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;Status: &amp;nbsp;new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; Priority: &amp;nbsp;medium &amp;nbsp; | &amp;nbsp; Milestone: &amp;nbsp;PostGIS 1.5.0
&lt;br&gt;&amp;nbsp;Component: &amp;nbsp;postgis &amp;nbsp;| &amp;nbsp; &amp;nbsp; Version: &amp;nbsp;trunk &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;Resolution: &amp;nbsp; &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;----------------------+-----------------------------------------------------
&lt;br&gt;Comment (by robe):
&lt;br&gt;&lt;br&gt;&amp;nbsp;Strange. &amp;nbsp;Maybe its something else I install getting in the way or I'm not
&lt;br&gt;&amp;nbsp;compiling libxml right. &amp;nbsp;I have another box I can try on later. &amp;nbsp; Nicklas
&lt;br&gt;&amp;nbsp;-- you have a mingw install -- if its not asking too much -- can you try
&lt;br&gt;&amp;nbsp;compiling and doing the simple
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;{{{
&lt;br&gt;&amp;nbsp;SELECT
&lt;br&gt;&amp;nbsp;ST_GeomFromGML('&amp;lt;gml:Point&amp;gt;&amp;lt;gml:coordinates&amp;gt;1,2&amp;lt;/gml:coordinates&amp;gt;&amp;lt;/gml:Point&amp;gt;')
&lt;br&gt;&amp;nbsp;}}}
&lt;br&gt;&amp;nbsp;to see if it works.
&lt;br&gt;&lt;br&gt;&amp;nbsp;Olivier - what &amp;nbsp;is your mingw gcc and mingw/msys versions? &amp;nbsp;On my gcc 3.5
&lt;br&gt;&amp;nbsp;box, I was able to compile and install without errors (except libxml make
&lt;br&gt;&amp;nbsp;checks fail), but got crashes when doing the above test. &amp;nbsp;On my upgraded
&lt;br&gt;&amp;nbsp;mingw running gcc 4.4, I can't compile libxml at all.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ticket URL: &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/ticket/273#comment:13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/ticket/273#comment:13&lt;/a&gt;&amp;gt;
&lt;br&gt;PostGIS &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/&lt;/a&gt;&amp;gt;
&lt;br&gt;The PostGIS Trac is used for bug, enhancement &amp;amp; task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26471674&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PostGIS---273%3A-ST_GeomFromGML-crashes-in-Windows-compiled-in-MingW-tp26015500p26471674.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26470527</id>
	<title>Re: Distance patch</title>
	<published>2009-11-22T15:00:52Z</published>
	<updated>2009-11-22T15:00:52Z</updated>
	<author>
		<name>Nicklas Avén</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;&lt;/title&gt;
	
&lt;meta name=&quot;GENERATOR&quot; content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/meta&gt;
	
&lt;meta name=&quot;SKYPE_FRAMEID&quot; content=&quot;HBROAMAKDT&quot;&gt;&lt;/meta&gt;
	
&lt;meta id=&quot;skype_v3_tb_marker_id&quot; name=&quot;SKYPE_PARSING_HAS_FINISHED&quot; content=&quot;metacontent&quot;&gt;&lt;/meta&gt;
&lt;/head&gt;

&lt;body&gt;
	
&lt;div align=&quot;left&quot;&gt;I have done some more changes in error and debig handling.&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;Have not done any testing afterwards, but I haven't done anything that should affect the logic.&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;From my point of view it is time to merge if you others think so.&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;/Nicklas&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&lt;br /&gt;
		2009-11-22 Paul Ramsey wrote:&lt;br /&gt;
		&lt;br /&gt;
		Well, avoid the double == double construction. The thing that makes it&lt;br /&gt;
		&gt;really ugly though is the combination of a measure value with a mode&lt;br /&gt;
		&gt;value. Basically your mode, which is a switch has a hidden&lt;br /&gt;
		&gt;mathematical meaning, which is non-obvious. This construction is more&lt;br /&gt;
		&gt;verbose, but more obvious in intent:&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;double maxdistance = ( mode == DIST2D_MIN ? -1.0 * MAXFLOAT : MAXFLOAT );&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;P.&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;On Sun, Nov 22, 2009 at 3:27 AM, Nicklas Av&amp;eacute;n&lt;br /&gt;
		&gt;
		&lt;nicklas.aven@jordogskog.no&gt;&lt;/nicklas.aven@jordogskog.no&gt; wrote:&lt;br /&gt;
		&gt;&gt; yes, I see too that this is ugly. Is there a common,better way of doing it?&lt;br /&gt;
		&gt;&gt; The reason for todays code is I try to keep shortest and longest line to&lt;br /&gt;
		&gt;&gt; share the same function lw_dist2d_distanceline. My thought also was that&lt;br /&gt;
		&gt;&gt; MAXFLOAT is harmless with or without sign since it is stored in a double.&lt;br /&gt;
		&gt;&gt; just a thought.&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; I will try the IRC&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; /Nicklas&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; 2009-11-22 Paul Ramsey wrote:&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; This gives me the willies:&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt; if (thedl.distance == mode * MAXFLOAT)&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;At a minimum, reverse the test so that this is the test&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt; if (thedl.distance &amp;lt; mode * MAXFLOAT)&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;P.&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;On Sat, Nov 21, 2009 at 5:46 PM, Nicklas Av&amp;eacute;n&lt;br /&gt;
		&gt;&gt;&gt; wrote:&lt;br /&gt;
		&gt;&gt;&gt;&gt; Now I have committed something for the empty geometries.&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; Please take a look&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; I use MAXFLOAT as startvalue when seeking mindistance. Is that ok?&lt;br /&gt;
		&gt;&gt;&gt;&gt; then I check if mindistance still is MAXFLOAT after iterating through all&lt;br /&gt;
		&gt;&gt;&gt;&gt; subgeometries, then it should return null. is that ok way of doing it?&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; I also check so no empty geometries will go into the calculations but&lt;br /&gt;
		&gt;&gt;&gt;&gt; just&lt;br /&gt;
		&gt;&gt;&gt;&gt; be returned and not touching mindistance.&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; st_distance, st_dwithin&amp;nbsp;are now supposed to return according to the empty&lt;br /&gt;
		&gt;&gt;&gt;&gt; geometry document.&lt;br /&gt;
		&gt;&gt;&gt;&gt; st_max_distance and st_dfyllywithin should behave the same way as their&lt;br /&gt;
		&gt;&gt;&gt;&gt; corresponding above.&lt;br /&gt;
		&gt;&gt;&gt;&gt; st_shortestline, st_closestpoint and st_longestline should return null&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; /Nicklas&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; 2009-11-21 Nicklas Av&amp;eacute;n wrote:&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; Sounds great&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; I'm working on the empty geometry handling. Didn't have time earlier&lt;br /&gt;
		&gt;&gt;&gt;&gt; today&lt;br /&gt;
		&gt;&gt;&gt;&gt; but should be done in some hours.&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; About the timing I'm little supprized that the difference wasn't bigger.&lt;br /&gt;
		&gt;&gt;&gt;&gt; I&lt;br /&gt;
		&gt;&gt;&gt;&gt; thought you would pass 10 times faster at maybe 30 aginst 30 vertexes.&lt;br /&gt;
		&gt;&gt;&gt;&gt; But&lt;br /&gt;
		&gt;&gt;&gt;&gt; that also depends on how close to each other the geometries are. How many&lt;br /&gt;
		&gt;&gt;&gt;&gt; of&lt;br /&gt;
		&gt;&gt;&gt;&gt; them getting overlapping bounding boxes and because of that uses the old&lt;br /&gt;
		&gt;&gt;&gt;&gt; calculation. The new algoritm is more unpredictable in speed since it&lt;br /&gt;
		&gt;&gt;&gt;&gt; depends on how the geometries is &quot;seen&quot; from each other.&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; Thanks&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; Nicklas&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; 2009-11-21 Paragon Corporation wrote:&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; Paul and Nicklas,&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;The patch looks good to me. So if Nicklas is ready I would say its good&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt; to&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;go in.&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;Nicklas -- your subgeom change fixed the anomalies I started to notice&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt; (with&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;my neig parcel dist checks). I tested on a wider&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;Distribution of geometries and they look fine. There are a few cases&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt; (not&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;sure the percentage since I have to have the query run for a while just&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt; to&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;pick up one where the diff from old and new &amp;lt; 0.&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;In the cases where it is the diff is about e-9 (worst case) to e-11. So&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;around the range when the floating precision artifacts cloud the&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt; numbers&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;anyway.&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;Here are my test results using sample linestrings and polygons (these&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt; are&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;not multi though since the data that had a good mix didn't have multis)&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt; The&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;n-n2 range are the number of points (so testing distance between lines&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt; of&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;10-20 points vs. polygons of 10-20 points).&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;-- (0-9, 5000 recs: new 312 ms, old 344 ms (they both fluctuate between&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;213ms and 625 ms so hard to tell which is faster)&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;-- (10-20, 5000 recs: new 344 ms, old: 750 ms)&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;-- (20-40, 5000 recs: new 359 ms, old: 2344 ms)&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;-- (41-50, 5000 recs: new 860 ms, old: 5609 ms)&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;-- (51-60, 5000 recs: new 1828 ms, old: 9984 ms)&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;-- (61-70, 5000 recs: new 1922 ms, old: 12657 ms)&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;Regarding the other issue that Nicklas brought up about how to test&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt; these&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;things.&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;I do find being able to run both a PostGIS 1.4 distance and PostGIS 1.5&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;distance in the same database very useful for testing. Its better than&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;defining a dist_old in postgis code because its one less thing we have&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt; to&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;remove and also doesn't run the risk of not being able to test old&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt; behavior&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;that has changed because of core code base changes.&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;As to whether this is useful in production to say run new PostGIS 1.5&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;functions you badly want and still maintain your PostGIS 1.3/1.4 -- Yes&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt; and&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;No.&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;The person in me that just wants a single feature (say faster dist or&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt; better&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;distance spheroid functions) from say 1.5 wihtout rocking my exisitng&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;installs says Yes.&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;The person in me that likes consistency and ease of upgrade says No.&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;So I guess we could say its possible to hack your PostGIS into a mutant&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;1.3/1.5 or 1.4/1.5 install but we don't support it.&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;Thanks,&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;Regina&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;_______________________________________________&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;postgis-devel mailing list&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26470527&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; _______________________________________________&lt;br /&gt;
		&gt;&gt;&gt;&gt; postgis-devel mailing list&lt;br /&gt;
		&gt;&gt;&gt;&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26470527&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;_______________________________________________&lt;br /&gt;
		&gt;&gt;&gt;postgis-devel mailing list&lt;br /&gt;
		&gt;&gt;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26470527&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;&gt;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt; _______________________________________________&lt;br /&gt;
		&gt;&gt; postgis-devel mailing list&lt;br /&gt;
		&gt;&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26470527&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;&gt; http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;_______________________________________________&lt;br /&gt;
		&gt;postgis-devel mailing list&lt;br /&gt;
		&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26470527&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26470527&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Distance-patch-tp26459186p26470527.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26468173</id>
	<title>Re: [PostGIS] #273: ST_GeomFromGML crashes in Windows compiled in MingW</title>
	<published>2009-11-22T10:47:25Z</published>
	<updated>2009-11-22T10:47:25Z</updated>
	<author>
		<name>PostGIS-4</name>
	</author>
	<content type="html">#273: ST_GeomFromGML crashes in Windows compiled in MingW
&lt;br&gt;----------------------+-----------------------------------------------------
&lt;br&gt;&amp;nbsp; Reporter: &amp;nbsp;robe &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; Owner: &amp;nbsp;colivier &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Type: &amp;nbsp;defect &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;Status: &amp;nbsp;new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; Priority: &amp;nbsp;medium &amp;nbsp; | &amp;nbsp; Milestone: &amp;nbsp;PostGIS 1.5.0
&lt;br&gt;&amp;nbsp;Component: &amp;nbsp;postgis &amp;nbsp;| &amp;nbsp; &amp;nbsp; Version: &amp;nbsp;trunk &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;Resolution: &amp;nbsp; &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;----------------------+-----------------------------------------------------
&lt;br&gt;Comment (by colivier):
&lt;br&gt;&lt;br&gt;&amp;nbsp;Regina,
&lt;br&gt;&lt;br&gt;&amp;nbsp;You're right the install problem was the dual GEOS install.
&lt;br&gt;&amp;nbsp;I (finnaly) succeed to install the whole stuff with Mingw (not exactly a
&lt;br&gt;&amp;nbsp;piece of cake) !
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;With my install everything is fine with in_gml.sql and in_kml.sql
&lt;br&gt;&lt;br&gt;&amp;nbsp;Postgis: r4813
&lt;br&gt;&amp;nbsp;Geos: 3.2.0 RC1
&lt;br&gt;&amp;nbsp;Libxml2: 2.7.6
&lt;br&gt;&lt;br&gt;&amp;nbsp;I really suspect you're libxml2 installation to be the problem. Is it
&lt;br&gt;&amp;nbsp;possible for you (or someone else) to test it on an another box ?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ticket URL: &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/ticket/273#comment:12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/ticket/273#comment:12&lt;/a&gt;&amp;gt;
&lt;br&gt;PostGIS &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/&lt;/a&gt;&amp;gt;
&lt;br&gt;The PostGIS Trac is used for bug, enhancement &amp;amp; task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26468173&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PostGIS---273%3A-ST_GeomFromGML-crashes-in-Windows-compiled-in-MingW-tp26015500p26468173.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26467325</id>
	<title>Re: Distance patch</title>
	<published>2009-11-22T09:27:14Z</published>
	<updated>2009-11-22T09:27:14Z</updated>
	<author>
		<name>Paul Ramsey-3</name>
	</author>
	<content type="html">Well, avoid the double == double construction. The thing that makes it
&lt;br&gt;really ugly though is the combination of a measure value with a mode
&lt;br&gt;value. Basically your mode, which is a switch has a hidden
&lt;br&gt;mathematical meaning, which is non-obvious. This construction is more
&lt;br&gt;verbose, but more obvious in intent:
&lt;br&gt;&lt;br&gt;double maxdistance = ( mode == DIST2D_MIN ? -1.0 * MAXFLOAT : MAXFLOAT );
&lt;br&gt;&lt;br&gt;P.
&lt;br&gt;&lt;br&gt;On Sun, Nov 22, 2009 at 3:27 AM, Nicklas Avén
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26467325&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nicklas.aven@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; yes, I see too that this is ugly. Is there a common,better way of doing it?
&lt;br&gt;&amp;gt; The reason for todays code is I try to keep shortest and longest line to
&lt;br&gt;&amp;gt; share the same function lw_dist2d_distanceline. My thought also was that
&lt;br&gt;&amp;gt; MAXFLOAT is harmless with or without sign since it is stored in a double.
&lt;br&gt;&amp;gt; just a thought.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I will try the IRC
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /Nicklas
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009-11-22 Paul Ramsey wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This gives me the willies:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; if (thedl.distance == mode * MAXFLOAT)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;At a minimum, reverse the test so that this is the test
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; if (thedl.distance &amp;lt; mode * MAXFLOAT)
&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;On Sat, Nov 21, 2009 at 5:46 PM, Nicklas Avén
&lt;br&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Now I have committed something for the empty geometries.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Please take a look
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I use MAXFLOAT as startvalue when seeking mindistance. Is that ok?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; then I check if mindistance still is MAXFLOAT after iterating through all
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; subgeometries, then it should return null. is that ok way of doing it?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I also check so no empty geometries will go into the calculations but
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; just
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; be returned and not touching mindistance.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; st_distance, st_dwithin are now supposed to return according to the empty
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; geometry document.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; st_max_distance and st_dfyllywithin should behave the same way as their
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; corresponding above.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; st_shortestline, st_closestpoint and st_longestline should return null
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; /Nicklas
&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; 2009-11-21 Nicklas Avén wrote:
&lt;br&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; Sounds great
&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;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm working on the empty geometry handling. Didn't have time earlier
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; today
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; but should be done in some hours.
&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;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; About the timing I'm little supprized that the difference wasn't bigger.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; thought you would pass 10 times faster at maybe 30 aginst 30 vertexes.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; But
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; that also depends on how close to each other the geometries are. How many
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; them getting overlapping bounding boxes and because of that uses the old
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; calculation. The new algoritm is more unpredictable in speed since it
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; depends on how the geometries is &amp;quot;seen&amp;quot; from each other.
&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;&amp;gt;
&lt;br&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; Nicklas
&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;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 2009-11-21 Paragon Corporation wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Paul and Nicklas,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;The patch looks good to me. So if Nicklas is ready I would say its good
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;go in.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;Nicklas -- your subgeom change fixed the anomalies I started to notice
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; (with
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;my neig parcel dist checks). I tested on a wider
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;Distribution of geometries and they look fine. There are a few cases
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; (not
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;sure the percentage since I have to have the query run for a while just
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;pick up one where the diff from old and new &amp;lt; 0.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;In the cases where it is the diff is about e-9 (worst case) to e-11. So
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;around the range when the floating precision artifacts cloud the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; numbers
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;anyway.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;Here are my test results using sample linestrings and polygons (these
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; are
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;not multi though since the data that had a good mix didn't have multis)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; The
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;n-n2 range are the number of points (so testing distance between lines
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;10-20 points vs. polygons of 10-20 points).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;-- (0-9, 5000 recs: new 312 ms, old 344 ms (they both fluctuate between
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;213ms and 625 ms so hard to tell which is faster)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;-- (10-20, 5000 recs: new 344 ms, old: 750 ms)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;-- (20-40, 5000 recs: new 359 ms, old: 2344 ms)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;-- (41-50, 5000 recs: new 860 ms, old: 5609 ms)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;-- (51-60, 5000 recs: new 1828 ms, old: 9984 ms)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;-- (61-70, 5000 recs: new 1922 ms, old: 12657 ms)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;Regarding the other issue that Nicklas brought up about how to test
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; these
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;things.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;I do find being able to run both a PostGIS 1.4 distance and PostGIS 1.5
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;distance in the same database very useful for testing. Its better than
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;defining a dist_old in postgis code because its one less thing we have
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;remove and also doesn't run the risk of not being able to test old
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; behavior
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;that has changed because of core code base changes.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;As to whether this is useful in production to say run new PostGIS 1.5
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;functions you badly want and still maintain your PostGIS 1.3/1.4 -- Yes
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;No.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;The person in me that just wants a single feature (say faster dist or
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; better
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;distance spheroid functions) from say 1.5 wihtout rocking my exisitng
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;installs says Yes.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;The person in me that likes consistency and ease of upgrade says No.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;So I guess we could say its possible to hack your PostGIS into a mutant
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;1.3/1.5 or 1.4/1.5 install but we don't support it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;Regina
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;_______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;postgis-devel mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26467325&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;postgis.refractions.net/mailman/listinfo/postgis-devel
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;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; postgis-devel 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=26467325&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&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-devel mailing list
&lt;br&gt;&amp;gt;&amp;gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26467325&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26467325&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26467325&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Distance-patch-tp26459186p26467325.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26467232</id>
	<title>Re: Distance patch</title>
	<published>2009-11-22T09:20:25Z</published>
	<updated>2009-11-22T09:20:25Z</updated>
	<author>
		<name>Paul Ramsey-3</name>
	</author>
	<content type="html">On Sun, Nov 22, 2009 at 3:38 AM, Nicklas Avén
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26467232&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nicklas.aven@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Or should I put lwerror where the error occurs. As I understand it lwerror
&lt;br&gt;&amp;gt; stops everything, so then the LW_TRUE, LW_FALSE thing will not be use for
&lt;br&gt;&amp;gt; more than the uncatched cases.
&lt;br&gt;&lt;br&gt;It you're not going to recover from the error, put it where it happens.
&lt;br&gt;&lt;br&gt;P.
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26467232&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Distance-patch-tp26459186p26467232.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26464554</id>
	<title>Re: Distance patch</title>
	<published>2009-11-22T03:38:37Z</published>
	<updated>2009-11-22T03:38:37Z</updated>
	<author>
		<name>Nicklas Avén</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;&lt;/title&gt;
	
&lt;meta name=&quot;GENERATOR&quot; content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/meta&gt;
	
&lt;meta name=&quot;SKYPE_FRAMEID&quot; content=&quot;HBROAMAKDT&quot;&gt;&lt;/meta&gt;
	
&lt;meta id=&quot;skype_v3_tb_marker_id&quot; name=&quot;SKYPE_PARSING_HAS_FINISHED&quot; content=&quot;metacontent&quot;&gt;&lt;/meta&gt;
&lt;/head&gt;

&lt;body&gt;
	
&lt;div align=&quot;left&quot;&gt;another, &quot;what's the best way of doing it&quot; question&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;As the code looks now I don't know how to lift an error message from the functions deeper down. The only thing flaffinf the error is the returning integer. Noe it returns 0 for error and 1 for succes. Maybe it is better to use the return as a response of the question: error? instead of : success? and use LW_FALSE when there is no error and LW_TRUE or some other error code to return when there is an error. I mean a success is a success not much to comment, but an error raises the need of more information.&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;So, should I switch, so 0 (LW_FALSE) means success or no error, and any other integer means some error.&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;Or should I put lwerror where the error occurs. As I understand it lwerror stops everything, so then the LW_TRUE, LW_FALSE thing will not be use for more than the uncatched cases.&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;Nicklas&lt;br /&gt;
		&lt;br /&gt;
		2009-11-22 Paul Ramsey wrote:&lt;br /&gt;
		&lt;br /&gt;
		lwerror() isn't actually all that great at identifying where things&lt;br /&gt;
		&gt;have gone wrong, so this construction,&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt; lwerror(&quot;Something went wrong&quot;);&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;is going to be very un-useful to people who actually cause an error&lt;br /&gt;
		&gt;condition. At a minimum, identify the function within which you are&lt;br /&gt;
		&gt;called.&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;(Mark, can we steal some of the magic from LWDEBUG() for lwerror in&lt;br /&gt;
		&gt;terms of function/line number identification?)&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;P.&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;On Sat, Nov 21, 2009 at 5:46 PM, Nicklas Av&amp;eacute;n&lt;br /&gt;
		&gt;
		&lt;nicklas.aven@jordogskog.no&gt;&lt;/nicklas.aven@jordogskog.no&gt; wrote:&lt;br /&gt;
		&gt;&gt; Now I have committed something for the empty geometries.&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; Please take a look&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; I use MAXFLOAT as startvalue when seeking mindistance. Is that ok?&lt;br /&gt;
		&gt;&gt; then I check if mindistance still is MAXFLOAT after iterating through all&lt;br /&gt;
		&gt;&gt; subgeometries, then it should return null. is that ok way of doing it?&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; I also check so no empty geometries will go into the calculations but just&lt;br /&gt;
		&gt;&gt; be returned and not touching mindistance.&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; st_distance, st_dwithin&amp;nbsp;are now supposed to return according to the empty&lt;br /&gt;
		&gt;&gt; geometry document.&lt;br /&gt;
		&gt;&gt; st_max_distance and st_dfyllywithin should behave the same way as their&lt;br /&gt;
		&gt;&gt; corresponding above.&lt;br /&gt;
		&gt;&gt; st_shortestline, st_closestpoint and st_longestline should return null&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; /Nicklas&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; 2009-11-21 Nicklas Av&amp;eacute;n wrote:&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt; Sounds great&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt; I'm working on the empty geometry handling. Didn't have time earlier today&lt;br /&gt;
		&gt;&gt; but should be done in some hours.&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt; About the timing I'm little supprized that the difference wasn't bigger. I&lt;br /&gt;
		&gt;&gt; thought you would pass 10 times faster at maybe 30 aginst 30 vertexes. But&lt;br /&gt;
		&gt;&gt; that also depends on how close to each other the geometries are. How many of&lt;br /&gt;
		&gt;&gt; them getting overlapping bounding boxes and because of that uses the old&lt;br /&gt;
		&gt;&gt; calculation. The new algoritm is more unpredictable in speed since it&lt;br /&gt;
		&gt;&gt; depends on how the geometries is &quot;seen&quot; from each other.&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt; Thanks&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt; Nicklas&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt; 2009-11-21 Paragon Corporation wrote:&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt; Paul and Nicklas,&lt;br /&gt;
		&gt;&gt;&gt; &gt;The patch looks good to me. So if Nicklas is ready I would say its good&lt;br /&gt;
		&gt;&gt;&gt; &gt; to&lt;br /&gt;
		&gt;&gt;&gt; &gt;go in.&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;Nicklas -- your subgeom change fixed the anomalies I started to notice&lt;br /&gt;
		&gt;&gt;&gt; &gt; (with&lt;br /&gt;
		&gt;&gt;&gt; &gt;my neig parcel dist checks). I tested on a wider&lt;br /&gt;
		&gt;&gt;&gt; &gt;Distribution of geometries and they look fine. There are a few cases (not&lt;br /&gt;
		&gt;&gt;&gt; &gt;sure the percentage since I have to have the query run for a while just&lt;br /&gt;
		&gt;&gt;&gt; &gt; to&lt;br /&gt;
		&gt;&gt;&gt; &gt;pick up one where the diff from old and new &amp;lt; 0.&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;In the cases where it is the diff is about e-9 (worst case) to e-11. So&lt;br /&gt;
		&gt;&gt;&gt; &gt;around the range when the floating precision artifacts cloud the numbers&lt;br /&gt;
		&gt;&gt;&gt; &gt;anyway.&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;Here are my test results using sample linestrings and polygons (these are&lt;br /&gt;
		&gt;&gt;&gt; &gt;not multi though since the data that had a good mix didn't have multis)&lt;br /&gt;
		&gt;&gt;&gt; &gt; The&lt;br /&gt;
		&gt;&gt;&gt; &gt;n-n2 range are the number of points (so testing distance between lines of&lt;br /&gt;
		&gt;&gt;&gt; &gt;10-20 points vs. polygons of 10-20 points).&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;-- (0-9, 5000 recs: new 312 ms, old 344 ms (they both fluctuate between&lt;br /&gt;
		&gt;&gt;&gt; &gt;213ms and 625 ms so hard to tell which is faster)&lt;br /&gt;
		&gt;&gt;&gt; &gt;-- (10-20, 5000 recs: new 344 ms, old: 750 ms)&lt;br /&gt;
		&gt;&gt;&gt; &gt;-- (20-40, 5000 recs: new 359 ms, old: 2344 ms)&lt;br /&gt;
		&gt;&gt;&gt; &gt;-- (41-50, 5000 recs: new 860 ms, old: 5609 ms)&lt;br /&gt;
		&gt;&gt;&gt; &gt;-- (51-60, 5000 recs: new 1828 ms, old: 9984 ms)&lt;br /&gt;
		&gt;&gt;&gt; &gt;-- (61-70, 5000 recs: new 1922 ms, old: 12657 ms)&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;Regarding the other issue that Nicklas brought up about how to test these&lt;br /&gt;
		&gt;&gt;&gt; &gt;things.&lt;br /&gt;
		&gt;&gt;&gt; &gt;I do find being able to run both a PostGIS 1.4 distance and PostGIS 1.5&lt;br /&gt;
		&gt;&gt;&gt; &gt;distance in the same database very useful for testing. Its better than&lt;br /&gt;
		&gt;&gt;&gt; &gt;defining a dist_old in postgis code because its one less thing we have to&lt;br /&gt;
		&gt;&gt;&gt; &gt;remove and also doesn't run the risk of not being able to test old&lt;br /&gt;
		&gt;&gt;&gt; &gt; behavior&lt;br /&gt;
		&gt;&gt;&gt; &gt;that has changed because of core code base changes.&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;As to whether this is useful in production to say run new PostGIS 1.5&lt;br /&gt;
		&gt;&gt;&gt; &gt;functions you badly want and still maintain your PostGIS 1.3/1.4 -- Yes&lt;br /&gt;
		&gt;&gt;&gt; &gt; and&lt;br /&gt;
		&gt;&gt;&gt; &gt;No.&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;The person in me that just wants a single feature (say faster dist or&lt;br /&gt;
		&gt;&gt;&gt; &gt; better&lt;br /&gt;
		&gt;&gt;&gt; &gt;distance spheroid functions) from say 1.5 wihtout rocking my exisitng&lt;br /&gt;
		&gt;&gt;&gt; &gt;installs says Yes.&lt;br /&gt;
		&gt;&gt;&gt; &gt;The person in me that likes consistency and ease of upgrade says No.&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;So I guess we could say its possible to hack your PostGIS into a mutant&lt;br /&gt;
		&gt;&gt;&gt; &gt;1.3/1.5 or 1.4/1.5 install but we don't support it.&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;Thanks,&lt;br /&gt;
		&gt;&gt;&gt; &gt;Regina&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;_______________________________________________&lt;br /&gt;
		&gt;&gt;&gt; &gt;postgis-devel mailing list&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464554&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt; _______________________________________________&lt;br /&gt;
		&gt;&gt; postgis-devel mailing list&lt;br /&gt;
		&gt;&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464554&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;&gt; http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;_______________________________________________&lt;br /&gt;
		&gt;postgis-devel mailing list&lt;br /&gt;
		&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464554&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464554&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Distance-patch-tp26459186p26464554.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26464477</id>
	<title>Re: Distance patch</title>
	<published>2009-11-22T03:27:57Z</published>
	<updated>2009-11-22T03:27:57Z</updated>
	<author>
		<name>Nicklas Avén</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;&lt;/title&gt;
	
&lt;meta name=&quot;GENERATOR&quot; content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/meta&gt;
	
&lt;meta name=&quot;SKYPE_FRAMEID&quot; content=&quot;HBROAMAKDT&quot;&gt;&lt;/meta&gt;
	
&lt;meta id=&quot;skype_v3_tb_marker_id&quot; name=&quot;SKYPE_PARSING_HAS_FINISHED&quot; content=&quot;metacontent&quot;&gt;&lt;/meta&gt;
&lt;/head&gt;

&lt;body&gt;yes, I see too that this is ugly. Is there a common,better way of doing it? The reason for todays code is I try to keep shortest and longest line to share the same function lw_dist2d_distanceline. My thought also was that MAXFLOAT is harmless with or without sign since it is stored in a double. just a thought.
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;I will try the IRC&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;/Nicklas&lt;br /&gt;
		&lt;br /&gt;
		2009-11-22 Paul Ramsey wrote:&lt;br /&gt;
		&lt;br /&gt;
		This gives me the willies:&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt; if (thedl.distance == mode * MAXFLOAT)&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;At a minimum, reverse the test so that this is the test&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt; if (thedl.distance &amp;lt; mode * MAXFLOAT)&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;P.&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;On Sat, Nov 21, 2009 at 5:46 PM, Nicklas Av&amp;eacute;n&lt;br /&gt;
		&gt;
		&lt;nicklas.aven@jordogskog.no&gt;&lt;/nicklas.aven@jordogskog.no&gt; wrote:&lt;br /&gt;
		&gt;&gt; Now I have committed something for the empty geometries.&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; Please take a look&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; I use MAXFLOAT as startvalue when seeking mindistance. Is that ok?&lt;br /&gt;
		&gt;&gt; then I check if mindistance still is MAXFLOAT after iterating through all&lt;br /&gt;
		&gt;&gt; subgeometries, then it should return null. is that ok way of doing it?&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; I also check so no empty geometries will go into the calculations but just&lt;br /&gt;
		&gt;&gt; be returned and not touching mindistance.&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; st_distance, st_dwithin&amp;nbsp;are now supposed to return according to the empty&lt;br /&gt;
		&gt;&gt; geometry document.&lt;br /&gt;
		&gt;&gt; st_max_distance and st_dfyllywithin should behave the same way as their&lt;br /&gt;
		&gt;&gt; corresponding above.&lt;br /&gt;
		&gt;&gt; st_shortestline, st_closestpoint and st_longestline should return null&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; /Nicklas&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; 2009-11-21 Nicklas Av&amp;eacute;n wrote:&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt; Sounds great&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt; I'm working on the empty geometry handling. Didn't have time earlier today&lt;br /&gt;
		&gt;&gt; but should be done in some hours.&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt; About the timing I'm little supprized that the difference wasn't bigger. I&lt;br /&gt;
		&gt;&gt; thought you would pass 10 times faster at maybe 30 aginst 30 vertexes. But&lt;br /&gt;
		&gt;&gt; that also depends on how close to each other the geometries are. How many of&lt;br /&gt;
		&gt;&gt; them getting overlapping bounding boxes and because of that uses the old&lt;br /&gt;
		&gt;&gt; calculation. The new algoritm is more unpredictable in speed since it&lt;br /&gt;
		&gt;&gt; depends on how the geometries is &quot;seen&quot; from each other.&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt; Thanks&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt; Nicklas&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt; 2009-11-21 Paragon Corporation wrote:&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt; Paul and Nicklas,&lt;br /&gt;
		&gt;&gt;&gt; &gt;The patch looks good to me. So if Nicklas is ready I would say its good&lt;br /&gt;
		&gt;&gt;&gt; &gt; to&lt;br /&gt;
		&gt;&gt;&gt; &gt;go in.&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;Nicklas -- your subgeom change fixed the anomalies I started to notice&lt;br /&gt;
		&gt;&gt;&gt; &gt; (with&lt;br /&gt;
		&gt;&gt;&gt; &gt;my neig parcel dist checks). I tested on a wider&lt;br /&gt;
		&gt;&gt;&gt; &gt;Distribution of geometries and they look fine. There are a few cases (not&lt;br /&gt;
		&gt;&gt;&gt; &gt;sure the percentage since I have to have the query run for a while just&lt;br /&gt;
		&gt;&gt;&gt; &gt; to&lt;br /&gt;
		&gt;&gt;&gt; &gt;pick up one where the diff from old and new &amp;lt; 0.&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;In the cases where it is the diff is about e-9 (worst case) to e-11. So&lt;br /&gt;
		&gt;&gt;&gt; &gt;around the range when the floating precision artifacts cloud the numbers&lt;br /&gt;
		&gt;&gt;&gt; &gt;anyway.&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;Here are my test results using sample linestrings and polygons (these are&lt;br /&gt;
		&gt;&gt;&gt; &gt;not multi though since the data that had a good mix didn't have multis)&lt;br /&gt;
		&gt;&gt;&gt; &gt; The&lt;br /&gt;
		&gt;&gt;&gt; &gt;n-n2 range are the number of points (so testing distance between lines of&lt;br /&gt;
		&gt;&gt;&gt; &gt;10-20 points vs. polygons of 10-20 points).&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;-- (0-9, 5000 recs: new 312 ms, old 344 ms (they both fluctuate between&lt;br /&gt;
		&gt;&gt;&gt; &gt;213ms and 625 ms so hard to tell which is faster)&lt;br /&gt;
		&gt;&gt;&gt; &gt;-- (10-20, 5000 recs: new 344 ms, old: 750 ms)&lt;br /&gt;
		&gt;&gt;&gt; &gt;-- (20-40, 5000 recs: new 359 ms, old: 2344 ms)&lt;br /&gt;
		&gt;&gt;&gt; &gt;-- (41-50, 5000 recs: new 860 ms, old: 5609 ms)&lt;br /&gt;
		&gt;&gt;&gt; &gt;-- (51-60, 5000 recs: new 1828 ms, old: 9984 ms)&lt;br /&gt;
		&gt;&gt;&gt; &gt;-- (61-70, 5000 recs: new 1922 ms, old: 12657 ms)&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;Regarding the other issue that Nicklas brought up about how to test these&lt;br /&gt;
		&gt;&gt;&gt; &gt;things.&lt;br /&gt;
		&gt;&gt;&gt; &gt;I do find being able to run both a PostGIS 1.4 distance and PostGIS 1.5&lt;br /&gt;
		&gt;&gt;&gt; &gt;distance in the same database very useful for testing. Its better than&lt;br /&gt;
		&gt;&gt;&gt; &gt;defining a dist_old in postgis code because its one less thing we have to&lt;br /&gt;
		&gt;&gt;&gt; &gt;remove and also doesn't run the risk of not being able to test old&lt;br /&gt;
		&gt;&gt;&gt; &gt; behavior&lt;br /&gt;
		&gt;&gt;&gt; &gt;that has changed because of core code base changes.&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;As to whether this is useful in production to say run new PostGIS 1.5&lt;br /&gt;
		&gt;&gt;&gt; &gt;functions you badly want and still maintain your PostGIS 1.3/1.4 -- Yes&lt;br /&gt;
		&gt;&gt;&gt; &gt; and&lt;br /&gt;
		&gt;&gt;&gt; &gt;No.&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;The person in me that just wants a single feature (say faster dist or&lt;br /&gt;
		&gt;&gt;&gt; &gt; better&lt;br /&gt;
		&gt;&gt;&gt; &gt;distance spheroid functions) from say 1.5 wihtout rocking my exisitng&lt;br /&gt;
		&gt;&gt;&gt; &gt;installs says Yes.&lt;br /&gt;
		&gt;&gt;&gt; &gt;The person in me that likes consistency and ease of upgrade says No.&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;So I guess we could say its possible to hack your PostGIS into a mutant&lt;br /&gt;
		&gt;&gt;&gt; &gt;1.3/1.5 or 1.4/1.5 install but we don't support it.&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;Thanks,&lt;br /&gt;
		&gt;&gt;&gt; &gt;Regina&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;_______________________________________________&lt;br /&gt;
		&gt;&gt;&gt; &gt;postgis-devel mailing list&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464477&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt;&gt; &gt;&lt;br /&gt;
		&gt;&gt; _______________________________________________&lt;br /&gt;
		&gt;&gt; postgis-devel mailing list&lt;br /&gt;
		&gt;&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464477&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;&gt; http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;_______________________________________________&lt;br /&gt;
		&gt;postgis-devel mailing list&lt;br /&gt;
		&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464477&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464477&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Distance-patch-tp26459186p26464477.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26462827</id>
	<title>Drawing a path using line and point tables</title>
	<published>2009-11-21T20:48:00Z</published>
	<updated>2009-11-22T04:05:41Z</updated>
	<author>
		<name>Nalin Chandrawansha</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I have two tables for roads and hospitals. I'm looking for suitable pgrouting function(s) for following scenario.
&lt;br&gt;&lt;br&gt;&lt;i&gt;Finding the closest hospital from an accident point (on a road) and draw the path.&lt;/i&gt;&lt;br&gt;&lt;br&gt;Following functionality is needed.
&lt;br&gt;&lt;br&gt;1. One end of the drawn path needs to start from&lt;i&gt;&amp;nbsp;in front &lt;/i&gt;of the closest hospital.
&lt;br&gt;2. Path needs to stop from the accident point on road.
&lt;br&gt;&lt;br&gt;I'm new to pgrouting and appreciate your help.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thank you,
&lt;br&gt;&lt;br&gt;Nalin Chandrawansha
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Drawing-a-path-using-line-and-point-tables-tp26462827p26462827.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26462328</id>
	<title>Re: [PostGIS] #317: Upgrade lwerror() to return file/linenumber information in error messages</title>
	<published>2009-11-21T18:18:16Z</published>
	<updated>2009-11-21T18:18:16Z</updated>
	<author>
		<name>PostGIS-4</name>
	</author>
	<content type="html">#317: Upgrade lwerror() to return file/linenumber information in error messages
&lt;br&gt;--------------------------+-------------------------------------------------
&lt;br&gt;&amp;nbsp; Reporter: &amp;nbsp;pramsey &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; Owner: &amp;nbsp;mcayland &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Type: &amp;nbsp;enhancement &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp;Status: &amp;nbsp;new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; Priority: &amp;nbsp;medium &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; Milestone: &amp;nbsp;PostGIS Future
&lt;br&gt;&amp;nbsp;Component: &amp;nbsp;postgis &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; Version: &amp;nbsp;trunk &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;Resolution: &amp;nbsp; &amp;nbsp; &amp;nbsp; &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; &amp;nbsp;
&lt;br&gt;--------------------------+-------------------------------------------------
&lt;br&gt;Changes (by pramsey):
&lt;br&gt;&lt;br&gt;&amp;nbsp; * type: &amp;nbsp;defect =&amp;gt; enhancement
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ticket URL: &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/ticket/317#comment:2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/ticket/317#comment:2&lt;/a&gt;&amp;gt;
&lt;br&gt;PostGIS &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/&lt;/a&gt;&amp;gt;
&lt;br&gt;The PostGIS Trac is used for bug, enhancement &amp;amp; task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26462328&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PostGIS---317%3A-Upgrade-lwerror%28%29-to-return-file-linenumber-information-in-error-messages-tp26462325p26462328.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26462327</id>
	<title>Re: [PostGIS] #317: Upgrade lwerror() to return file/linenumber information in error messages</title>
	<published>2009-11-21T18:17:51Z</published>
	<updated>2009-11-21T18:17:51Z</updated>
	<author>
		<name>PostGIS-4</name>
	</author>
	<content type="html">#317: Upgrade lwerror() to return file/linenumber information in error messages
&lt;br&gt;----------------------+-----------------------------------------------------
&lt;br&gt;&amp;nbsp; Reporter: &amp;nbsp;pramsey &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; Owner: &amp;nbsp;mcayland &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Type: &amp;nbsp;defect &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;Status: &amp;nbsp;new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; Priority: &amp;nbsp;medium &amp;nbsp; | &amp;nbsp; Milestone: &amp;nbsp;PostGIS Future
&lt;br&gt;&amp;nbsp;Component: &amp;nbsp;postgis &amp;nbsp;| &amp;nbsp; &amp;nbsp; Version: &amp;nbsp;trunk &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;Resolution: &amp;nbsp; &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; &amp;nbsp;
&lt;br&gt;----------------------+-----------------------------------------------------
&lt;br&gt;Changes (by pramsey):
&lt;br&gt;&lt;br&gt;&amp;nbsp; * milestone: &amp;nbsp;PostGIS 2.0.0 =&amp;gt; PostGIS Future
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ticket URL: &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/ticket/317#comment:1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/ticket/317#comment:1&lt;/a&gt;&amp;gt;
&lt;br&gt;PostGIS &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/&lt;/a&gt;&amp;gt;
&lt;br&gt;The PostGIS Trac is used for bug, enhancement &amp;amp; task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26462327&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PostGIS---317%3A-Upgrade-lwerror%28%29-to-return-file-linenumber-information-in-error-messages-tp26462325p26462327.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26462325</id>
	<title>[PostGIS] #317: Upgrade lwerror() to return file/linenumber information in error messages</title>
	<published>2009-11-21T18:17:37Z</published>
	<updated>2009-11-21T18:17:37Z</updated>
	<author>
		<name>PostGIS-4</name>
	</author>
	<content type="html">#317: Upgrade lwerror() to return file/linenumber information in error messages
&lt;br&gt;---------------------+------------------------------------------------------
&lt;br&gt;&amp;nbsp;Reporter: &amp;nbsp;pramsey &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; Owner: &amp;nbsp;mcayland &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Type: &amp;nbsp;defect &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;Status: &amp;nbsp;new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;Priority: &amp;nbsp;medium &amp;nbsp; | &amp;nbsp; Milestone: &amp;nbsp;PostGIS 2.0.0
&lt;br&gt;Component: &amp;nbsp;postgis &amp;nbsp;| &amp;nbsp; &amp;nbsp; Version: &amp;nbsp;trunk &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;Keywords: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp;
&lt;br&gt;---------------------+------------------------------------------------------
&lt;br&gt;&amp;nbsp;Right now LWDEBUGF() returns delightful contextual information, but the
&lt;br&gt;&amp;nbsp;errors we show to our end users do not. That means (usually) the function
&lt;br&gt;&amp;nbsp;names get manually embedded in the error strings for content. It would be
&lt;br&gt;&amp;nbsp;nice to have that information by default, so error strings can spend their
&lt;br&gt;&amp;nbsp;time being descriptive (or not).
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ticket URL: &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/ticket/317&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/ticket/317&lt;/a&gt;&amp;gt;
&lt;br&gt;PostGIS &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/&lt;/a&gt;&amp;gt;
&lt;br&gt;The PostGIS Trac is used for bug, enhancement &amp;amp; task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26462325&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PostGIS---317%3A-Upgrade-lwerror%28%29-to-return-file-linenumber-information-in-error-messages-tp26462325p26462325.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26462247</id>
	<title>Re: Distance patch</title>
	<published>2009-11-21T18:02:52Z</published>
	<updated>2009-11-21T18:02:52Z</updated>
	<author>
		<name>Paul Ramsey-3</name>
	</author>
	<content type="html">lwerror() isn't actually all that great at identifying where things
&lt;br&gt;have gone wrong, so this construction,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lwerror(&amp;quot;Something went wrong&amp;quot;);
&lt;br&gt;&lt;br&gt;is going to be very un-useful to people who actually cause an error
&lt;br&gt;condition. At a minimum, identify the function within which you are
&lt;br&gt;called.
&lt;br&gt;&lt;br&gt;(Mark, can we steal some of the magic from LWDEBUG() for lwerror in
&lt;br&gt;terms of function/line number identification?)
&lt;br&gt;&lt;br&gt;P.
&lt;br&gt;&lt;br&gt;On Sat, Nov 21, 2009 at 5:46 PM, Nicklas Avén
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26462247&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nicklas.aven@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Now I have committed something for the empty geometries.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please take a look
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I use MAXFLOAT as startvalue when seeking mindistance. Is that ok?
&lt;br&gt;&amp;gt; then I check if mindistance still is MAXFLOAT after iterating through all
&lt;br&gt;&amp;gt; subgeometries, then it should return null. is that ok way of doing it?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I also check so no empty geometries will go into the calculations but just
&lt;br&gt;&amp;gt; be returned and not touching mindistance.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; st_distance, st_dwithin are now supposed to return according to the empty
&lt;br&gt;&amp;gt; geometry document.
&lt;br&gt;&amp;gt; st_max_distance and st_dfyllywithin should behave the same way as their
&lt;br&gt;&amp;gt; corresponding above.
&lt;br&gt;&amp;gt; st_shortestline, st_closestpoint and st_longestline should return null
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /Nicklas
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009-11-21 Nicklas Avén wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Sounds great
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm working on the empty geometry handling. Didn't have time earlier today
&lt;br&gt;&amp;gt; but should be done in some hours.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; About the timing I'm little supprized that the difference wasn't bigger. I
&lt;br&gt;&amp;gt; thought you would pass 10 times faster at maybe 30 aginst 30 vertexes. But
&lt;br&gt;&amp;gt; that also depends on how close to each other the geometries are. How many of
&lt;br&gt;&amp;gt; them getting overlapping bounding boxes and because of that uses the old
&lt;br&gt;&amp;gt; calculation. The new algoritm is more unpredictable in speed since it
&lt;br&gt;&amp;gt; depends on how the geometries is &amp;quot;seen&amp;quot; from each other.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Nicklas
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2009-11-21 Paragon Corporation wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Paul and Nicklas,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;The patch looks good to me. So if Nicklas is ready I would say its good
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; to
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;go in.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;Nicklas -- your subgeom change fixed the anomalies I started to notice
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; (with
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;my neig parcel dist checks). I tested on a wider
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;Distribution of geometries and they look fine. There are a few cases (not
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;sure the percentage since I have to have the query run for a while just
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; to
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;pick up one where the diff from old and new &amp;lt; 0.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;In the cases where it is the diff is about e-9 (worst case) to e-11. So
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;around the range when the floating precision artifacts cloud the numbers
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;anyway.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;Here are my test results using sample linestrings and polygons (these are
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;not multi though since the data that had a good mix didn't have multis)
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; The
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;n-n2 range are the number of points (so testing distance between lines of
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;10-20 points vs. polygons of 10-20 points).
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;-- (0-9, 5000 recs: new 312 ms, old 344 ms (they both fluctuate between
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;213ms and 625 ms so hard to tell which is faster)
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;-- (10-20, 5000 recs: new 344 ms, old: 750 ms)
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;-- (20-40, 5000 recs: new 359 ms, old: 2344 ms)
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;-- (41-50, 5000 recs: new 860 ms, old: 5609 ms)
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;-- (51-60, 5000 recs: new 1828 ms, old: 9984 ms)
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;-- (61-70, 5000 recs: new 1922 ms, old: 12657 ms)
&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;Regarding the other issue that Nicklas brought up about how to test these
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;things.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;I do find being able to run both a PostGIS 1.4 distance and PostGIS 1.5
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;distance in the same database very useful for testing. Its better than
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;defining a dist_old in postgis code because its one less thing we have to
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;remove and also doesn't run the risk of not being able to test old
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; behavior
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;that has changed because of core code base changes.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;As to whether this is useful in production to say run new PostGIS 1.5
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;functions you badly want and still maintain your PostGIS 1.3/1.4 -- Yes
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; and
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;No.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;The person in me that just wants a single feature (say faster dist or
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; better
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;distance spheroid functions) from say 1.5 wihtout rocking my exisitng
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;installs says Yes.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;The person in me that likes consistency and ease of upgrade says No.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;So I guess we could say its possible to hack your PostGIS into a mutant
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;1.3/1.5 or 1.4/1.5 install but we don't support it.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;Thanks,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;Regina
&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;_______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;postgis-devel 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=26462247&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;postgis.refractions.net/mailman/listinfo/postgis-devel
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26462247&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26462247&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Distance-patch-tp26459186p26462247.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26462234</id>
	<title>Re: Distance patch</title>
	<published>2009-11-21T17:59:31Z</published>
	<updated>2009-11-21T17:59:31Z</updated>
	<author>
		<name>Paul Ramsey-3</name>
	</author>
	<content type="html">This gives me the willies:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (thedl.distance == mode * MAXFLOAT)
&lt;br&gt;&lt;br&gt;At a minimum, reverse the test so that this is the test
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (thedl.distance &amp;lt; mode * MAXFLOAT)
&lt;br&gt;&lt;br&gt;P.
&lt;br&gt;&lt;br&gt;On Sat, Nov 21, 2009 at 5:46 PM, Nicklas Avén
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26462234&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nicklas.aven@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Now I have committed something for the empty geometries.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please take a look
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I use MAXFLOAT as startvalue when seeking mindistance. Is that ok?
&lt;br&gt;&amp;gt; then I check if mindistance still is MAXFLOAT after iterating through all
&lt;br&gt;&amp;gt; subgeometries, then it should return null. is that ok way of doing it?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I also check so no empty geometries will go into the calculations but just
&lt;br&gt;&amp;gt; be returned and not touching mindistance.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; st_distance, st_dwithin are now supposed to return according to the empty
&lt;br&gt;&amp;gt; geometry document.
&lt;br&gt;&amp;gt; st_max_distance and st_dfyllywithin should behave the same way as their
&lt;br&gt;&amp;gt; corresponding above.
&lt;br&gt;&amp;gt; st_shortestline, st_closestpoint and st_longestline should return null
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /Nicklas
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009-11-21 Nicklas Avén wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Sounds great
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm working on the empty geometry handling. Didn't have time earlier today
&lt;br&gt;&amp;gt; but should be done in some hours.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; About the timing I'm little supprized that the difference wasn't bigger. I
&lt;br&gt;&amp;gt; thought you would pass 10 times faster at maybe 30 aginst 30 vertexes. But
&lt;br&gt;&amp;gt; that also depends on how close to each other the geometries are. How many of
&lt;br&gt;&amp;gt; them getting overlapping bounding boxes and because of that uses the old
&lt;br&gt;&amp;gt; calculation. The new algoritm is more unpredictable in speed since it
&lt;br&gt;&amp;gt; depends on how the geometries is &amp;quot;seen&amp;quot; from each other.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Nicklas
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2009-11-21 Paragon Corporation wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Paul and Nicklas,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;The patch looks good to me. So if Nicklas is ready I would say its good
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; to
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;go in.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;Nicklas -- your subgeom change fixed the anomalies I started to notice
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; (with
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;my neig parcel dist checks). I tested on a wider
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;Distribution of geometries and they look fine. There are a few cases (not
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;sure the percentage since I have to have the query run for a while just
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; to
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;pick up one where the diff from old and new &amp;lt; 0.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;In the cases where it is the diff is about e-9 (worst case) to e-11. So
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;around the range when the floating precision artifacts cloud the numbers
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;anyway.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;Here are my test results using sample linestrings and polygons (these are
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;not multi though since the data that had a good mix didn't have multis)
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; The
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;n-n2 range are the number of points (so testing distance between lines of
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;10-20 points vs. polygons of 10-20 points).
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;-- (0-9, 5000 recs: new 312 ms, old 344 ms (they both fluctuate between
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;213ms and 625 ms so hard to tell which is faster)
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;-- (10-20, 5000 recs: new 344 ms, old: 750 ms)
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;-- (20-40, 5000 recs: new 359 ms, old: 2344 ms)
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;-- (41-50, 5000 recs: new 860 ms, old: 5609 ms)
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;-- (51-60, 5000 recs: new 1828 ms, old: 9984 ms)
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;-- (61-70, 5000 recs: new 1922 ms, old: 12657 ms)
&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;Regarding the other issue that Nicklas brought up about how to test these
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;things.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;I do find being able to run both a PostGIS 1.4 distance and PostGIS 1.5
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;distance in the same database very useful for testing. Its better than
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;defining a dist_old in postgis code because its one less thing we have to
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;remove and also doesn't run the risk of not being able to test old
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; behavior
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;that has changed because of core code base changes.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;As to whether this is useful in production to say run new PostGIS 1.5
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;functions you badly want and still maintain your PostGIS 1.3/1.4 -- Yes
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; and
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;No.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;The person in me that just wants a single feature (say faster dist or
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; better
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;distance spheroid functions) from say 1.5 wihtout rocking my exisitng
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;installs says Yes.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;The person in me that likes consistency and ease of upgrade says No.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;So I guess we could say its possible to hack your PostGIS into a mutant
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;1.3/1.5 or 1.4/1.5 install but we don't support it.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;Thanks,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;Regina
&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;_______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;postgis-devel 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=26462234&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;postgis.refractions.net/mailman/listinfo/postgis-devel
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26462234&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26462234&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Distance-patch-tp26459186p26462234.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26462173</id>
	<title>Re: Distance patch</title>
	<published>2009-11-21T17:46:51Z</published>
	<updated>2009-11-21T17:46:51Z</updated>
	<author>
		<name>Nicklas Avén</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;&lt;/title&gt;
	
&lt;meta name=&quot;GENERATOR&quot; content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/meta&gt;
	
&lt;meta name=&quot;SKYPE_FRAMEID&quot; content=&quot;HBROAMAKDT&quot;&gt;&lt;/meta&gt;
	
&lt;meta id=&quot;skype_v3_tb_marker_id&quot; name=&quot;SKYPE_PARSING_HAS_FINISHED&quot; content=&quot;metacontent&quot;&gt;&lt;/meta&gt;
&lt;/head&gt;

&lt;body&gt;Now I have committed something for the empty geometries.
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;Please take a look&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;I use MAXFLOAT as startvalue when seeking mindistance. Is that ok?&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;then I check if mindistance still is MAXFLOAT after iterating through all subgeometries, then it should return null. is that ok way of doing it?&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;I also check so no empty geometries will go into the calculations but just be returned and not touching mindistance.&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;st_distance, st_dwithin&amp;nbsp;are now supposed to return according to the empty geometry document.&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;st_max_distance and st_dfyllywithin should behave the same way as their corresponding above.&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;st_shortestline, st_closestpoint and st_longestline should return null&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;/Nicklas&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&lt;br /&gt;
		&lt;br /&gt;
		2009-11-21 Nicklas Av&amp;eacute;n wrote:&lt;br /&gt;
		&lt;br /&gt;
		&gt;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;Sounds great&lt;/div&gt;&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;&gt;
	
&lt;div align=&quot;left&quot;&gt;I'm working on the empty geometry handling. Didn't have time earlier today but should be done in some hours.&lt;/div&gt;&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;&gt;
	
&lt;div align=&quot;left&quot;&gt;About the timing I'm little supprized that the difference wasn't bigger. I thought you would pass 10 times faster at maybe 30 aginst 30 vertexes. But that also depends on how close to each other the geometries are. How many of them getting overlapping bounding boxes and because of that uses the old calculation. The new algoritm is more unpredictable in speed since it depends on how the geometries is &quot;seen&quot; from each other.&lt;/div&gt;&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;&gt;
	
&lt;div align=&quot;left&quot;&gt;Thanks&lt;/div&gt;&gt;
	
&lt;div align=&quot;left&quot;&gt;Nicklas&lt;/div&gt;&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;&gt;
	
&lt;div align=&quot;left&quot;&gt;&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt; 2009-11-21 Paragon Corporation wrote:&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt; Paul and Nicklas,&lt;br /&gt;
		&gt; &gt;The patch looks good to me. So if Nicklas is ready I would say its good to&lt;br /&gt;
		&gt; &gt;go in.&lt;br /&gt;
		&gt; &gt;&lt;br /&gt;
		&gt; &gt;Nicklas -- your subgeom change fixed the anomalies I started to notice (with&lt;br /&gt;
		&gt; &gt;my neig parcel dist checks). I tested on a wider&lt;br /&gt;
		&gt; &gt;Distribution of geometries and they look fine. There are a few cases (not&lt;br /&gt;
		&gt; &gt;sure the percentage since I have to have the query run for a while just to&lt;br /&gt;
		&gt; &gt;pick up one where the diff from old and new &amp;lt; 0.&lt;br /&gt;
		&gt; &gt;&lt;br /&gt;
		&gt; &gt;In the cases where it is the diff is about e-9 (worst case) to e-11. So&lt;br /&gt;
		&gt; &gt;around the range when the floating precision artifacts cloud the numbers&lt;br /&gt;
		&gt; &gt;anyway.&lt;br /&gt;
		&gt; &gt;&lt;br /&gt;
		&gt; &gt;Here are my test results using sample linestrings and polygons (these are&lt;br /&gt;
		&gt; &gt;not multi though since the data that had a good mix didn't have multis) The&lt;br /&gt;
		&gt; &gt;n-n2 range are the number of points (so testing distance between lines of&lt;br /&gt;
		&gt; &gt;10-20 points vs. polygons of 10-20 points). &lt;br /&gt;
		&gt; &gt;&lt;br /&gt;
		&gt; &gt;-- (0-9, 5000 recs: new 312 ms, old 344 ms (they both fluctuate between&lt;br /&gt;
		&gt; &gt;213ms and 625 ms so hard to tell which is faster)&lt;br /&gt;
		&gt; &gt;-- (10-20, 5000 recs: new 344 ms, old: 750 ms)&lt;br /&gt;
		&gt; &gt;-- (20-40, 5000 recs: new 359 ms, old: 2344 ms)&lt;br /&gt;
		&gt; &gt;-- (41-50, 5000 recs: new 860 ms, old: 5609 ms)&lt;br /&gt;
		&gt; &gt;-- (51-60, 5000 recs: new 1828 ms, old: 9984 ms)&lt;br /&gt;
		&gt; &gt;-- (61-70, 5000 recs: new 1922 ms, old: 12657 ms)&lt;br /&gt;
		&gt; &gt;&lt;br /&gt;
		&gt; &gt;&lt;br /&gt;
		&gt; &gt;Regarding the other issue that Nicklas brought up about how to test these&lt;br /&gt;
		&gt; &gt;things.&lt;br /&gt;
		&gt; &gt;I do find being able to run both a PostGIS 1.4 distance and PostGIS 1.5&lt;br /&gt;
		&gt; &gt;distance in the same database very useful for testing. Its better than&lt;br /&gt;
		&gt; &gt;defining a dist_old in postgis code because its one less thing we have to&lt;br /&gt;
		&gt; &gt;remove and also doesn't run the risk of not being able to test old behavior&lt;br /&gt;
		&gt; &gt;that has changed because of core code base changes.&lt;br /&gt;
		&gt; &gt;&lt;br /&gt;
		&gt; &gt;As to whether this is useful in production to say run new PostGIS 1.5&lt;br /&gt;
		&gt; &gt;functions you badly want and still maintain your PostGIS 1.3/1.4 -- Yes and&lt;br /&gt;
		&gt; &gt;No.&lt;br /&gt;
		&gt; &gt;&lt;br /&gt;
		&gt; &gt;The person in me that just wants a single feature (say faster dist or better&lt;br /&gt;
		&gt; &gt;distance spheroid functions) from say 1.5 wihtout rocking my exisitng&lt;br /&gt;
		&gt; &gt;installs says Yes.&lt;br /&gt;
		&gt; &gt;The person in me that likes consistency and ease of upgrade says No. &lt;br /&gt;
		&gt; &gt;&lt;br /&gt;
		&gt; &gt;So I guess we could say its possible to hack your PostGIS into a mutant&lt;br /&gt;
		&gt; &gt;1.3/1.5 or 1.4/1.5 install but we don't support it.&lt;br /&gt;
		&gt; &gt;&lt;br /&gt;
		&gt; &gt;Thanks,&lt;br /&gt;
		&gt; &gt;Regina&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-devel mailing list&lt;br /&gt;
		&gt; &gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26462173&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt; &gt;postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt; &gt;&lt;br /&gt;
		&gt; &gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26462173&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Distance-patch-tp26459186p26462173.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26462129</id>
	<title>IRC</title>
	<published>2009-11-21T17:35:35Z</published>
	<updated>2009-11-21T17:35:35Z</updated>
	<author>
		<name>Paul Ramsey-4</name>
	</author>
	<content type="html">BTW, IRC is always open for techtalk: irc://irc.freenode.net/postgis &amp;nbsp;(Nick!)
&lt;br&gt;&lt;br&gt;P
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26462129&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/IRC-tp26462129p26462129.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26461872</id>
	<title>Re: short question</title>
	<published>2009-11-21T16:42:00Z</published>
	<updated>2009-11-21T16:42:00Z</updated>
	<author>
		<name>Paul Ramsey-3</name>
	</author>
	<content type="html">I don't think you should be returning EMPTY in any of your functions,
&lt;br&gt;I think NULL is a reasonable return value for
&lt;br&gt;st_shortestline(empty,empty).
&lt;br&gt;&lt;br&gt;P
&lt;br&gt;&lt;br&gt;On Sat, Nov 21, 2009 at 4:32 PM, Nicklas Avén
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461872&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nicklas.aven@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; My first post was just about how to move the information internally that an
&lt;br&gt;&amp;gt; empty geometry should be returned, from my function lw_dist2d_distanceline
&lt;br&gt;&amp;gt; in measures.c to function LWGEOM_shortestline2d in lwgeom_functions_basic,
&lt;br&gt;&amp;gt; when the expected return is LWLINE
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But I have realised that the thing is a little bit bigger because I out to
&lt;br&gt;&amp;gt; return the right type externally too.
&lt;br&gt;&amp;gt; Otherwise it will violate constraints if people tries to put the result in a
&lt;br&gt;&amp;gt; table.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is this solved in other functions like st_union or st_difference?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /Nicklas
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009-11-22 Paul Ramsey wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You are constructing empty geometries? Why? (Or is this a question of
&lt;br&gt;&amp;gt;&amp;gt;curiosity?)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;From an API PoV we should probably make some functions to do this, but
&lt;br&gt;&amp;gt;&amp;gt;the details are, generally, an LWGEOM with a POINTARRAY that has
&lt;br&gt;&amp;gt;&amp;gt;npoints = 0. Or, for collections, a collection with ngeoms = 0. I
&lt;br&gt;&amp;gt;&amp;gt;believe I also consider LWGEOMs with a null POINTARRAY or a null
&lt;br&gt;&amp;gt;&amp;gt;**geoms to be empty, but I'd have to confirm. The exact way of
&lt;br&gt;&amp;gt;&amp;gt;representing empty things was never fully documented
&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;On Sat, Nov 21, 2009 at 4:13 PM, Nicklas Avén
&lt;br&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; OK
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; But what to send as empty when LWLINE or LWPOINT is wanted, not
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; LWCOLLECTION.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; internally I mean.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; /Nicklas
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009-11-22 Paul Ramsey wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; No, bad idea. Empty geometries have a type. There's 'POLYGON EMPTY',
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;'LINESTRING EMPTY', etc, etc, etc.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;P.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;On Sat, Nov 21, 2009 at 2:04 PM, Nicklas Avén
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; is type 0 for LWGEOM occupied by anything or could it be an idea to use
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; it
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; for empty geometries.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Then it would be easy to create any emtpy geometry. Like a generic
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; empty
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; geometry.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Or is there another way that I have missed.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; When I have identified the empty geometries, in shortestline and it
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; buddies
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I need to communicate that an empty geometry should be returned and the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; datatype is LWLINE and LWPOINT for st_closestpoint. I'm tempted to just
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; make
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; an LWGEOM with type 0. Is it a bad idea.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; #define EMPTY 0
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; #define POINTTYPE 1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; #define LINETYPE 2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; #define POLYGONTYPE 3
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; and so on
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; /Nicklas
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; postgis-devel mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461872&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;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-devel 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=26461872&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&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-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&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; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; postgis-devel 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=26461872&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&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-devel mailing list
&lt;br&gt;&amp;gt;&amp;gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461872&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461872&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461872&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/short-question-tp26460783p26461872.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26461822</id>
	<title>Re: short question</title>
	<published>2009-11-21T16:32:04Z</published>
	<updated>2009-11-21T16:32:04Z</updated>
	<author>
		<name>Nicklas Avén</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;&lt;/title&gt;
	
&lt;meta name=&quot;GENERATOR&quot; content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/meta&gt;
	
&lt;meta name=&quot;SKYPE_FRAMEID&quot; content=&quot;UKSDOXEVME&quot;&gt;&lt;/meta&gt;
	
&lt;meta id=&quot;skype_v3_tb_marker_id&quot; name=&quot;SKYPE_PARSING_HAS_FINISHED&quot; content=&quot;metacontent&quot;&gt;&lt;/meta&gt;
&lt;/head&gt;

&lt;body&gt;
	
&lt;div align=&quot;left&quot;&gt;My first post was just about how to move the information internally that an empty geometry should be returned, from my function lw_dist2d_distanceline in measures.c to function LWGEOM_shortestline2d in lwgeom_functions_basic, when the expected return is LWLINE&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;But I have realised that the thing is a little bit bigger because I out to return the right type externally too.&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;Otherwise it will violate constraints if people tries to put the result in a table.&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;Is this solved in other functions like st_union or st_difference?&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;/Nicklas&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&lt;br /&gt;
		&lt;br /&gt;
		2009-11-22 Paul Ramsey wrote:&lt;br /&gt;
		&lt;br /&gt;
		You are constructing empty geometries? Why? (Or is this a question of&lt;br /&gt;
		&gt;curiosity?)&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;From an API PoV we should probably make some functions to do this, but&lt;br /&gt;
		&gt;the details are, generally, an LWGEOM with a POINTARRAY that has&lt;br /&gt;
		&gt;npoints = 0. Or, for collections, a collection with ngeoms = 0. I&lt;br /&gt;
		&gt;believe I also consider LWGEOMs with a null POINTARRAY or a null&lt;br /&gt;
		&gt;**geoms to be empty, but I'd have to confirm. The exact way of&lt;br /&gt;
		&gt;representing empty things was never fully documented&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;P.&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;On Sat, Nov 21, 2009 at 4:13 PM, Nicklas Av&amp;eacute;n&lt;br /&gt;
		&gt;
		&lt;nicklas.aven@jordogskog.no&gt;&lt;/nicklas.aven@jordogskog.no&gt; wrote:&lt;br /&gt;
		&gt;&gt; OK&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; But what to send as empty when LWLINE or LWPOINT is wanted, not&lt;br /&gt;
		&gt;&gt; LWCOLLECTION.&lt;br /&gt;
		&gt;&gt; internally I mean.&lt;br /&gt;
		&gt;&gt; /Nicklas&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; 2009-11-22 Paul Ramsey wrote:&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; No, bad idea. Empty geometries have a type. There's 'POLYGON EMPTY',&lt;br /&gt;
		&gt;&gt;&gt;'LINESTRING EMPTY', etc, etc, etc.&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;P.&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;On Sat, Nov 21, 2009 at 2:04 PM, Nicklas Av&amp;eacute;n&lt;br /&gt;
		&gt;&gt;&gt; wrote:&lt;br /&gt;
		&gt;&gt;&gt;&gt; is type 0 for LWGEOM occupied by anything or could it be an idea to use&lt;br /&gt;
		&gt;&gt;&gt;&gt; it&lt;br /&gt;
		&gt;&gt;&gt;&gt; for empty geometries.&lt;br /&gt;
		&gt;&gt;&gt;&gt; Then it would be easy to create any emtpy geometry. Like a generic empty&lt;br /&gt;
		&gt;&gt;&gt;&gt; geometry.&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; Or is there another way that I have missed.&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; When I have identified the empty geometries, in shortestline and it&lt;br /&gt;
		&gt;&gt;&gt;&gt; buddies&lt;br /&gt;
		&gt;&gt;&gt;&gt; I need to communicate that an empty geometry should be returned and the&lt;br /&gt;
		&gt;&gt;&gt;&gt; datatype is LWLINE and LWPOINT for st_closestpoint. I'm tempted to just&lt;br /&gt;
		&gt;&gt;&gt;&gt; make&lt;br /&gt;
		&gt;&gt;&gt;&gt; an LWGEOM with type 0. Is it a bad idea.&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; #define&amp;nbsp;EMPTY 0&lt;br /&gt;
		&gt;&gt;&gt;&gt; #define&amp;nbsp;POINTTYPE&amp;nbsp;1&lt;br /&gt;
		&gt;&gt;&gt;&gt; #define&amp;nbsp;LINETYPE&amp;nbsp;2&lt;br /&gt;
		&gt;&gt;&gt;&gt; #define&amp;nbsp;POLYGONTYPE&amp;nbsp;3&lt;br /&gt;
		&gt;&gt;&gt;&gt; and so on&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; /Nicklas&lt;br /&gt;
		&gt;&gt;&gt;&gt; _______________________________________________&lt;br /&gt;
		&gt;&gt;&gt;&gt; postgis-devel mailing list&lt;br /&gt;
		&gt;&gt;&gt;&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461822&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt; http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;_______________________________________________&lt;br /&gt;
		&gt;&gt;&gt;postgis-devel mailing list&lt;br /&gt;
		&gt;&gt;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461822&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;&gt;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt;&gt;&lt;br /&gt;
		&gt;&gt; _______________________________________________&lt;br /&gt;
		&gt;&gt; postgis-devel mailing list&lt;br /&gt;
		&gt;&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461822&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;&gt; http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;_______________________________________________&lt;br /&gt;
		&gt;postgis-devel mailing list&lt;br /&gt;
		&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461822&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461822&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/short-question-tp26460783p26461822.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26461724</id>
	<title>Re: short question</title>
	<published>2009-11-21T16:16:40Z</published>
	<updated>2009-11-21T16:16:40Z</updated>
	<author>
		<name>Paul Ramsey-3</name>
	</author>
	<content type="html">You are constructing empty geometries? Why? (Or is this a question of
&lt;br&gt;curiosity?)
&lt;br&gt;&lt;br&gt;From an API PoV we should probably make some functions to do this, but
&lt;br&gt;the details are, generally, an LWGEOM with a POINTARRAY that has
&lt;br&gt;npoints = 0. Or, for collections, a collection with ngeoms = 0. I
&lt;br&gt;believe I also consider LWGEOMs with a null POINTARRAY or a null
&lt;br&gt;**geoms to be empty, but I'd have to confirm. The exact way of
&lt;br&gt;representing empty things was never fully documented
&lt;br&gt;&lt;br&gt;P.
&lt;br&gt;&lt;br&gt;On Sat, Nov 21, 2009 at 4:13 PM, Nicklas Avén
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461724&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nicklas.aven@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; OK
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But what to send as empty when LWLINE or LWPOINT is wanted, not
&lt;br&gt;&amp;gt; LWCOLLECTION.
&lt;br&gt;&amp;gt; internally I mean.
&lt;br&gt;&amp;gt; /Nicklas
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009-11-22 Paul Ramsey wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; No, bad idea. Empty geometries have a type. There's 'POLYGON EMPTY',
&lt;br&gt;&amp;gt;&amp;gt;'LINESTRING EMPTY', etc, etc, etc.
&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;On Sat, Nov 21, 2009 at 2:04 PM, Nicklas Avén
&lt;br&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; is type 0 for LWGEOM occupied by anything or could it be an idea to use
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; it
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; for empty geometries.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Then it would be easy to create any emtpy geometry. Like a generic empty
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; geometry.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Or is there another way that I have missed.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; When I have identified the empty geometries, in shortestline and it
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; buddies
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I need to communicate that an empty geometry should be returned and the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; datatype is LWLINE and LWPOINT for st_closestpoint. I'm tempted to just
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; make
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; an LWGEOM with type 0. Is it a bad idea.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; #define EMPTY 0
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; #define POINTTYPE 1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; #define LINETYPE 2
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; #define POLYGONTYPE 3
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and so on
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; /Nicklas
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; postgis-devel 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=26461724&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&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-devel mailing list
&lt;br&gt;&amp;gt;&amp;gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461724&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461724&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461724&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/short-question-tp26460783p26461724.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26461709</id>
	<title>Re: short question</title>
	<published>2009-11-21T16:13:17Z</published>
	<updated>2009-11-21T16:13:17Z</updated>
	<author>
		<name>Nicklas Avén</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;&lt;/title&gt;
	
&lt;meta name=&quot;GENERATOR&quot; content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/meta&gt;
	
&lt;meta name=&quot;SKYPE_FRAMEID&quot; content=&quot;HBROAMAKDT&quot;&gt;&lt;/meta&gt;
	
&lt;meta id=&quot;skype_v3_tb_marker_id&quot; name=&quot;SKYPE_PARSING_HAS_FINISHED&quot; content=&quot;metacontent&quot;&gt;&lt;/meta&gt;
&lt;/head&gt;

&lt;body&gt;OK
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;But what to send as empty when LWLINE or LWPOINT is wanted, not LWCOLLECTION.&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;internally I mean. &lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;/Nicklas&lt;br /&gt;
		&lt;br /&gt;
		2009-11-22 Paul Ramsey wrote:&lt;br /&gt;
		&lt;br /&gt;
		No, bad idea. Empty geometries have a type. There's 'POLYGON EMPTY',&lt;br /&gt;
		&gt;'LINESTRING EMPTY', etc, etc, etc.&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;P.&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;On Sat, Nov 21, 2009 at 2:04 PM, Nicklas Av&amp;eacute;n&lt;br /&gt;
		&gt;
		&lt;nicklas.aven@jordogskog.no&gt;&lt;/nicklas.aven@jordogskog.no&gt; wrote:&lt;br /&gt;
		&gt;&gt; is type 0 for LWGEOM occupied by anything or could it be an idea to use it&lt;br /&gt;
		&gt;&gt; for empty geometries.&lt;br /&gt;
		&gt;&gt; Then it would be easy to create any emtpy geometry. Like a generic empty&lt;br /&gt;
		&gt;&gt; geometry.&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; Or is there another way that I have missed.&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; When I have identified the empty geometries, in shortestline and it buddies&lt;br /&gt;
		&gt;&gt; I need to communicate that an empty geometry should be returned and the&lt;br /&gt;
		&gt;&gt; datatype is LWLINE and LWPOINT for st_closestpoint. I'm tempted to just make&lt;br /&gt;
		&gt;&gt; an LWGEOM with type 0. Is it a bad idea.&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; #define&amp;nbsp;EMPTY 0&lt;br /&gt;
		&gt;&gt; #define&amp;nbsp;POINTTYPE&amp;nbsp;1&lt;br /&gt;
		&gt;&gt; #define&amp;nbsp;LINETYPE&amp;nbsp;2&lt;br /&gt;
		&gt;&gt; #define&amp;nbsp;POLYGONTYPE&amp;nbsp;3&lt;br /&gt;
		&gt;&gt; and so on&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt; /Nicklas&lt;br /&gt;
		&gt;&gt; _______________________________________________&lt;br /&gt;
		&gt;&gt; postgis-devel mailing list&lt;br /&gt;
		&gt;&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461709&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;&gt; http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;&gt;&lt;br /&gt;
		&gt;_______________________________________________&lt;br /&gt;
		&gt;postgis-devel mailing list&lt;br /&gt;
		&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461709&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461709&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/short-question-tp26460783p26461709.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26461688</id>
	<title>Re: short question</title>
	<published>2009-11-21T16:08:22Z</published>
	<updated>2009-11-21T16:08:22Z</updated>
	<author>
		<name>Paul Ramsey-3</name>
	</author>
	<content type="html">No, bad idea. Empty geometries have a type. There's 'POLYGON EMPTY',
&lt;br&gt;'LINESTRING EMPTY', etc, etc, etc.
&lt;br&gt;&lt;br&gt;P.
&lt;br&gt;&lt;br&gt;On Sat, Nov 21, 2009 at 2:04 PM, Nicklas Avén
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461688&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nicklas.aven@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; is type 0 for LWGEOM occupied by anything or could it be an idea to use it
&lt;br&gt;&amp;gt; for empty geometries.
&lt;br&gt;&amp;gt; Then it would be easy to create any emtpy geometry. Like a generic empty
&lt;br&gt;&amp;gt; geometry.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Or is there another way that I have missed.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When I have identified the empty geometries, in shortestline and it buddies
&lt;br&gt;&amp;gt; I need to communicate that an empty geometry should be returned and the
&lt;br&gt;&amp;gt; datatype is LWLINE and LWPOINT for st_closestpoint. I'm tempted to just make
&lt;br&gt;&amp;gt; an LWGEOM with type 0. Is it a bad idea.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #define EMPTY 0
&lt;br&gt;&amp;gt; #define POINTTYPE 1
&lt;br&gt;&amp;gt; #define LINETYPE 2
&lt;br&gt;&amp;gt; #define POLYGONTYPE 3
&lt;br&gt;&amp;gt; and so on
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /Nicklas
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461688&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461688&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/short-question-tp26460783p26461688.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26460783</id>
	<title>short question</title>
	<published>2009-11-21T14:04:18Z</published>
	<updated>2009-11-21T14:04:18Z</updated>
	<author>
		<name>Nicklas Avén</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;&lt;/title&gt;
	
&lt;meta name=&quot;GENERATOR&quot; content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/meta&gt;
	
&lt;meta name=&quot;SKYPE_FRAMEID&quot; content=&quot;WAXKGQBHBH&quot;&gt;&lt;/meta&gt;
	
&lt;meta id=&quot;skype_v3_tb_marker_id&quot; name=&quot;SKYPE_PARSING_HAS_FINISHED&quot; content=&quot;metacontent&quot;&gt;&lt;/meta&gt;
&lt;/head&gt;

&lt;body&gt;
	
&lt;div&gt;is type 0 for LWGEOM occupied by anything or could it be an idea to use it for empty geometries. &lt;/div&gt;
	
&lt;div&gt;Then it would be easy to create any emtpy geometry. Like a generic empty geometry.&lt;/div&gt;
	
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div&gt;Or is there another way that I have missed.&lt;/div&gt;
	
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div&gt;When I have identified the empty geometries, in shortestline and it buddies I need to communicate that an empty geometry should be returned and the datatype is LWLINE and LWPOINT for st_closestpoint. I'm tempted to just make an LWGEOM with type 0. Is it a bad idea. &lt;/div&gt;
	
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div&gt;#define&amp;nbsp;EMPTY 0&lt;/div&gt;
	
&lt;div&gt;#define&amp;nbsp;POINTTYPE&amp;nbsp;1&lt;br /&gt;
		#define&amp;nbsp;LINETYPE&amp;nbsp;2&lt;br /&gt;
		#define&amp;nbsp;POLYGONTYPE&amp;nbsp;3&lt;/div&gt;
	
&lt;div&gt;and so on&lt;/div&gt;
	
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div&gt;/Nicklas&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26460783&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/short-question-tp26460783p26460783.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26459349</id>
	<title>Re: Distance patch</title>
	<published>2009-11-21T11:03:39Z</published>
	<updated>2009-11-21T11:03:39Z</updated>
	<author>
		<name>Nicklas Avén</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;&lt;/title&gt;
	
&lt;meta name=&quot;GENERATOR&quot; content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/meta&gt;
	
&lt;meta name=&quot;SKYPE_FRAMEID&quot; content=&quot;HBROAMAKDT&quot;&gt;&lt;/meta&gt;
	
&lt;meta id=&quot;skype_v3_tb_marker_id&quot; name=&quot;SKYPE_PARSING_HAS_FINISHED&quot; content=&quot;metacontent&quot;&gt;&lt;/meta&gt;
&lt;/head&gt;

&lt;body&gt;
	
&lt;div align=&quot;left&quot;&gt;Sounds great&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;I'm working on the empty geometry handling. Didn't have time earlier today but should be done in some hours.&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;About the timing I'm little supprized that the difference wasn't bigger. I thought you would pass 10 times faster at maybe 30 aginst 30 vertexes. But that also depends on how close to each other the geometries are. How many of them getting overlapping bounding boxes and because of that uses the old calculation. The new algoritm is more unpredictable in speed since it depends on how the geometries is &quot;seen&quot; from each other.&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;Thanks&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;Nicklas&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div align=&quot;left&quot;&gt;&lt;br /&gt;
		&lt;br /&gt;
		2009-11-21 Paragon Corporation wrote:&lt;br /&gt;
		&lt;br /&gt;
		Paul and Nicklas,&lt;br /&gt;
		&gt;The patch looks good to me. So if Nicklas is ready I would say its good to&lt;br /&gt;
		&gt;go in.&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;Nicklas -- your subgeom change fixed the anomalies I started to notice (with&lt;br /&gt;
		&gt;my neig parcel dist checks). I tested on a wider&lt;br /&gt;
		&gt;Distribution of geometries and they look fine. There are a few cases (not&lt;br /&gt;
		&gt;sure the percentage since I have to have the query run for a while just to&lt;br /&gt;
		&gt;pick up one where the diff from old and new &amp;lt; 0.&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;In the cases where it is the diff is about e-9 (worst case) to e-11. So&lt;br /&gt;
		&gt;around the range when the floating precision artifacts cloud the numbers&lt;br /&gt;
		&gt;anyway.&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;Here are my test results using sample linestrings and polygons (these are&lt;br /&gt;
		&gt;not multi though since the data that had a good mix didn't have multis) The&lt;br /&gt;
		&gt;n-n2 range are the number of points (so testing distance between lines of&lt;br /&gt;
		&gt;10-20 points vs. polygons of 10-20 points). &lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;-- (0-9, 5000 recs: new 312 ms, old 344 ms (they both fluctuate between&lt;br /&gt;
		&gt;213ms and 625 ms so hard to tell which is faster)&lt;br /&gt;
		&gt;-- (10-20, 5000 recs: new 344 ms, old: 750 ms)&lt;br /&gt;
		&gt;-- (20-40, 5000 recs: new 359 ms, old: 2344 ms)&lt;br /&gt;
		&gt;-- (41-50, 5000 recs: new 860 ms, old: 5609 ms)&lt;br /&gt;
		&gt;-- (51-60, 5000 recs: new 1828 ms, old: 9984 ms)&lt;br /&gt;
		&gt;-- (61-70, 5000 recs: new 1922 ms, old: 12657 ms)&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;Regarding the other issue that Nicklas brought up about how to test these&lt;br /&gt;
		&gt;things.&lt;br /&gt;
		&gt;I do find being able to run both a PostGIS 1.4 distance and PostGIS 1.5&lt;br /&gt;
		&gt;distance in the same database very useful for testing. Its better than&lt;br /&gt;
		&gt;defining a dist_old in postgis code because its one less thing we have to&lt;br /&gt;
		&gt;remove and also doesn't run the risk of not being able to test old behavior&lt;br /&gt;
		&gt;that has changed because of core code base changes.&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;As to whether this is useful in production to say run new PostGIS 1.5&lt;br /&gt;
		&gt;functions you badly want and still maintain your PostGIS 1.3/1.4 -- Yes and&lt;br /&gt;
		&gt;No.&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;The person in me that just wants a single feature (say faster dist or better&lt;br /&gt;
		&gt;distance spheroid functions) from say 1.5 wihtout rocking my exisitng&lt;br /&gt;
		&gt;installs says Yes.&lt;br /&gt;
		&gt;The person in me that likes consistency and ease of upgrade says No. &lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;So I guess we could say its possible to hack your PostGIS into a mutant&lt;br /&gt;
		&gt;1.3/1.5 or 1.4/1.5 install but we don't support it.&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;Thanks,&lt;br /&gt;
		&gt;Regina&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;_______________________________________________&lt;br /&gt;
		&gt;postgis-devel mailing list&lt;br /&gt;
		&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26459349&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26459349&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Distance-patch-tp26459186p26459349.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26459280</id>
	<title>Distance ST_DWithin</title>
	<published>2009-11-21T10:54:39Z</published>
	<updated>2009-11-21T10:54:39Z</updated>
	<author>
		<name>Paragon Corporation-2</name>
	</author>
	<content type="html">Forgot to add -- I did test ST_Dwithin as well. &amp;nbsp;I wasn't so much concerned
&lt;br&gt;about speed as to make sure counts were the same. &amp;nbsp; So I pulled some queries
&lt;br&gt;from my log files and tested with the old and new to verify the counts of
&lt;br&gt;records returned the same and they did.
&lt;br&gt;&lt;br&gt;I'll try to put together a test suite that doesn't require data, but it will
&lt;br&gt;be easier to do once the patch is in so I don't have to forgoet which
&lt;br&gt;postgis-1.5 I'm currently running.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Regina
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26459280&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Distance-ST_DWithin-tp26459280p26459280.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26459231</id>
	<title>Re: Distance patch</title>
	<published>2009-11-21T10:49:43Z</published>
	<updated>2009-11-21T10:49:43Z</updated>
	<author>
		<name>Paul Ramsey-3</name>
	</author>
	<content type="html">Mark, if you're going to do a review, let me know, otherwise I'm going
&lt;br&gt;to proceed with the integration early this week.
&lt;br&gt;&lt;br&gt;P
&lt;br&gt;&lt;br&gt;On Sat, Nov 21, 2009 at 10:43 AM, Paragon Corporation &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26459231&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; Paul and Nicklas,
&lt;br&gt;&amp;gt; The patch looks good to me.  So if Nicklas is ready I would say its good to
&lt;br&gt;&amp;gt; go in.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Nicklas -- your subgeom change fixed the anomalies I started to notice (with
&lt;br&gt;&amp;gt; my neig parcel dist checks).  I tested on a wider
&lt;br&gt;&amp;gt; Distribution of geometries and they look fine.  There are a few cases (not
&lt;br&gt;&amp;gt; sure the percentage since I have to have the query run for a while just to
&lt;br&gt;&amp;gt; pick up one where the diff from old and new &amp;lt; 0.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In the cases where it is the diff is about e-9 (worst case)  to e-11.  So
&lt;br&gt;&amp;gt; around the range when the floating precision artifacts cloud the numbers
&lt;br&gt;&amp;gt; anyway.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here are my test results using sample linestrings and polygons (these are
&lt;br&gt;&amp;gt; not multi though since the data that had a good mix didn't have multis) The
&lt;br&gt;&amp;gt; n-n2 range are the number of points (so testing distance between lines of
&lt;br&gt;&amp;gt; 10-20 points vs. polygons of 10-20 points).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- (0-9, 5000 recs: new 312 ms, old 344 ms (they both fluctuate between
&lt;br&gt;&amp;gt; 213ms and 625 ms so hard to tell which is faster)
&lt;br&gt;&amp;gt; -- (10-20, 5000 recs: new 344 ms, old: 750 ms)
&lt;br&gt;&amp;gt; -- (20-40, 5000 recs: new 359  ms, old: 2344 ms)
&lt;br&gt;&amp;gt; -- (41-50, 5000 recs: new 860  ms, old: 5609 ms)
&lt;br&gt;&amp;gt; -- (51-60, 5000 recs: new 1828  ms, old: 9984 ms)
&lt;br&gt;&amp;gt; -- (61-70, 5000 recs: new 1922  ms, old: 12657 ms)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regarding the other issue that Nicklas brought up about how to test these
&lt;br&gt;&amp;gt; things.
&lt;br&gt;&amp;gt; I do find being able to run both a PostGIS 1.4 distance and PostGIS 1.5
&lt;br&gt;&amp;gt; distance in the same database very useful for testing. Its better than
&lt;br&gt;&amp;gt; defining a dist_old in postgis code because its one less thing we have to
&lt;br&gt;&amp;gt; remove and also doesn't run the risk of not being able to test old behavior
&lt;br&gt;&amp;gt; that has changed because of core code base changes.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As to whether this is useful in production to say run new PostGIS 1.5
&lt;br&gt;&amp;gt; functions you badly want and still maintain your PostGIS 1.3/1.4 -- Yes and
&lt;br&gt;&amp;gt; No.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The person in me that just wants a single feature (say faster dist or better
&lt;br&gt;&amp;gt; distance spheroid functions) from say 1.5 wihtout rocking my exisitng
&lt;br&gt;&amp;gt; installs says Yes.
&lt;br&gt;&amp;gt; The person in me that likes consistency and ease  of upgrade says No.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So I guess we could say its possible to hack your PostGIS into a mutant
&lt;br&gt;&amp;gt; 1.3/1.5 or 1.4/1.5 install but we don't support it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Regina
&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-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26459231&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26459231&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Distance-patch-tp26459186p26459231.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26459186</id>
	<title>Distance patch</title>
	<published>2009-11-21T10:43:59Z</published>
	<updated>2009-11-21T10:43:59Z</updated>
	<author>
		<name>Paragon Corporation-2</name>
	</author>
	<content type="html">Paul and Nicklas,
&lt;br&gt;The patch looks good to me. &amp;nbsp;So if Nicklas is ready I would say its good to
&lt;br&gt;go in.
&lt;br&gt;&lt;br&gt;Nicklas -- your subgeom change fixed the anomalies I started to notice (with
&lt;br&gt;my neig parcel dist checks). &amp;nbsp;I tested on a wider
&lt;br&gt;Distribution of geometries and they look fine. &amp;nbsp;There are a few cases (not
&lt;br&gt;sure the percentage since I have to have the query run for a while just to
&lt;br&gt;pick up one where the diff from old and new &amp;lt; 0.
&lt;br&gt;&lt;br&gt;In the cases where it is the diff is about e-9 (worst case) &amp;nbsp;to e-11. &amp;nbsp;So
&lt;br&gt;around the range when the floating precision artifacts cloud the numbers
&lt;br&gt;anyway.
&lt;br&gt;&lt;br&gt;Here are my test results using sample linestrings and polygons (these are
&lt;br&gt;not multi though since the data that had a good mix didn't have multis) The
&lt;br&gt;n-n2 range are the number of points (so testing distance between lines of
&lt;br&gt;10-20 points vs. polygons of 10-20 points). &amp;nbsp;
&lt;br&gt;&lt;br&gt;-- (0-9, 5000 recs: new 312 ms, old 344 ms (they both fluctuate between
&lt;br&gt;213ms and 625 ms so hard to tell which is faster)
&lt;br&gt;-- (10-20, 5000 recs: new 344 ms, old: 750 ms)
&lt;br&gt;-- (20-40, 5000 recs: new 359 &amp;nbsp;ms, old: 2344 ms)
&lt;br&gt;-- (41-50, 5000 recs: new 860 &amp;nbsp;ms, old: 5609 ms)
&lt;br&gt;-- (51-60, 5000 recs: new 1828 &amp;nbsp;ms, old: 9984 ms)
&lt;br&gt;-- (61-70, 5000 recs: new 1922 &amp;nbsp;ms, old: 12657 ms)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Regarding the other issue that Nicklas brought up about how to test these
&lt;br&gt;things.
&lt;br&gt;I do find being able to run both a PostGIS 1.4 distance and PostGIS 1.5
&lt;br&gt;distance in the same database very useful for testing. Its better than
&lt;br&gt;defining a dist_old in postgis code because its one less thing we have to
&lt;br&gt;remove and also doesn't run the risk of not being able to test old behavior
&lt;br&gt;that has changed because of core code base changes.
&lt;br&gt;&lt;br&gt;As to whether this is useful in production to say run new PostGIS 1.5
&lt;br&gt;functions you badly want and still maintain your PostGIS 1.3/1.4 -- Yes and
&lt;br&gt;No.
&lt;br&gt;&lt;br&gt;The person in me that just wants a single feature (say faster dist or better
&lt;br&gt;distance spheroid functions) from say 1.5 wihtout rocking my exisitng
&lt;br&gt;installs says Yes.
&lt;br&gt;The person in me that likes consistency and ease &amp;nbsp;of upgrade says No. &amp;nbsp;
&lt;br&gt;&lt;br&gt;So I guess we could say its possible to hack your PostGIS into a mutant
&lt;br&gt;1.3/1.5 or 1.4/1.5 install but we don't support it.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Regina
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26459186&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Distance-patch-tp26459186p26459186.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26459091</id>
	<title>Re: [PostGIS] #315: Entity postgis_aggs_mm not defined</title>
	<published>2009-11-21T10:30:39Z</published>
	<updated>2009-11-21T10:30:39Z</updated>
	<author>
		<name>PostGIS-4</name>
	</author>
	<content type="html">#315: Entity postgis_aggs_mm not defined
&lt;br&gt;----------------------+-----------------------------------------------------
&lt;br&gt;&amp;nbsp; Reporter: &amp;nbsp;mloskot &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; Owner: &amp;nbsp;colivier &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Type: &amp;nbsp;defect &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;Status: &amp;nbsp;closed &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; Priority: &amp;nbsp;medium &amp;nbsp; | &amp;nbsp; Milestone: &amp;nbsp;PostGIS 1.5.0
&lt;br&gt;&amp;nbsp;Component: &amp;nbsp;postgis &amp;nbsp;| &amp;nbsp; &amp;nbsp; Version: &amp;nbsp;trunk &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;Resolution: &amp;nbsp;fixed &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;----------------------+-----------------------------------------------------
&lt;br&gt;Changes (by pramsey):
&lt;br&gt;&lt;br&gt;&amp;nbsp; * status: &amp;nbsp;new =&amp;gt; closed
&lt;br&gt;&amp;nbsp; * resolution: &amp;nbsp;=&amp;gt; fixed
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ticket URL: &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/ticket/315#comment:7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/ticket/315#comment:7&lt;/a&gt;&amp;gt;
&lt;br&gt;PostGIS &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/&lt;/a&gt;&amp;gt;
&lt;br&gt;The PostGIS Trac is used for bug, enhancement &amp;amp; task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26459091&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PostGIS---315%3A-Entity-postgis_aggs_mm-not-defined-tp26447227p26459091.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26458681</id>
	<title>Re: [PostGIS] #315: Entity postgis_aggs_mm not defined</title>
	<published>2009-11-21T09:46:20Z</published>
	<updated>2009-11-21T09:46:20Z</updated>
	<author>
		<name>PostGIS-4</name>
	</author>
	<content type="html">#315: Entity postgis_aggs_mm not defined
&lt;br&gt;----------------------+-----------------------------------------------------
&lt;br&gt;&amp;nbsp; Reporter: &amp;nbsp;mloskot &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; Owner: &amp;nbsp;colivier &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Type: &amp;nbsp;defect &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;Status: &amp;nbsp;new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; Priority: &amp;nbsp;medium &amp;nbsp; | &amp;nbsp; Milestone: &amp;nbsp;PostGIS 1.5.0
&lt;br&gt;&amp;nbsp;Component: &amp;nbsp;postgis &amp;nbsp;| &amp;nbsp; &amp;nbsp; Version: &amp;nbsp;trunk &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;Resolution: &amp;nbsp; &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;----------------------+-----------------------------------------------------
&lt;br&gt;Comment (by mloskot):
&lt;br&gt;&lt;br&gt;&amp;nbsp;Kevin, I've tested and I can confirm it's fixed for me. Thank you!
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ticket URL: &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/ticket/315#comment:6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/ticket/315#comment:6&lt;/a&gt;&amp;gt;
&lt;br&gt;PostGIS &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/&lt;/a&gt;&amp;gt;
&lt;br&gt;The PostGIS Trac is used for bug, enhancement &amp;amp; task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26458681&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PostGIS---315%3A-Entity-postgis_aggs_mm-not-defined-tp26447227p26458681.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26452468</id>
	<title>Re: Distance Merge</title>
	<published>2009-11-20T16:32:02Z</published>
	<updated>2009-11-20T16:32:02Z</updated>
	<author>
		<name>Paul Ramsey-3</name>
	</author>
	<content type="html">On Fri, Nov 20, 2009 at 1:51 PM, Nicklas Avén
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26452468&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nicklas.aven@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; what is not fixed is handling the empty geometries.
&lt;br&gt;&lt;br&gt;Detect with lwgeom_is_empty()
&lt;br&gt;&lt;br&gt;&amp;gt; I would like some suggestion or advice.
&lt;br&gt;&amp;gt; I have looked a little at the old code. It seems to return 0 at once there
&lt;br&gt;&amp;gt; is one empty geometry in a collection. Is that right behavior? or is it the
&lt;br&gt;&amp;gt; parser that defines this anyway?
&lt;br&gt;&lt;br&gt;The right behavior is defined here:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://trac.osgeo.org/postgis/wiki/DevWikiEmptyGeometry&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/wiki/DevWikiEmptyGeometry&lt;/a&gt;&lt;br&gt;&lt;br&gt;I am going to update that page a bit to reflect your question on
&lt;br&gt;collections -- if any part of the collection is non-empty, the
&lt;br&gt;distance is defined against that part. If it is all empty, the
&lt;br&gt;distance is NULL.
&lt;br&gt;&lt;br&gt;P.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; otherwise I think we can put it in trunk. If any bugs show I think they will
&lt;br&gt;&amp;gt; be quite easy to find.
&lt;br&gt;&amp;gt; If not Regina has seen any unstabilities?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt; Nicklas
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009-11-20 Paul Ramsey wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Nicklas, do you feel like your distance work is ready to merge?
&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-devel mailing list
&lt;br&gt;&amp;gt;&amp;gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26452468&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26452468&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26452468&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Distance-Merge-tp26448391p26452468.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26450859</id>
	<title>Re: Distance Merge</title>
	<published>2009-11-20T13:51:54Z</published>
	<updated>2009-11-20T13:51:54Z</updated>
	<author>
		<name>Nicklas Avén</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;&lt;/title&gt;
	
&lt;meta name=&quot;GENERATOR&quot; content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/meta&gt;
	
&lt;meta name=&quot;SKYPE_FRAMEID&quot; content=&quot;UKSDOXEVME&quot;&gt;&lt;/meta&gt;
	
&lt;meta id=&quot;skype_v3_tb_marker_id&quot; name=&quot;SKYPE_PARSING_HAS_FINISHED&quot; content=&quot;metacontent&quot;&gt;&lt;/meta&gt;
&lt;/head&gt;

&lt;body&gt;
	
&lt;div&gt;what is not fixed is handling the empty geometries.&lt;/div&gt;
	
&lt;div&gt;I would like some suggestion or advice. &lt;/div&gt;
	
&lt;div&gt;I have looked a little at the old code. It seems to return 0 at once there is one empty geometry in a collection. Is that right behavior? or is it the parser that defines this anyway?&lt;/div&gt;
	
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div&gt;otherwise I think we can put it in trunk. If any bugs show I think they will be quite easy to find. &lt;/div&gt;
	
&lt;div&gt;If not Regina has seen any unstabilities?&lt;/div&gt;
	
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div&gt;Thanks&lt;/div&gt;
	
&lt;div&gt;Nicklas&lt;/div&gt;
	
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
	
&lt;div&gt;2009-11-20 Paul Ramsey wrote:&lt;br /&gt;
		&lt;br /&gt;
		Nicklas, do you feel like your distance work is ready to merge?&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;P&lt;br /&gt;
		&gt;_______________________________________________&lt;br /&gt;
		&gt;postgis-devel mailing list&lt;br /&gt;
		&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26450859&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;&lt;br /&gt;
		&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;br /&gt;
		&gt;&lt;br /&gt;
		&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26450859&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Distance-Merge-tp26448391p26450859.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26449715</id>
	<title>Re: [PostGIS] #316: IsValid called on invalid 3d object leads to crash</title>
	<published>2009-11-20T12:23:20Z</published>
	<updated>2009-11-20T12:23:20Z</updated>
	<author>
		<name>PostGIS-4</name>
	</author>
	<content type="html">#316: IsValid called on invalid 3d object leads to crash
&lt;br&gt;----------------------+-----------------------------------------------------
&lt;br&gt;&amp;nbsp; Reporter: &amp;nbsp;pramsey &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; Owner: &amp;nbsp;pramsey &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Type: &amp;nbsp;defect &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;Status: &amp;nbsp;new &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; Priority: &amp;nbsp;medium &amp;nbsp; | &amp;nbsp; Milestone: &amp;nbsp;PostGIS 1.5.0
&lt;br&gt;&amp;nbsp;Component: &amp;nbsp;postgis &amp;nbsp;| &amp;nbsp; &amp;nbsp; Version: &amp;nbsp;trunk &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;Resolution: &amp;nbsp; &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;----------------------+-----------------------------------------------------
&lt;br&gt;Comment (by pramsey):
&lt;br&gt;&lt;br&gt;&amp;nbsp;I can make it crash differently by adding a redundant point (and thereby
&lt;br&gt;&amp;nbsp;passing through the minpoints test).
&lt;br&gt;&amp;nbsp;{{{
&lt;br&gt;&amp;nbsp;select 'POLYGON ((-97.78351581 36.37358796 1167.172,-97.78303556
&lt;br&gt;&amp;nbsp;36.37319923 1167.172,-97.78303556 36.37319923 1167.172,-98.88351581
&lt;br&gt;&amp;nbsp;38.37358796 1167.172))'::geometry;
&lt;br&gt;&amp;nbsp;}}}
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ticket URL: &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/ticket/316#comment:2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/ticket/316#comment:2&lt;/a&gt;&amp;gt;
&lt;br&gt;PostGIS &amp;lt;&lt;a href=&quot;http://trac.osgeo.org/postgis/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.osgeo.org/postgis/&lt;/a&gt;&amp;gt;
&lt;br&gt;The PostGIS Trac is used for bug, enhancement &amp;amp; task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
&lt;br&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26449715&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PostGIS---316%3A-IsValid-called-on-invalid-3d-object-leads-to-crash-tp26449103p26449715.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26449208</id>
	<title>Re: The Road to 1.5</title>
	<published>2009-11-20T11:43:15Z</published>
	<updated>2009-11-20T11:43:15Z</updated>
	<author>
		<name>Paul Ramsey-4</name>
	</author>
	<content type="html">It's not a platform thing, I'm building on OS/X and having no
&lt;br&gt;problems. Probably this &amp;quot;pkgsrc postgresql&amp;quot; of which you speak, which
&lt;br&gt;I am not familiar with.
&lt;br&gt;&lt;br&gt;P.
&lt;br&gt;&lt;br&gt;On Fri, Nov 20, 2009 at 11:34 AM, Greg Troxel &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26449208&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gdt@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  Hi Folks, as you can tell, I'm really jonesing to get a 1.5 release
&lt;br&gt;&amp;gt;  out, but the ticket list is increasingly not mine.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The build failed for me under mac os x 10.5.8, with pkgsrc postgresql.
&lt;br&gt;&amp;gt; Should I be filing a ticket about this?  Has anyone else built on a mac?
&lt;br&gt;&amp;gt; Is that a platform the failure of which should be considered a bug?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; postgis-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26449208&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;postgis-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26449208&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postgis-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://postgis.refractions.net/mailman/listinfo/postgis-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://postgis.refractions.net/mailman/listinfo/postgis-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/PostGIS---Dev-f1222.html&quot; embed=&quot;fixTarget[1222]&quot; target=&quot;_top&quot; &gt;PostGIS - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/The-Road-to-1.5-tp26448830p26449208.html" />
</entry>

</feed>
