
- Open-Source-GIS-libraries
- 07-19-2004
![]() Re: Open Source GIS libraries?
| Norman Barker | 07-20-2004 |
![]() ![]() Re: Open Source GIS libraries?
| Andre Ringeler | 07-23-2004 |
![]() Re: Open Source GIS libraries?
| Sean Fulton | 07-30-2004 |
If you were Registered and logged in, you could reply and use other advanced thread options
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
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
Jonathan Greenberg wrote:
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
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
> 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!
> >
> > 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());
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());
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");
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/
http://www.freegis.org
and:
http://data.geocomm.com/
and also try:
http://software.geocomm.com/
>> 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
>> 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








> 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
>