[postgis-devel] TWKB in PostGIS, what do you think?

Nicklas Avén nicklas.aven at jordogskog.no
Sun Jun 16 10:50:09 PDT 2013


Yes Regina, you are correct. It will need access to the liblwgeom
library functions. I have thought about the way Paul does it by going
through the WKB format. But if TWKB will be used from PostGIS it is to
produce compressed binaries on the fly. Then keeping down the resources
needed is essential. 

So I will have to link to the liblwgeom library. Paul mentioned that it
will be more complicated than what he did with point clouds. I tried to
look at pgrouting, what their cmake scripts looks like, but as I
understand it they don't use liblwgeom either.

Am I correct that I can use cmake even if PostGIS doesn't (yet)? 
As I read this question
http://stackoverflow.com/questions/8774593/cmake-link-to-external-library
it doesn't matter what build system the library you want to link uses.

I ask because it was mentioned earlier today that when PostGIS Schanges
to cmake all dependencies also will. Is that because it is convenient or
necessary?  


/Nicklas



On Sun, 2013-06-16 at 10:20 -0400, Paragon Corporation wrote:
> Even if we go the extensions model with TWKB, would like to see it
> managed in PostGIS proper just because I suspect it will need direct
> dependency with liblwgeom (which is not a stable API) and which
> pointcloud doesn't really have to contend with. So it would still be
> an extra annoying compile to experiment with.
>  
> Nicklas correct me if I am wrong on this.
>  
> Then I think it would follow the path of SFCGAL.  Except there isn't
> much reason to exclude it since it has no extra dependencies aside
> from it isn't stable yet and not sure how well adopted it would
> become.
>  
> Regina
> 
> 
> ______________________________________________________________________
> From: postgis-devel-bounces at lists.osgeo.org
> [mailto:postgis-devel-bounces at lists.osgeo.org] On Behalf Of Nicklas
> Avén
> Sent: Thursday, June 13, 2013 2:56 AM
> To: Paul Ramsey
> Cc: PostGIS Development Discussion
> Subject: Re: [postgis-devel] TWKB in PostGIS, what do you think?
> 
> 
> 
> I think you are right Paul. That would make it possible to use also on
> PostGIS 2.0 and 2.1 and also possible to release more frequent in the
> beginning. I also realize that the interest from the client libraries
> is smaller than I had hoped. So it would be stupid to put code in
> PostGIS that won't be used. To get things fast I think some javascript
> guru need to look at the client part and connect the parsing very
> close to the canvas drawing, to avoid all text based javascript
> objects. /Nicklas 2013-06-13 Paul Ramsey wrote: There's no great harm
> in including it, but it's more code to maintain that is pretty
> prospective. Why not bundle up an extension against PostGIS? I was
> pleased with how easy it was to do pointcloud_postgis as an extension
> that depended on both. > >P > >-- >Paul Ramsey
> >http://cleverelephant.ca >http://postgis.net > > >On Monday, June 10,
> 2013 at 1:40 PM, Nicklas Avén wrote: > >> So, what i would like to ask
> is if PostGIS PSC and dev community can >> decide that TWKB will be
> included when it is ready? > > > > > 
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel





More information about the postgis-devel mailing list