[gdal-dev] python build error on svn trunk

2008-12-10 Thread Kralidis,Tom [Ontario]

On make install (OS = fc10):

$./configure --with-png --with-libtiff=internal --with-geotiff=internal
--with-jpeg --with-xerces --with-geos=no --with-pg=/usr/bin/pg_config
--with-mysql=/usr/bin/mysql_config -
-with-sqlite --with-curl=/usr/bin/curl-config --with-python --with-expat




$ make

...

$ make install

...

/bin/sh /home/tkralidi/foss4g/gdal/trunk/gdal/libtool --mode=install
/home/tkralidi/foss4g/gdal/trunk/gdal/install-sh -c gdal-config-inst
/usr/local/bin/gdal-config
libtool: install: /home/tkralidi/foss4g/gdal/trunk/gdal/install-sh -c
gdal-config-inst /usr/local/bin/gdal-config
make[1]: Leaving directory `/home/tkralidi/foss4g/gdal/trunk/gdal/apps'
(cd swig; make install)
make[1]: Entering directory `/home/tkralidi/foss4g/gdal/trunk/gdal/swig'
for dir in python ; do (cd $dir; make install) || exit; done
make[2]: Entering directory
`/home/tkralidi/foss4g/gdal/trunk/gdal/swig/python'
python setup.py install 
running install
running bdist_egg
running egg_info
creating GDAL.egg-info
writing GDAL.egg-info/PKG-INFO
writing top-level names to GDAL.egg-info/top_level.txt
writing dependency_links to GDAL.egg-info/dependency_links.txt
writing manifest file 'GDAL.egg-info/SOURCES.txt'
Traceback (most recent call last):
  File "setup.py", line 239, in 
ext_modules = ext_modules )
  File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
dist.run_commands()
  File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
self.run_command(cmd)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
  File "/usr/lib/python2.5/site-packages/setuptools/command/install.py",
line 76, in run
self.do_egg_install()
  File "/usr/lib/python2.5/site-packages/setuptools/command/install.py",
line 96, in do_egg_install
self.run_command('bdist_egg')
  File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
  File
"/usr/lib/python2.5/site-packages/setuptools/command/bdist_egg.py", line
167, in run
self.run_command("egg_info")
  File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
  File
"/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line
171, in run
self.find_sources()
  File
"/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line
252, in find_sources
mm.run()
  File
"/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line
306, in run
self.add_defaults()
  File
"/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line
333, in add_defaults
rcfiles = list(walk_revctrl())
  File "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py",
line 45, in walk_revctrl
for item in ep.load()(dirname):
  File "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py",
line 52, in _default_revctrl
for path in finder(dirname,path):
  File "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py",
line 98, in entries_finder
log.warn("unrecognized .svn/entries format in %s", dirname)
NameError: global name 'log' is not defined
make[2]: *** [install] Error 1
make[2]: Leaving directory
`/home/tkralidi/foss4g/gdal/trunk/gdal/swig/python'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/tkralidi/foss4g/gdal/trunk/gdal/swig'
make: *** [install-actions] Error 2


___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] Overview building broken

2008-12-10 Thread Benoît Andrieu

Hi all !

I am using FWTools 2.2.6 and have some problems with the overview 
building...

I just tried the 2.2.8 release, same result !

My software tries to build a x level overview pyramid on a GTiff.
I am using the following code :

CPLErr statut_generation_pyramidage = 
gdal_dataset_copie->BuildOverviews("average", nb_pyramidage, anOverviewList, 
0, NULL, NULL, NULL);


The function is returning CE_Failure and the console has a lot of messages 
which appears on the call of the BuildOverviews' method.


ERROR 1: TIFFSetField:f:\test_isdas\PIC_CONT_SS_F_4_8bit.TIF: Cannot modify 
tag "Compression" while writing
ERROR 1: TIFFSetField:f:\test_isdas\PIC_CONT_SS_F_4_8bit.TIF: Cannot modify 
tag "ImageWidth" while writing
ERROR 1: TIFFSetField:f:\test_isdas\PIC_CONT_SS_F_4_8bit.TIF: Cannot modify 
tag "PlanarConfiguration" while writing
ERROR 1: TIFFSetField:f:\test_isdas\PIC_CONT_SS_F_4_8bit.TIF: Cannot modify 
tag "BitsPerSample" while writing
ERROR 1: TIFFSetField:f:\test_isdas\PIC_CONT_SS_F_4_8bit.TIF: Cannot modify 
tag "SamplesPerPixel" while writing
ERROR 1: TIFFSetField:f:\test_isdas\PIC_CONT_SS_F_4_8bit.TIF: Cannot modify 
tag "Compression" while writing
ERROR 1: TIFFSetField:f:\test_isdas\PIC_CONT_SS_F_4_8bit.TIF: Cannot modify 
tag "PhotometricInterpretation" while writing
ERROR 1: TIFFSetField:f:\test_isdas\PIC_CONT_SS_F_4_8bit.TIF: Cannot modify 
tag "SampleFormat" while writing
ERROR 1: TIFFSetField:f:\test_isdas\PIC_CONT_SS_F_4_8bit.TIF: Cannot modify 
tag "TileWidth" while writing
ERROR 1: TIFFSetField:f:\test_isdas\PIC_CONT_SS_F_4_8bit.TIF: Cannot modify 
tag "TileLength" while writing

ERROR 1: GTIFFWriteDirectory:Can not write tiles to a stripped image

The complete call sequence is (without some instanciations) :

 GDALDataset* gdal_dataset_copie = poDriver->CreateCopy(string_fileOut, 
gdal_dataset, TRUE, options_, NULL, NULL);

 char **options = 0;
 GDALDriver *gdal_driver = GetGDALDriverManager()->GetDriverByName("MEM");
 GDALDataset* gdal_dataset = gdal_driver->Create("", image->Get_Largeur(), 
image->Get_Hauteur(), nbCanaux, depth, options);

 gdal_dataset->FlushCache();
 gdal_dataset->GetRasterBand(1)->SetColorInterpretation(GCI_GrayIndex);
 //
 // Filling the dataset with data
 //
 gdal_dataset->FlushCache();
 GDALDriver *poDriver = GetGDALDriverManager()->GetDriverByName("GTIFF");
 char **options_ = 0;
 options_ = CSLSetNameValue( options, "INTERLEAVE", "PIXEL" );
 gdal_dataset->SetProjection( string_WKT );
 gdal_dataset->SetGeoTransform( m_P_D_TFW );
 GDALDataset* gdal_dataset_copie = poDriver->CreateCopy(string_fileOut,
gdal_dataset, TRUE, options_, NULL, NULL);
 gdal_dataset_copie->FlushCache();
 CPLErr statut_generation_pyramidage = 
gdal_dataset_copie->BuildOverviews("average", nb_pyramidage, anOverviewList, 
0, NULL, NULL, NULL);

 
gdal_dataset_copie->GetRasterBand(index_band)->SetColorInterpretation(poBand->GetColorInterpretation());
 gdal_dataset_copie->FlushCache();
 delete gdal_dataset_copie;
 delete gdal_dataset;

This code was working with FWTools 1.3.2. I don't know what to do now... I 
don't want to close the dataset, reopen it, build overview, close the 
dataset because of the loss of performance (which is really important).


Any idea ?

Thanks in advance !

Best regards,

Benoît Andrieu
+33.(0)1.30.08.95.21
[EMAIL PROTECTED]

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] Python documentation API

2008-12-10 Thread Jacolin Yves
Hello,

Some persons from OSGeo-fr began to work on a (french) python documentation. I 
created an API documentation using doxygen available here [1].

If some of you are interesting to work with us (take care that some of us are 
not python nor gdal-ogr guru) you can join us in this effort and we will work 
on an english documentation. Just contact me.

I hope the Python API documentation will help you ;) This is a first and quick 
test about this, but I have no way to automatize this and will be happy to 
find it in the GDAL-OGR website :)

thanks,

Y.
[1] http://wiki.gloobe.org/gdal/index.html
-- 
Yves Jacolin
---
http://softlibre.gloobe.org
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] python build error on svn trunk

2008-12-10 Thread Howard Butler


On Dec 10, 2008, at 6:54 AM, Kralidis,Tom [Ontario] wrote:


 File "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py",
line 98, in entries_finder
   log.warn("unrecognized .svn/entries format in %s", dirname)
NameError: global name 'log' is not defined


Tom,

I think your setuptools is out of date or has a bug in it. Try running http://peak.telecommunity.com/dist/ez_setup.py 
 as root and then attempting again.


Hope this helps,

Howard
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] Motion: Promote RC4 as official 1.6.0 Release

2008-12-10 Thread Frank Warmerdam



On Sat, Dec 06, 2008 at 08:12:15AM -0500, Frank Warmerdam wrote:
Motion: That the GDAL 1.6.0 RC4 release candidate be promoted to 
being our official 1.6.0 release.


Folks,

I declare this motion passed with support from DanielM, EvenR, AndreyK,
HowardB, TamasS and FrankW.

I have updated the download site and will issue a public announcement in
various relevant locations.

Good work team!

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, [EMAIL PROTECTED]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


RE: [gdal-dev] python build error on svn trunk

2008-12-10 Thread Kralidis,Tom [Ontario]
 

> -Original Message-
> From: Howard Butler [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, 10 December 2008 10:56
> To: Kralidis,Tom [Ontario]
> Cc: gdal-dev@lists.osgeo.org
> Subject: Re: [gdal-dev] python build error on svn trunk
> 
> 
> On Dec 10, 2008, at 6:54 AM, Kralidis,Tom [Ontario] wrote:
> >
> >  File 
> "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py",
> > line 98, in entries_finder
> >log.warn("unrecognized .svn/entries format in %s", dirname)
> > NameError: global name 'log' is not defined
> 
> Tom,
> 
> I think your setuptools is out of date or has a bug in it. 
> Try running http://peak.telecommunity.com/dist/ez_setup.py
>   as root and then attempting again.
> 

Worked.  Thx hobu

..Tom
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] gdalwarp cutting off projected image

2008-12-10 Thread Scott Lewis

Frank Warmerdam wrote:

Scott Lewis wrote:

Frank,

The image I've been trying to convert is at this URL.  It's about 
6MB, hopefully that's not too big.


ftp://sidads.colorado.edu/pub/incoming/glewis/polar.gtiff.tif

Basically, I'm trying to convert it to a plain-old EPGS:4326 (latlong 
projection).


I appreciate you taking a look.


Scott,

I have established the problem is the logic that computes the desired
extent of the output file.  It walks the edges of the input file,
transforming to WGS84 and ends up with incomplete extents because there
is no recognition that there is a topological discontinuity in the
transformation (the pole issue).

Normally my advice would be to use the SAMPLE_GRID=YES warp option to
force internal sampling of the region when computing the bounds, but
I have discovered that only applies to deciding what source region
to read during warping - not to the computation of the original warp
region.

So, in the meantime you can just force selection of output extents.
Something like:

gdalwarp -t_srs EPSG:4326 polar.gtiff.tif out.tif -te -180 28 180 90

When I have the ticket in hand, I'll plan to modify the
GDALSuggestedWarpOutput() function to allow forcing of internal gridding.
It would also be nice if I could automatically recognise this sort of
case to trigger it automatically, but I'm not sure how to do that
without quite a bit of extra work.

PS - I'm still new to the GDAL list; when you say file a Trac ticket, 
where would I do this?


Visit:

 http://trac.osgeo.org/gdal

There should be brief instructions on getting an OSGeo Userid which you
can use to login to the site, and then hit "New Ticket" to file a bug
report.  If you find this path isn't deducable from the main GDAL web
page, please email me suggestions on how to improve things.

Best regards,

Frank,

Thanks a lot for your help, that gdalwarp string worked great.  I'll 
submit a ticket today as well!


Scott
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] GDAL/OGR 1.6.0 Released

2008-12-10 Thread Frank Warmerdam

The GDAL/OGR project team is pleased to announce the release of
GDAL/OGR 1.6.0.  This release represents 11 months of new feature
development since the GDAL/OGR 1.5.0 release, as well as many bug
fixes.  The release source code is available as described at:

  http://trac.osgeo.org/gdal/wiki/DownloadSource

The new release includes the following feature highlights, with detailed
information on changes at:

  http://trac.osgeo.org/gdal/wiki/Release/1.6.0-News

New Raster Drivers:
 * BLX Magellan Topo Driver (New)
 * EIR Erdas Imagine Raw Driver (New)
 * Oracle GeoRaster Driver (New)
 * GRIB Driver (now part of standard distribution)
 * LCP (FARSITE) Driver (New)
 * Terralib driver (New)

New Vector Drivers:
 * Geoconcept Export Driver (New)
 * INGRES RDBMS Driver (New)
 * XPlane/Flightgear Driver (New)

General:
 * RFC 20: Preliminary support for alternate axis orientations in SRS.
 * On the fly access to data in .zip and .gz compressed files.
 * RFC 22: Support for reading from, and warping with RPC (Rational Polynomial
   Coefficients) from various formats.
 * Gaussian and Mode resampling added for overview generation.
 * Added raster to vector (polygon) conversion utility.
 * Added raster proximity utility.
 * Added raster sieve filtering utility.
 * Added -expand rgb/rgba ability to gdal_translate
 * Added cutline / blend support to gdalwarp.
 * Added -segmentize option to ogr2ogr to break long line segments.
 * RFC 23: Preliminary support for character set transcoding (in OGR for now).
 * RFC 21: OGR SQL supports type casting and field name aliasing

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, [EMAIL PROTECTED]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] Intructions to build GDAL for Java

2008-12-10 Thread Lucena, Ivan
Hi there,

I build the Java wrapper a couple of days ago following the instructions on [1] 
but now I need to help someone to 
build for Windows based on [2] but it looks like there was some changes that 
are not reflected on neither one of 
those instructions. For example, there is no more java.opt on the trunk [3].

I tried to run "nmake -f makefile.vc java" on "\swig" anyway but it fails and I 
don't want to expend much time 
debugging since the instructions are outdated.

Does anybody have an idea if there are new instructions for building the Java 
wrapper or if it's coming up shortly?

[1] http://trac.osgeo.org/gdal/wiki/GdalOgrInJavaBuildInstructionsUnix
[2] http://trac.osgeo.org/gdal/wiki/GdalOgrInJavaBuildInstructions
[3] http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/java

Regards,

Ivan

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] Python bindings for 1.6.0

2008-12-10 Thread Jason Roberts
First of all, many thanks and congratulations to the GDAL team for getting
the 1.6.0 release out the door. A special thanks to those of you who fixed
the OGR bugs I opened recently.

 

I am eager to try out the final release Python bindings for win32 for Python
2.4, 2.5, and 2.6. Do you know when these might be released? Currently, they
are available through pypi.python.org and easy_install for GDAL 1.5.2. Will
you be updating pypi with 1.6.0 anytime soon? Or is there a better way to
obtain them?

 

I would like to avoid building them myself, if possible. I know I can get
them from one of the GDAL build servers, but it appeared that the server
only built them for Python 2.5. I need them for both Python 2.4 and 2.5,
and, soon, Python 2.6.

 

Thanks,

Jason

 

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev