Thank you, still learning my way around things.
So after copying 90% of the my not working source code into the test
program and it worked there, it finally dawned on me to check the
Makefile. Duh! while I had removed all the shapelib calls from the
source code, I forgot to check the link line
Stephen
did you read :
http://gdal.org/ogr/ogr__api_8h.html#7b67ea4ab5892c6720460dc7f66eca2d ?
You'll know the cause of the crash afterwards ;-)
Le vendredi 03 septembre 2010 20:12:51, Stephen Woodbridge a écrit :
> Even,
>
> Here is my test program:
>
> $ cat testogr.c
> #include "ogr_api.h"
Even,
Here is my test program:
$ cat testogr.c
#include "ogr_api.h"
int main() {
OGRDataSourceH hDSin;
OGRLayerH hLayerIn;
OGRFeatureDefnH hFDefnIn;
OGRwkbGeometryType layerGeomType;
OGRRegisterAll();
hDSin = OGROpen( "/u/data/routeloops-v2/25/25017/Streets.shp",
FALS
Riann,
hum, I think you've hit a classical problem with the use of the GDAL python
bindings. The root of your problem is likely the following line:
reader = RasterReaderWriter(gdal.Open(iFilename).GetRasterBand(1))
Currently the GDAL python bindings do a poor job with life cycle management of
Thanks Even,
I coded up a similar test program, and the works here so I'm looking
elsewhere.
Looks like ogdi on Debian installs libgdal.so so I just uninstalled
ogdi, since I don't think I use it. And I'm rebuilding gdal without that
just to make sure I have a clean system without any rouge
Le vendredi 03 septembre 2010 18:45:56, Stephen Woodbridge a écrit :
> Hi all,
>
> Trying to convert a shapelib program over to OGR and have to say it is
> very complicated.
No, it's just that you are not yet accustomed to use it ;-)
>
> I'm using: GDAL 1.7.2, released 2010/04/23
>
> At the mo
On 9/3/2010 1:04 PM, Frank Warmerdam wrote:
Stephen Woodbridge wrote:
Hi all,
Trying to convert a shapelib program over to OGR and have to say it is
very complicated.
I'm using: GDAL 1.7.2, released 2010/04/23
At the moment I stuck on:
hDSin = OGROpen( "Streets.shp", FALSE, NULL );
hLayerIn
Stephen Woodbridge wrote:
Hi all,
Trying to convert a shapelib program over to OGR and have to say it is
very complicated.
I'm using: GDAL 1.7.2, released 2010/04/23
At the moment I stuck on:
hDSin = OGROpen( "Streets.shp", FALSE, NULL );
hLayerIn = OGR_DS_GetLayerByName( hDSin, "Street
Hi all,
Trying to convert a shapelib program over to OGR and have to say it is
very complicated.
I'm using: GDAL 1.7.2, released 2010/04/23
At the moment I stuck on:
hDSin = OGROpen( "Streets.shp", FALSE, NULL );
hLayerIn = OGR_DS_GetLayerByName( hDSin, "Streets" );
hFDefnIn = OGR_L_G
Thanks for the suggestion.
I have tried:
tileRaster = self.raster.ReadAsArray(xoff=offsetX, yoff=offsetY,
win_xsize=width, win_ysize=height)
and
tileRaster = self.raster.ReadAsArray(xoff=offsetX, yoff=offsetY,
buf_xsize=width, buf_ysize=height)
but the result is something like:
(array([],
I have recently started a new open-source project that will use gdal
extensively, named scikits.eartho.
The vision is to implement some advanced algorithms and ideas that we
develop and work with at the South African Satellite Applications Centre
(SAC) for use in Python (SciPy).
I am experiencing
11 matches
Mail list logo