[GENERAL] C++ and Postgis

2009-11-23 Thread Pedro Doria Meunier

Hi All,

First off sorry for cross-posting. I'm hoping for a bigger audience... :]

As for my question:

How does one deal with Postgis geom fields in C++ ?
Google hasn't offered much help so far.

I know I can make a SELECT astext(my_geom) FROM my_table and after 
parsing the resulting text.

This seems a bit awkward and time-consuming...

Is there a better way to deal with it?

Already thankful for any ideas,
BR,
Pedro.

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] C++ and Postgis

2009-11-23 Thread John R Pierce

Pedro Doria Meunier wrote:

Hi All,

First off sorry for cross-posting. I'm hoping for a bigger audience... :]

As for my question:

How does one deal with Postgis geom fields in C++ ?
Google hasn't offered much help so far.

I know I can make a SELECT astext(my_geom) FROM my_table and after 
parsing the resulting text.

This seems a bit awkward and time-consuming...

Is there a better way to deal with it?


perhaps 
http://postgis.refractions.net/documentation/manual-1.4/ST_AsBinary.html ?




--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] C++ and Postgis

2009-11-23 Thread Martin Gainty

anytime you see a codebase filled with a plethora of function pointers, 
LockObject and miles of code to achieve simple keyword scope 
(public/protected/private) then you know the product is ready to be rewritten 
to OO Language
My suggestion would be Java (so we could use maven for version specific build)
also because I havent seen  anything from C++ that comes close to version 
specific builds
Also with the Maven-nar-plugin you can incorporate native binaries if you 
decide for a C++ refactor..

I guess what I'm saying if you're going to bite the bullet to rewrite to C++ 
why not just take the extra step
to rewrite to Java..yes it doesnt support multiple inheritance of classes but 
you *can implement multiple interfaces*

Comments?
Martin Gainty 
__ 
WARNING: Information contained may be deemed unsuitable for marketing, 
liberal-arts or business majors.




 Date: Mon, 23 Nov 2009 21:19:44 +
 From: pdo...@netmadeira.com
 To: postgis-us...@postgis.refractions.net
 CC: pgsql-general@postgresql.org
 Subject: [GENERAL] C++ and Postgis
 
 Hi All,
 
 First off sorry for cross-posting. I'm hoping for a bigger audience... :]
 
 As for my question:
 
 How does one deal with Postgis geom fields in C++ ?
 Google hasn't offered much help so far.
 
 I know I can make a SELECT astext(my_geom) FROM my_table and after 
 parsing the resulting text.
 This seems a bit awkward and time-consuming...
 
 Is there a better way to deal with it?
 
 Already thankful for any ideas,
 BR,
 Pedro.
 
 -- 
 Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
 To make changes to your subscription:
 http://www.postgresql.org/mailpref/pgsql-general
  
_
Windows 7: I wanted simpler, now it's simpler. I'm a rock star.
http://www.microsoft.com/Windows/windows-7/default.aspx?h=myidea?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_myidea:112009