[postgis-devel] what's the main job of lwgeom_api.c

Paul Ramsey pramsey at cleverelephant.ca
Mon Jun 16 03:40:10 PDT 2008


If we are going to retain this duality of library / database bindings,
would it be nicer to have them separated into different directories?
Or maybe a more strict file naming convention?

P

On Mon, Jun 16, 2008 at 12:19 PM, Mark Cave-Ayland
<mark.cave-ayland at siriusit.co.uk> wrote:
> xie jiong wrote:
>> HI everyone:
>>    My question is what's the main job of lwgeom_api.c? I couldn't
>> understand what does the 'api' stand for? Are they
>> the funtions mainly for processing the serialized_form of Geometry?
>> (because many funs in it do jobs with serialized_form geometry as input
> parameter.)
>>
>> Waiting for your reply, thanks.
>>
>> Jiong
>
>
> Hi Jiong,
>
> API is simply just "Application Programming Interface". The aim of
> liblwgeom was to allow reuse of the basic geometric types from other
> places. AIUI the file contains the remainder of the LWGEOM functions (i.e.
> functions that don't require PostgreSQL) which don't fit into the
> individual geometry categories such as lwline.c or lwcurve.c. Note that we
> do also have a separate file for handling point array routines which are
> located in ptarray.c.
>
>
> HTH,
>
> Mark.
>
> --
> Mark Cave-Ayland
> Sirius Corporation - The Open Source Experts
> http://www.siriusit.co.uk
> T: +44 870 608 0063
>
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>



More information about the postgis-devel mailing list