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
___
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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?
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:/
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
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"
23 matches
Mail list logo