<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP GIS Functions</title>
	<atom:link href="http://www.derivante.com/2009/04/14/php-gis-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.derivante.com/2009/04/14/php-gis-functions/</link>
	<description>to obtain or receive from a source</description>
	<lastBuildDate>Sat, 30 Jul 2011 08:51:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Arun</title>
		<link>http://www.derivante.com/2009/04/14/php-gis-functions/comment-page-1/#comment-411</link>
		<dc:creator>Arun</dc:creator>
		<pubDate>Tue, 16 Feb 2010 16:22:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=313#comment-411</guid>
		<description>1) True. I agree. My latlongs are very close  http://txtb.in/djf
results: your centroid: 
12.982224693774, 77.624733038687
mean centroid: 
12.982286543056, 77.624984548135

I haven&#039;t tested this manually yet. But I am supposed to get a latlong a bit northeast. 

I didn&#039;t get enough time to test it with other latlong sets. Will do it.</description>
		<content:encoded><![CDATA[<p>1) True. I agree. My latlongs are very close  <a href="http://txtb.in/djf" rel="nofollow">http://txtb.in/djf</a><br />
results: your centroid:<br />
12.982224693774, 77.624733038687<br />
mean centroid:<br />
12.982286543056, 77.624984548135</p>
<p>I haven&#8217;t tested this manually yet. But I am supposed to get a latlong a bit northeast. </p>
<p>I didn&#8217;t get enough time to test it with other latlong sets. Will do it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clay vanSchalkwijk</title>
		<link>http://www.derivante.com/2009/04/14/php-gis-functions/comment-page-1/#comment-410</link>
		<dc:creator>Clay vanSchalkwijk</dc:creator>
		<pubDate>Tue, 16 Feb 2010 15:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=313#comment-410</guid>
		<description>1) I&#039;m using a flat-earth model for performance and simplicity in the example above, which for the majority of calculations will suffice.  If you need to do long distance calculations, you will need to switch over great-circle distance calculation.

2) Can you give me the example of this you are working with so I can try to debug the problem.</description>
		<content:encoded><![CDATA[<p>1) I&#8217;m using a flat-earth model for performance and simplicity in the example above, which for the majority of calculations will suffice.  If you need to do long distance calculations, you will need to switch over great-circle distance calculation.</p>
<p>2) Can you give me the example of this you are working with so I can try to debug the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arun</title>
		<link>http://www.derivante.com/2009/04/14/php-gis-functions/comment-page-1/#comment-409</link>
		<dc:creator>Arun</dc:creator>
		<pubDate>Tue, 16 Feb 2010 13:51:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=313#comment-409</guid>
		<description>Good. But two problems:
1) you don&#039;t seem to consider the curvature of the earth&#039;s surface in to consideration. 
2) in some cases, the centroid calculation is erroneous compared to a normal mean of the lat longs calculated separately.  

Or am I missing something completely?</description>
		<content:encoded><![CDATA[<p>Good. But two problems:<br />
1) you don&#8217;t seem to consider the curvature of the earth&#8217;s surface in to consideration.<br />
2) in some cases, the centroid calculation is erroneous compared to a normal mean of the lat longs calculated separately.  </p>
<p>Or am I missing something completely?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clay vanSchalkwijk</title>
		<link>http://www.derivante.com/2009/04/14/php-gis-functions/comment-page-1/#comment-344</link>
		<dc:creator>Clay vanSchalkwijk</dc:creator>
		<pubDate>Thu, 01 Oct 2009 14:25:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=313#comment-344</guid>
		<description>$poly[] = array(&#039;0&#039;,&#039;5&#039;);
$poly[] = array(&#039;0&#039;,&#039;0&#039;);
$poly[] = array(&#039;5&#039;,&#039;0&#039;);
$poly[] = array(&#039;5&#039;,&#039;5&#039;);

if(pnpoly($poly,&#039;1&#039;,&#039;1&#039;))
        echo &quot;1,1 is inside the polygon\n&quot;;

if(!pnpoly($poly,&#039;1&#039;,&#039;6&#039;))
        echo &quot;1,6 is not inside the polygon\n&quot;;</description>
		<content:encoded><![CDATA[<p>$poly[] = array(&#8217;0&#8242;,&#8217;5&#8242;);<br />
$poly[] = array(&#8217;0&#8242;,&#8217;0&#8242;);<br />
$poly[] = array(&#8217;5&#8242;,&#8217;0&#8242;);<br />
$poly[] = array(&#8217;5&#8242;,&#8217;5&#8242;);</p>
<p>if(pnpoly($poly,&#8217;1&#8242;,&#8217;1&#8242;))<br />
        echo &#8220;1,1 is inside the polygon\n&#8221;;</p>
<p>if(!pnpoly($poly,&#8217;1&#8242;,&#8217;6&#8242;))<br />
        echo &#8220;1,6 is not inside the polygon\n&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://www.derivante.com/2009/04/14/php-gis-functions/comment-page-1/#comment-343</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Thu, 01 Oct 2009 07:46:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=313#comment-343</guid>
		<description>Hey there, thanks for the tools. I just have one question: can you provide a simple doc for your pnpoly() function, at least expected input data formats?</description>
		<content:encoded><![CDATA[<p>Hey there, thanks for the tools. I just have one question: can you provide a simple doc for your pnpoly() function, at least expected input data formats?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
