Re: [gdal-dev] Question about GDALDriverManager + gdal2wktraster

2009-07-07 Thread Jorge Arévalo
Hello, 2009/7/7 Frank Warmerdam : > Looking at: > >  http://www.gis4free.org/gdal_wktraster/frmts/wktraster/wktrasterdataset.cpp > > I see: > >    if( GDALGetDriverByName( "WKTRaster" ) == NULL ) >    { >        poDriver = new GDALDriver(); > >        poDriver->SetDescription( "WKT Raster driver"

[gdal-dev] can java use the jdal

2009-07-07 Thread maven apache
I wonder if there is a java librariy which can be directly used to handle the data instead of using the Runtime to call the command(for example glalinfo..)? ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gda

[gdal-dev] GDAL Windows builds available

2009-07-07 Thread Sommer, Martin
Hi All, is the repository of Tamas Szekeres at http://vbkto.dyndns.org:1280/sdk/index.html still available? Are there any other sources, where I can get the windows builds? Thanks Martin ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http:/

Re: [gdal-dev] GDAL Windows builds available

2009-07-07 Thread Frank Warmerdam
Sommer, Martin wrote: Hi All, is the repository of Tamas Szekeres at http://vbkto.dyndns.org:1280/sdk/index.html still available? Martin, The above link still works for me. Perhaps you suffered a temporary interruption? Are there any other sources, where I can get the windows builds?

Re: [gdal-dev] can java use the jdal

2009-07-07 Thread Frank Warmerdam
maven apache wrote: I wonder if there is a java librariy which can be directly used to handle the data instead of using the Runtime to call the command(for example glalinfo..)? Maven, The GDAL project includes java bindings for the api so it should be practical to recreate pretty much any

Re: [gdal-dev] can java use the jdal

2009-07-07 Thread Daniele Romagnoli
Hi, you can also take a look on our imageio-ext project which extends Sun's Java ImageIO framework, also leveraging on gdal. See here: https://imageio-ext.dev.java.net/ Hope this helps. Cheers, Daniele On Tue, Jul 7, 2009 at 3:25 PM, Frank Warmerdam wrote: > maven apache wrote: > >> I wonder if

[gdal-dev] Parameters to GDAL Pixel Functions?

2009-07-07 Thread Matt Klaric
I'm trying to make use of the GDAL Pixel Functions in the virtual dataset driver. I have a situation where I would like to construct a pixel function that is a function of the pixel values as well as some extra piece of information. This might be one of the metadata items for the image (which I c

Re: [gdal-dev] GDAL Windows builds available

2009-07-07 Thread Jeff McKenna
Are there any other sources, where I can get the windows builds? http://download.osgeo.org/gdal/win32/ http://osgeo4w.osgeo.org/ The GDAL utilities are also included in MapServer for Windows: www.maptools.org/ms4w -jeff -- Jeff McKenna FOSS4G Consulting and Training Services htt

Re: [gdal-dev] rfc 24 - jpip

2009-07-07 Thread Frank Warmerdam
Norman Barker wrote: Hi http://trac.osgeo.org/gdal/wiki/rfc24_progressive_data_support and the code at http://svn.osgeo.org/gdal/sandbox/normanb/ Norman, I pretty much agree with the things Even mentioned a few weeks ago. A few notes: 1) I would like you to provide the develop

[Gdal-dev] ArcSDE Raster Offset

2009-07-07 Thread jericks
I know this has been reported before: http://n2.nabble.com/ArcSDE-Raster-Driver-for-GDAL---displacement-of-exported-images-td2029756.html#a2029756 but, when I do a gdalinfo on an ArcSDE 9.2 JPG2000 Raster Layer, the corner coordinates are not the same as what ArcMap reports. Then when I extract

Re: [gdal-dev] Parameters to GDAL Pixel Functions?

2009-07-07 Thread Even Rouault
Matt, I don't see a way of doing what you want without hacking a bit into GDAL. You could easily pass the raster band object ('this') as an additionnal parameter to the callback. That way you could call GDALGetMetadataItem() to fetch additional parameters from the XML. Le Tuesday 07 July 2009

[gdal-dev] OGR is not able to determine PostGIS table SRS

2009-07-07 Thread Sorokine, Alexandre
Folks, I am trying to determine an SRS for a table in PostGIS database but I am getting NULL. I have a table that in PostGIS that has SRID defined: usa=# select ST_SRID(the_geom) from census.counties; st_srid - 4326 4326 ... However, when I try to do OGR_L_GetSpatialRef() or O

[gdal-dev] How to get the size of a OGRGeometry

2009-07-07 Thread Jorge Arévalo
Hello, If I have an OGRGeometry object (said poGeom), I can get its coords by: OGREnvelope * poE = new OGREnvelope(); poGeom->getEnvelope(poE); // poE->MinX, poE->MinY, poE->MaxX, poE->MaxY are the limit coords If I want the size of the Geometry: double dSizeX = poE->MaxX - poE->MinX; double d

Re: [gdal-dev] OGR is not able to determine PostGIS table SRS

2009-07-07 Thread Frank Warmerdam
Sorokine, Alexandre wrote: Folks, I am trying to determine an SRS for a table in PostGIS database but I am getting NULL. I have a table that in PostGIS that has SRID defined: usa=# select ST_SRID(the_geom) from census.counties; st_srid - 4326 4326 Alexandre, OGR doesn't

Re: [gdal-dev] How to get the size of a OGRGeometry

2009-07-07 Thread Frank Warmerdam
Jorge Arévalo wrote: Hello, If I have an OGRGeometry object (said poGeom), I can get its coords by: OGREnvelope * poE = new OGREnvelope(); poGeom->getEnvelope(poE); // poE->MinX, poE->MinY, poE->MaxX, poE->MaxY are the limit coords If I want the size of the Geometry: double dSizeX = poE->Max

Re: [gdal-dev] How to get the size of a OGRGeometry

2009-07-07 Thread Jorge Arévalo
2009/7/8 Frank Warmerdam : > Jorge Arévalo wrote: >> >> Hello, >> >> If I have an OGRGeometry object (said poGeom), I can get its coords by: >> >> OGREnvelope * poE = new OGREnvelope(); >> poGeom->getEnvelope(poE); >> >> // poE->MinX, poE->MinY, poE->MaxX, poE->MaxY are the limit coords >> >> If I

[gdal-dev] How do we know the number of raster bands of a WKT Raster object?

2009-07-07 Thread Jorge Arévalo
Hello, I have a doubt: I have a raster loaded in PostgreSQL with gdal2wktraster, and I'm not sure of the best way to know the number of raster bands the raster has. The fields "pixel_types" and "nodata_values" from raster_columns table are arrays with one element per raster band, so, counting the

Re: [gdal-dev] How to get the size of a OGRGeometry

2009-07-07 Thread Frank Warmerdam
Jorge Arévalo wrote: I'm talking about the nRasterXSize, nRasterYSize of a GDALDataset (this is what I mean with "size"). In the context of the GDAL WKT Raster driver, I can get the extent covered by a raster getting the "extent" column from RASTER_COLUMNS table. If I read this column like an OGR

Re: [gdal-dev] How do we know the number of raster bands of a WKT Raster object?

2009-07-07 Thread Frank Warmerdam
Jorge Arévalo wrote: Hello, I have a doubt: I have a raster loaded in PostgreSQL with gdal2wktraster, and I'm not sure of the best way to know the number of raster bands the raster has. The fields "pixel_types" and "nodata_values" from raster_columns table are arrays with one element per raster

RE: [gdal-dev] OGR is not able to determine PostGIS table SRS

2009-07-07 Thread Sorokine, Alexandre
Franks, Thank you for your reply, I did some more checks. Please see my comments below. > I am trying to determine an SRS for a table in PostGIS database but I am > getting NULL. I have a table that in PostGIS that has SRID defined: > > usa=# select ST_SRID(the_geom) from census.counties; > st

Re: [gdal-dev] OGR is not able to determine PostGIS table SRS

2009-07-07 Thread Frank Warmerdam
Sorokine, Alexandre wrote: Franks, Thank you for your reply, I did some more checks. Please see my comments below. Alexandre, I'm still wondering if this is related to schemas. I was surprised to not see any queries against the spatial_ref_sys table. In my trunk build I see something like:

Re: [gdal-dev] How to get the size of a OGRGeometry

2009-07-07 Thread Jorge Arévalo
2009/7/8 Frank Warmerdam : > Jorge, > > Taking the width and height of the extent geometry envelope and then > dividing by the pixel size values from RASTER_COLUMNS (pixelsize_x > and pixelsize_y) will give you the width and height of the raster in > pixels for regular_blocking rasters. Ok, thanks

Re: [gdal-dev] How do we know the number of raster bands of a WKT Raster object?

2009-07-07 Thread Jorge Arévalo
2009/7/8 Frank Warmerdam : > Jorge, > > I believe taking the count of values in the pixel_types array is the > correct approach to determining the number of bands. > > Elegant is in the eye of the beholder. Ok, thanks Frank. I like your point :-) Best regards Jorge ___