Обсуждение: Re: Geometric Data Type in PostgreSQL

Поиск
Список
Период
Сортировка

Re: Geometric Data Type in PostgreSQL

От
Thomas Lockhart
Дата:
> I'm a geographic information systems (GIS) professional and a (home)
> Linux user.  After reading the documentation for the Geometric data
> types in PostgreSQL, I'm excited about the possibilities.  Are you
> aware of any projects where the geometric data types in PostgreSQL are
> being used as the basis of a GIS or mapping package?

Not specifically, though I do know that folks have used it to do
GIS-like things (e.g. given a location on the earth surface, identify
satellite tracks which are visible).

The best place to ask is on the Postgres mailing list(s); I'm cc'ing
the hackers list and you may want to inquire on one or two of the
other lists too.

>  I'd like to know
> if anyone's doing this and, if not, what development language would
> you recommend for developing a mapping package using PostgreSQL.

Hmm. That's a hard one to answer without knowing more. If you need
compiled code, then C or C++ might be the best choice. But you might
find something like java or itcl lets you build a GUI app faster and
easier.

An interesting possibility if you are developing in C or C++ is to
consider developing as a "gnome-enabled" app, which presumably gives
you a bunch of high level widgets to work with. It would also allow
you to Corba-ize your app to decouple the backend from the GUI.

>  Also, how difficult would it be to add a Z value to the X and Y
> values to the data types' basic structure?  This would allow the
> storage of height data along with the coordinates.

It would be easy; you just need to figure out how you will be able to
use it. Things like comparison operators have a less intuitive meaning
once you go to 3D.

Look at src/backend/utils/adt/geo.c for hints on how to deal with a
geometric data type. Also, look at contrib/ to see how to add a
datatype.

> I use GRASS on my Linux system at home.  GRASS is a (GPL'd) raster GIS
> package.  Open source vector GIS packages for Linux are, as far as I
> know, nonexistent.  Several commercial packages are available,
> including ESRI's Arc/Info and ArcView (which I use at work).  I'd like
> to see an open source vector GIS package developed, perhaps based on
> PostgreSQL's geometric data types.

You might also consider using something like ApplixWare, which has
hooks into Postgres (via ODBC) and might have enough features and
power to allow developing a package. The per-seat cost of ApplixWare
is pretty low. It may be ODBC gets in the way of exposing the extended
features of Postgres though.

Good luck.
                        - Thomas

-- 
Thomas Lockhart                lockhart@alumni.caltech.edu
South Pasadena, California


Re: [HACKERS] Re: Geometric Data Type in PostgreSQL

От
Jeff Hoffmann
Дата:
Thomas Lockhart wrote:
> 
> > I'm a geographic information systems (GIS) professional and a (home)
> > Linux user.  After reading the documentation for the Geometric data
> > types in PostgreSQL, I'm excited about the possibilities.  Are you
> > aware of any projects where the geometric data types in PostgreSQL are
> > being used as the basis of a GIS or mapping package?
> 

I use it in applications for geographic purposes, not really as a basis
of standalone, general purpose GIS systems.   Mostly what I use it for
is finding objects in a specific bounding box.   

> >  I'd like to know
> > if anyone's doing this and, if not, what development language would
> > you recommend for developing a mapping package using PostgreSQL.
> 
> Hmm. That's a hard one to answer without knowing more. If you need
> compiled code, then C or C++ might be the best choice. But you might
> find something like java or itcl lets you build a GUI app faster and
> easier.

Java would be a no go.  For most purposes, it's fine, but iterating
through hundreds/thousands of records that can be required on a map make
it painfully slow at best.  I wrote a prototype for a web based
map/database system using java with the JDBC driver at the time & I
ended up rewriting the map part in C and calling that from java.  (I
also did a similar thing as a PHP extension - a C library called from
PHP scripts, which is how its running now.)
> > I use GRASS on my Linux system at home.  GRASS is a (GPL'd) raster GIS
> > package.  Open source vector GIS packages for Linux are, as far as I
> > know, nonexistent.  Several commercial packages are available,
> > including ESRI's Arc/Info and ArcView (which I use at work).  I'd like
> > to see an open source vector GIS package developed, perhaps based on
> > PostgreSQL's geometric data types.

Have you looked at what people are doing with Postgres & GRASS?  I've
seen something on the GRASS web site about the project, but I don't know
how serious people were about working on it or what they expected to do
with it.  If you haven't seen it around, poke around a little deeper -
it wasn't hidden that far.


Re: [HACKERS] Re: Geometric Data Type in PostgreSQL

От
The Hermit Hacker
Дата:
On Fri, 3 Dec 1999, Thomas Lockhart wrote:

> > I'm a geographic information systems (GIS) professional and a (home)
> > Linux user.  After reading the documentation for the Geometric data
> > types in PostgreSQL, I'm excited about the possibilities.  Are you
> > aware of any projects where the geometric data types in PostgreSQL are
> > being used as the basis of a GIS or mapping package?
> 
> Not specifically, though I do know that folks have used it to do
> GIS-like things (e.g. given a location on the earth surface, identify
> satellite tracks which are visible).

Isn't Peter Mount using PostgreSQL & JDBC for a GIS project? 


Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org 



Re: [HACKERS] Re: Geometric Data Type in PostgreSQL

От
Thomas Lockhart
Дата:
> Isn't Peter Mount using PostgreSQL & JDBC for a GIS project?

Astronomical project afaik...
                - Thomas

-- 
Thomas Lockhart                lockhart@alumni.caltech.edu
South Pasadena, California