<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>RE: [postgis-devel] Location Of LWAlgorithms</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>I haven't taken that thorough a look at the code base, so perhaps I shouldn't be speaking.<BR>
<BR>
But I would think that there are many functions that deal across geometry types<BR>
or functions where most of the functionality is the same for different types.<BR>
<BR>
So I fear if we tried to make it a rule, we would quickly violate it simply out of efficiency.  Would seem better to separate the algorithmic nature from the constructive nature.<BR>
<BR>
I know I'm supposed to be an object oriented programmer -- so perhaps the OO gods will shoot me where I stand for saying this.<BR>
<BR>
To me geometries are dead objects to be worked on.  Functions are the focal point as far<BR>
as spatial is concerned.<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: postgis-devel-bounces@postgis.refractions.net on behalf of Paul Ramsey<BR>
Sent: Tue 12/23/2008 2:12 PM<BR>
To: PostGIS Development Discussion<BR>
Subject: [postgis-devel] Location Of LWAlgorithms<BR>
<BR>
I've started an lwalgorithm.c file. However, I see some functions are<BR>
living with the types they work against. ptarray_substring, for<BR>
example. By a similar token, area should move to lwpoly and lwmpoly<BR>
implementations for area. Anyone have a problem with a general rule of<BR>
locating methods with their objects, or should we keep the object<BR>
files restricted to constructors/accessors and put all the<BR>
calculations elsewhere?<BR>
<BR>
P.<BR>
_______________________________________________<BR>
postgis-devel mailing list<BR>
postgis-devel@postgis.refractions.net<BR>
<A HREF="http://postgis.refractions.net/mailman/listinfo/postgis-devel">http://postgis.refractions.net/mailman/listinfo/postgis-devel</A><BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
<HTML><BODY><P><hr size=1></P>
<P><STRONG>
The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer.
</STRONG></P></BODY></HTML>

<P><hr size=1></P>
<P><STRONG><font size="2" color="339900"> Help make the earth a greener place. If at all possible resist printing this email and join us in saving paper. </p> <p> </font></STRONG></P>