Bookmark this page: Add Open Source GIS libraries  to Yahoo MyWeb Add Open Source GIS libraries  to Google Bookmarks Add Open Source GIS libraries  to Windows Live Add Open Source GIS libraries  to Del.icio.us Digg Open Source GIS libraries ! Add Open Source GIS libraries  to Netscape
  •  
  • Subject
  • Author
  • Date
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by Jonathan Greenberg on July 19, 2004, 10:37 pm
Hi there -- I was wondering if anyone knows of a good set of C++, Java or
some other programming language set of libraries/source code for dealing
with shapefiles (e.g. Vector to raster conversion, querying the shapefile
database, etc.) -- we are trying to create a standalone program for
manipulating shapefiles and don't want to be working within some other
program's environment, such as ArcMap or GRASS. Any good sites? Thanks!

--j

--
Jonathan Greenberg
Graduate Group in Ecology, U.C. Davis
http://www.cstars.ucdavis.edu/~jongreen
http://www.cstars.ucdavis.edu
AIM: jgrn307 or jgrn3007
MSN: jgrn307@msn.com or jgrn3007@msn.com



Posted by Norman Barker on July 20, 2004, 8:18 am
Jonathan Greenberg wrote:
> Hi there -- I was wondering if anyone knows of a good set of C++, Java or
> some other programming language set of libraries/source code for dealing
> with shapefiles (e.g. Vector to raster conversion, querying the shapefile
> database, etc.) -- we are trying to create a standalone program for
> manipulating shapefiles and don't want to be working within some other
> program's environment, such as ArcMap or GRASS. Any good sites? Thanks!
>
> --j
>
Hi,

The recent MapServer conference had a review of open source software

http://www.maptools.org/dl_scripts/redirector.php?path=omsug/osgis2004/2004-05-OSS-Briefing.doc

From personal experience I would recommend http://www.geotools.org if
you are doing java, and GDAL (using the OGR library for vector data) if
you are doing c++. The python libraries for GDAL in OpenEV make
GDAL it easy.

Norman

--
Take the DOG out to reply


Posted by Andre Ringeler on July 23, 2004, 5:20 am
> Jonathan Greenberg wrote:
> > Hi there -- I was wondering if anyone knows of a good set of C++, Java or
> > some other programming language set of libraries/source code for dealing
> > with shapefiles (e.g. Vector to raster conversion, querying the shapefile
> > database, etc.) -- we are trying to create a standalone program for
> > manipulating shapefiles and don't want to be working within some other
> > program's environment, such as ArcMap or GRASS. Any good sites? Thanks!
> >

Hallo Jonathan,

Have a look at SAGA-GIS:
http://geosun1.uni-geog.gwdg.de/saga/html/index.php

The SAGA API is written in C++ and
you can use this API as standalone library.

Andre
_______________________________________________________________________________

Example:

#include"shapes.h"

int iShape, iPart, iPoint;
TGEO_dPoint Point;
CShapes *pShapes_A, *pShapes_B;
CShape *pShape_A, *pShape_B;

pShape_A = new CShapes (NULL, "input.shp");

pShapes_B = new CShapes (pShapes_A->Get_Type(), "Translation",
pShapes_A->Get_Table());

//-----------------------------------------------------
// Copy shapes layer A to B and translate each point's position...

for(iShape=0; iShape<pShapes_A->Get_Count(); iShape++)
{
pShape_A = pShapes_A->Get_Shape(iShape);
pShape_B = pShapes_B->Add_Shape(pShape_A->Get_Record());

for(iPart=0; iPart<pShape_A->Get_Part_Count(); iPart++)
{
for(iPoint=0; iPoint<pShape_A->Get_Point_Count(iPart);
iPoint++)
{
Point = pShape_A->Get_Point(iPoint, iPart);

Point.x += 10; // perform the translation before
Point.y += 10;

pShape_B->Add_Point(Point, iPart);// you add the point
to the new shape...
}
}
}

pShapes_B->Save(NULL,"result.shp");


Posted by The Guru on July 26, 2004, 7:58 am
I found a bunch of nice, free, multi-language libraries at:

http://www.freegis.org

and:

http://data.geocomm.com/

and also try:

http://software.geocomm.com/


Posted by Sean Fulton on July 30, 2004, 3:51 pm

>> Hi there -- I was wondering if anyone knows of a good set of C++, Java or
>> some other programming language set of libraries/source code for dealing
>> with shapefiles (e.g. Vector to raster conversion, querying the shapefile
>> database, etc.) -- we are trying to create a standalone program for
>> manipulating shapefiles and don't want to be working within some other
>> program's environment, such as ArcMap or GRASS. Any good sites? Thanks!
>>
>> --j

Look at shapelib and GDAL

http://shapelib.maptools.org/
http://gdal.maptools.org/index.html

        Sean