From g.raimondi at glasic.it Wed Oct 4 14:33:55 2006 From: g.raimondi at glasic.it (Guglielmo Raimondi) Date: Wed, 4 Oct 2006 14:33:55 +0200 Subject: [Freegis-list] DXF to PostGIS SQL script converter Message-ID: <20061004123355.639DE1A1195@kolab.intevation.de> Proposal to add new project in FreeGIS project list. DXF2PostGIS A new Open Source tool to convert DXF files to PostGIS geometry tables. A single DXF file is converted to a PostgreSQL/PostGIS SQL script to create and populate 4 tables, using the AutoCAD information of point, line, polyline, text, circle, insert. License: GNU General Public License (GPL) Download: HYPERLINK "http://sourceforge.net/projects/dxf2postgis/"http://sourceforge.net/project s/dxf2postgis/ or HYPERLINK "http://www.glasic.it"http://www.glasic.it Regards, Guglielmo Raimondi -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.9/458 - Release Date: 27/09/2006 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.intevation.de/pipermail/freegis-list/attachments/20061004/bfebd4f9/attachment.html From naptrel at yahoo.co.uk Wed Oct 4 14:03:42 2006 From: naptrel at yahoo.co.uk (Nathaniel) Date: Wed, 4 Oct 2006 13:03:42 +0100 (BST) Subject: [Freegis-list] Time Zones Message-ID: <20061004120343.54646.qmail@web25015.mail.ukl.yahoo.com> Does anyone know if there is a free (or inexpensive) GIS dataset available which describes the world's time zones (the more local quirks included, the better) It seems like it should be a common requirement for many GIS systems---enabling the system to map a lat/lon to an offset from utc---but I've searched the internet and come up empty handed...well, almost: I did find references to an ESRI data set, but the link was defunct and I can't find the data on the ESRI website. I also found a link to: http://www.manifold.net/download/freemaps.html which looks like it may have what I'm after, but the link to the data set is unresponsive. Also, does anyone know of a way to get proprietary Manifold data (polygons, I presume?) into a Postresql/Postgis database? ___________________________________________________________ Nyy Arj Lnubb! Znvy ? Gverq bs Iv at te@! pbzr-baf? Yrg bhe FcnzThneq cebgrpg lbh. uggc://hx.qbpf.lnubb.pbz/abjlbhpna.ugzy From walter.simonazzi at gmail.com Thu Oct 12 14:13:31 2006 From: walter.simonazzi at gmail.com (Walter Simonazzi) Date: Thu, 12 Oct 2006 14:13:31 +0200 Subject: [Freegis-list] Vacancy for AGI Director - Excellent Competitive Salary + Benefits Message-ID: http://www.agi.org.uk/pooled/articles/BF_NEWSART/view.asp?Q=BF_NEWSART_215512 cheers, -- Walter Simonazzi Dominguez Divisi?n Tecnolog?a/GIS Dpt. Sistemas de Informaci?n Espacial Telvent Email: walter.simonazzi[at]telvent.abengoa.com Ronda de Tamarguillo, 29 41006 Sevilla. Espa?a. Tel.: +34 95 492 09 92 Fax: +34 95 492 39 21 From tzajc at conae.gov.ar Mon Oct 23 19:38:24 2006 From: tzajc at conae.gov.ar (Tomas Zajc) Date: Mon, 23 Oct 2006 14:38:24 -0300 Subject: [Freegis-list] Gdal on slackware Message-ID: <200610231438.25024.tzajc@conae.gov.ar> I'm trying to compile gdal-1.3.2 from the source code found at http://www.gdal.org/download.html. After running the configure script I get Installation directory: /usr/local C compiler: gcc -O2 C++ compiler: g++ -O2 LIBTOOL support: yes LIBZ support: external GRASS support: no CFITSIO support: no PCRaster support: internal NETCDF support: no LIBPNG support: external LIBTIFF support: external LIBGEOTIFF support: internal LIBJPEG support: external LIBGIF support: external OGDI support: no HDF4 support: no HDF5 support: yes KAKADU support: no JASPER support: no ECW support: no MrSID support: no POSTGRESQL support: no MySQL support: no XERCES support: no ODBC support: no OCI support: no SDE support: no DODS support: no SQLite support: no DWGdirect support no PANORAMA GIS support: no GEOS support: no Statically link PROJ.4: no Traditional Python: yes NG SWIG Bindings: enable OGR building: yes And when I run make i get the following error: /bin/sh /home/tomas/gdal-1.3.2/libtool --mode=compile g++ -Wall -O2 -DOGR_ENABLED -I/home/tomas/gdal-1.3.2/port -c -o cpl_vsil_unix_stdio_64.o cpl_vsil_unix_stdio_64.cpp g++ -Wall -O2 -DOGR_ENABLED -I/home/tomas/gdal-1.3.2/port -c cpl_vsil_unix_stdio_64.cpp -fPIC -DPIC -o .libs/cpl_vsil_unix_stdio_64.o g++ -Wall -O2 -DOGR_ENABLED -I/home/tomas/gdal-1.3.2/port -c cpl_vsil_unix_stdio_64.cpp -o cpl_vsil_unix_stdio_64.o >/dev/null 2>&1 make[1]: Leaving directory `/home/tomas/gdal-1.3.2/port' (cd gcore; make) make[1]: Entering directory `/home/tomas/gdal-1.3.2/gcore' make[1]: *** No targets specified and no makefile found. Stop. make[1]: Leaving directory `/home/tomas/gdal-1.3.2/gcore' make: *** [core-target] Error 2 Any sugestion? Thamks, Tomas From warmerdam at pobox.com Mon Oct 23 20:11:51 2006 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 23 Oct 2006 14:11:51 -0400 Subject: [Freegis-list] Gdal on slackware In-Reply-To: <200610231438.25024.tzajc@conae.gov.ar> References: <200610231438.25024.tzajc@conae.gov.ar> Message-ID: <453D05E7.7050807@pobox.com> Tomas Zajc wrote: > I'm trying to compile gdal-1.3.2 from the source code found at > http://www.gdal.org/download.html. After running the configure script I get > > Installation directory: /usr/local > C compiler: gcc -O2 > C++ compiler: g++ -O2 > > LIBTOOL support: yes > > LIBZ support: external > GRASS support: no > CFITSIO support: no > PCRaster support: internal > NETCDF support: no > LIBPNG support: external > LIBTIFF support: external > LIBGEOTIFF support: internal > LIBJPEG support: external > LIBGIF support: external > OGDI support: no > HDF4 support: no > HDF5 support: yes > KAKADU support: no > JASPER support: no > ECW support: no > MrSID support: no > POSTGRESQL support: no > MySQL support: no > XERCES support: no > ODBC support: no > OCI support: no > SDE support: no > DODS support: no > SQLite support: no > DWGdirect support no > PANORAMA GIS support: no > GEOS support: no > > Statically link PROJ.4: no > > Traditional Python: yes > NG SWIG Bindings: > > enable OGR building: yes > > And when I run make i get the following error: > > /bin/sh /home/tomas/gdal-1.3.2/libtool --mode=compile > g++ -Wall -O2 -DOGR_ENABLED -I/home/tomas/gdal-1.3.2/port -c -o > cpl_vsil_unix_stdio_64.o cpl_vsil_unix_stdio_64.cpp > g++ -Wall -O2 -DOGR_ENABLED -I/home/tomas/gdal-1.3.2/port -c > cpl_vsil_unix_stdio_64.cpp -fPIC -DPIC -o .libs/cpl_vsil_unix_stdio_64.o > g++ -Wall -O2 -DOGR_ENABLED -I/home/tomas/gdal-1.3.2/port -c > cpl_vsil_unix_stdio_64.cpp -o cpl_vsil_unix_stdio_64.o >/dev/null 2>&1 > make[1]: Leaving directory `/home/tomas/gdal-1.3.2/port' > (cd gcore; make) > make[1]: Entering directory `/home/tomas/gdal-1.3.2/gcore' > make[1]: *** No targets specified and no makefile found. Stop. > make[1]: Leaving directory `/home/tomas/gdal-1.3.2/gcore' > make: *** [core-target] Error 2 > > Any sugestion? Tomas, Is there a GNUmakefile in the gdal-1.3.2/gcore directory? I'm really not too clear on what the port directory would build, but the gcore directory would not. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From tzajc at conae.gov.ar Mon Oct 23 21:48:06 2006 From: tzajc at conae.gov.ar (Tomas Zajc) Date: Mon, 23 Oct 2006 16:48:06 -0300 Subject: [Freegis-list] Gdal on slackware In-Reply-To: <453D05E7.7050807@pobox.com> References: <200610231438.25024.tzajc@conae.gov.ar> <453D05E7.7050807@pobox.com> Message-ID: <200610231648.06573.tzajc@conae.gov.ar> As a mater of fact for some reason there was nothing on the gcore directory. I downloaded back gdal and decompressed using an other method. This time I could compile it using "./configure", "make" and "make install". I'm a bit lost anda I couldn't find much documantation. When I try to run ogr2ogr I get "ogr2ogr: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory". I got them at: /usr/local/lib/libgdal.a /usr/local/lib/libgdal.la /usr/local/lib/libgdal.so /usr/local/lib/libgdal.so.1 /usr/local/lib/libgdal.so.1.10.0 Do you know where can I get any documentation on how to compile a C program that uses gdal using gcc. Should I use the flags kisted by "gdal-config --libs; gdal --dep-libs"? In may case they are: -L/usr/local/lib -lgdal and -lhdf5 -lgif -ljpeg -ltiff -lpng -lz -lm -lrt -ldl Thanks, Tomas On Monday 23 October 2006 15:11, Frank Warmerdam wrote: > Tomas Zajc wrote: > > I'm trying to compile gdal-1.3.2 from the source code found at > > http://www.gdal.org/download.html. After running the configure script I > > get > > > > Installation directory: /usr/local > > C compiler: gcc -O2 > > C++ compiler: g++ -O2 > > > > LIBTOOL support: yes > > > > LIBZ support: external > > GRASS support: no > > CFITSIO support: no > > PCRaster support: internal > > NETCDF support: no > > LIBPNG support: external > > LIBTIFF support: external > > LIBGEOTIFF support: internal > > LIBJPEG support: external > > LIBGIF support: external > > OGDI support: no > > HDF4 support: no > > HDF5 support: yes > > KAKADU support: no > > JASPER support: no > > ECW support: no > > MrSID support: no > > POSTGRESQL support: no > > MySQL support: no > > XERCES support: no > > ODBC support: no > > OCI support: no > > SDE support: no > > DODS support: no > > SQLite support: no > > DWGdirect support no > > PANORAMA GIS support: no > > GEOS support: no > > > > Statically link PROJ.4: no > > > > Traditional Python: yes > > NG SWIG Bindings: > > > > enable OGR building: yes > > > > And when I run make i get the following error: > > > > /bin/sh /home/tomas/gdal-1.3.2/libtool --mode=compile > > g++ -Wall -O2 -DOGR_ENABLED -I/home/tomas/gdal-1.3.2/port -c -o > > cpl_vsil_unix_stdio_64.o cpl_vsil_unix_stdio_64.cpp > > g++ -Wall -O2 -DOGR_ENABLED -I/home/tomas/gdal-1.3.2/port -c > > cpl_vsil_unix_stdio_64.cpp -fPIC -DPIC -o .libs/cpl_vsil_unix_stdio_64.o > > g++ -Wall -O2 -DOGR_ENABLED -I/home/tomas/gdal-1.3.2/port -c > > cpl_vsil_unix_stdio_64.cpp -o cpl_vsil_unix_stdio_64.o >/dev/null 2>&1 > > make[1]: Leaving directory `/home/tomas/gdal-1.3.2/port' > > (cd gcore; make) > > make[1]: Entering directory `/home/tomas/gdal-1.3.2/gcore' > > make[1]: *** No targets specified and no makefile found. Stop. > > make[1]: Leaving directory `/home/tomas/gdal-1.3.2/gcore' > > make: *** [core-target] Error 2 > > > > Any sugestion? > > Tomas, > > Is there a GNUmakefile in the gdal-1.3.2/gcore directory? I'm really not > too clear on what the port directory would build, but the gcore directory > would not. > > Best regards, From j.j.green at sheffield.ac.uk Mon Oct 23 22:00:41 2006 From: j.j.green at sheffield.ac.uk (J.J.Green) Date: Mon, 23 Oct 2006 21:00:41 +0100 (BST) Subject: [Freegis-list] Gdal on slackware In-Reply-To: <200610231648.06573.tzajc@conae.gov.ar> References: <200610231438.25024.tzajc@conae.gov.ar> <453D05E7.7050807@pobox.com> <200610231648.06573.tzajc@conae.gov.ar> Message-ID: Hi Tomas > When I try to run ogr2ogr I get "ogr2ogr: error while loading shared > libraries: libgdal.so.1: cannot open shared object file: No such file or > directory". > > I got them at: > > /usr/local/lib/libgdal.a > /usr/local/lib/libgdal.la > /usr/local/lib/libgdal.so You need to tell your OS to use shared libraries from /usr/local/lib, many do not since it might be a security risk. On debian add the directory to /etc/ld.so.conf and run ldconfig -- other unicies may vary: check ldconfig(1) -j -- J.J. Green, Dept. Applied Mathematics, Hicks Bld., University of Sheffield, UK. +44 (0114) 222 3742 http://pdfb.wiredworkplace.net/pub/jjg From Jeroen.Ticheler at fao.org Tue Oct 24 16:10:22 2006 From: Jeroen.Ticheler at fao.org (Jeroen Ticheler) Date: Tue, 24 Oct 2006 16:10:22 +0200 Subject: [Freegis-list] GeoFOSS DVD content online Message-ID: Dear all, Following up on my announcement from yesterday concerning the updated GeoNetwork opensource DVD, including many other geospatial open source software, I have now made the content available at the following address: http://tecproda01.fao.org/geofoss_dvd/ The maintenance release GeoNetwork opensource version 2.0.3 is part of this content. This provides an easy interface into the DVD content and is hopefully useful. As said, the DVD is in print and will hopefully be available at UNGIWG and GSDI-9 in Santiago. The ISO image (2GB) can be downloaded from ftp://tecproda01.fao.org/pub/gn_os/GN_OS203.iso and from http://ldap.telascience.org/foss4g/ (http://ldap.telascience.org/ foss4g/GN_OS203.iso) thanks to OSGEO Greetings from Rome, Jeroen From jmckenna at dmsolutions.ca Thu Oct 26 21:30:23 2006 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Thu, 26 Oct 2006 15:30:23 -0400 Subject: [Freegis-list] Request for Proposal for Hosting 2007 Conference Message-ID: <45410CCF.3010804@dmsolutions.ca> The Open Source Geospatial Foundation, or OSGeo, today announced that the OSGeo Conference committee has released a request for proposal, or RFP, (available at http://community.osgeo.org/files/osgeo-conference-2007-request-for-proposal.pdf) for the hosting of the 2007 conference. After a very successful FOSS4G 2006 conference in Lausanne Switzerland (http://www.foss4g2006.org/), OSGeo aims for the 2007 conference to be *the* geospatial conference of the year. The RFP solicitation closes Dec 1st, 2006. thanks. --- OSGeo Conference Committee From cmsvcrai at btinternet.com Sat Oct 28 21:40:45 2006 From: cmsvcrai at btinternet.com (cmsvcrai) Date: Sat, 28 Oct 2006 12:40:45 -0700 (PDT) Subject: [Freegis-list] free GIS planning process Message-ID: <7053792.post@talk.nabble.com> Hello there For the last four years i have spent most of my time researching an effective planning process to reduce GIS Planning complexity, and therefore created a web-based tool named GISMO. I am now in the testing phase of the web-site, and have come accross you within a search engine - noticing that you too are interested in GIS planning. Can you test my website for me by creating a new user account. Please send me as much feedback as you can relating to the planning process and how to improve the website. GISMO will take you about 15 minutes if you can invent a purpose for the creation of a GIS (maybe not in reality - just for testing purpose). The URL is: www.gism0.co.uk Liverpool John Moores University have a new GIS laboratory and would like to invite you or various members of your organisation to participate with future research and events as a thank you for taking part with this research programme. Regards Vicky Craig Liverpool John Moores University, UK. -- View this message in context: http://www.nabble.com/free-GIS-planning-process-tf2531298.html#a7053792 Sent from the FreeGIS mailing list archive at Nabble.com. From tzajc at conae.gov.ar Tue Oct 31 20:19:21 2006 From: tzajc at conae.gov.ar (Tomas Zajc) Date: Tue, 31 Oct 2006 16:19:21 -0300 Subject: [Freegis-list] Creating JPEG images with gdal Message-ID: <200610311619.21553.tzajc@conae.gov.ar> Hi. I hope this is the right place to make this question. I'm taking my first steps with the gdal library on C and almost my first steps in C programming. I'm truing to creta some small jpg's using gdal. I know there are two methods for generating images using gdal: GDALCreateCopy and GDALCreate. I made a small program in which you can specify the driver at execution time. When I use GTiff i get no problems. If I try to use JPEG I get: "ERROR 6: GDALDriver::Create() ... no create method implemented for this format." I'm a bit lost, http://www.gdal.org/formats_list.html says JPEG can be used for creation. Thanks, Tomas From warmerdam at pobox.com Tue Oct 31 20:34:16 2006 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 31 Oct 2006 14:34:16 -0500 Subject: [Freegis-list] Creating JPEG images with gdal In-Reply-To: <200610311619.21553.tzajc@conae.gov.ar> References: <200610311619.21553.tzajc@conae.gov.ar> Message-ID: <4547A538.7010804@pobox.com> Tomas Zajc wrote: > Hi. I hope this is the right place to make this question. I'm taking my first > steps with the gdal library on C and almost my first steps in C programming. > I'm truing to creta some small jpg's using gdal. > I know there are two methods for generating images using gdal: GDALCreateCopy > and GDALCreate. > > I made a small program in which you can specify the driver at execution time. > When I use GTiff i get no problems. If I try to use JPEG I get: > > "ERROR 6: GDALDriver::Create() ... no create method implemented for this > format." > > I'm a bit lost, http://www.gdal.org/formats_list.html says JPEG can be used > for creation. Tomas, JPEG and most drivers for compressed formats in GDAL only support the CreateCopy() mechanism. The formats list document means creation using one of Create() or CreateCopy(), and isn't meant to imply random writing is supported (as is the case with Create()). Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From tzajc at conae.gov.ar Tue Oct 31 21:52:52 2006 From: tzajc at conae.gov.ar (Tomas Zajc) Date: Tue, 31 Oct 2006 17:52:52 -0300 Subject: [Freegis-list] Creating JPEG images with gdal In-Reply-To: <4547A538.7010804@pobox.com> References: <200610311619.21553.tzajc@conae.gov.ar> <4547A538.7010804@pobox.com> Message-ID: <200610311752.52650.tzajc@conae.gov.ar> Correctme if I'm wrong. I can't use gdal to export an image I have on memory (ie. on an array). I want to open an existin file usin gda or reading a raw data (manualy) make some modifications (filtering, resampling, etc) and export as JPEG. Maybe I should just use the plain jpg library to dump my array on a file. Thanks, Tomas On Tuesday 31 October 2006 16:34, Frank Warmerdam wrote: > Tomas Zajc wrote: > > Hi. I hope this is the right place to make this question. I'm taking my > > first steps with the gdal library on C and almost my first steps in C > > programming. I'm truing to creta some small jpg's using gdal. > > I know there are two methods for generating images using gdal: > > GDALCreateCopy and GDALCreate. > > > > I made a small program in which you can specify the driver at execution > > time. When I use GTiff i get no problems. If I try to use JPEG I get: > > > > "ERROR 6: GDALDriver::Create() ... no create method implemented for this > > format." > > > > I'm a bit lost, http://www.gdal.org/formats_list.html says JPEG can be > > used for creation. > > Tomas, > > JPEG and most drivers for compressed formats in GDAL only support the > CreateCopy() mechanism. The formats list document means creation using > one of Create() or CreateCopy(), and isn't meant to imply random writing > is supported (as is the case with Create()). > > Best regards, From warmerdam at pobox.com Tue Oct 31 22:10:52 2006 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 31 Oct 2006 16:10:52 -0500 Subject: [Freegis-list] Creating JPEG images with gdal In-Reply-To: <200610311752.52650.tzajc@conae.gov.ar> References: <200610311619.21553.tzajc@conae.gov.ar> <4547A538.7010804@pobox.com> <200610311752.52650.tzajc@conae.gov.ar> Message-ID: <4547BBDC.8040303@pobox.com> Tomas Zajc wrote: > Correctme if I'm wrong. I can't use gdal to export an image I have on memory > (ie. on an array). I want to open an existin file usin gda or reading a raw > data (manualy) make some modifications (filtering, resampling, etc) and > export as JPEG. Maybe I should just use the plain jpg library to dump my > array on a file. Tomas, First, I should likely have mentioned last time that the gdal-dev mailing list would be a more appropriate place for this discussion. It is possible to use CreateCopy() with a memory array as the input, though it is somewhat involved since you need to create a "virtual dataset" wrapper for your memory array. I have included an example of how this is accomplished in mapserver below if you would like an example. Of course it may well be easier to just write it using the jpeg library if that is all you want to do. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org /************************************************************************/ /* msSaveImageGDAL() */ /************************************************************************/ int msSaveImageGDAL( mapObj *map, imageObj *image, char *filename ) { int bFileIsTemporary = MS_FALSE; GDALDatasetH hMemDS, hOutputDS; GDALDriverH hMemDriver, hOutputDriver; int nBands = 1; int iLine; GByte *pabyAlphaLine = NULL; char **papszOptions = NULL; outputFormatObj *format = image->format; GDALDataType eDataType = GDT_Byte; msGDALInitialize(); /* -------------------------------------------------------------------- */ /* We will need to write the output to a temporary file and */ /* then stream to stdout if no filename is passed. */ /* -------------------------------------------------------------------- */ if( filename == NULL ) { const char *pszExtension = format->extension; if( pszExtension == NULL ) pszExtension = "img.tmp"; if( map != NULL && map->web.imagepath != NULL ) filename = msTmpFile(map->mappath,map->web.imagepath,pszExtension); else { #ifndef _WIN32 filename = msTmpFile(NULL, "/tmp/", pszExtension ); #else filename = msTmpFile(NULL, "C:\\", pszExtension ); #endif } bFileIsTemporary = MS_TRUE; } /* -------------------------------------------------------------------- */ /* Establish the characteristics of our memory, and final */ /* dataset. */ /* -------------------------------------------------------------------- */ if( format->imagemode == MS_IMAGEMODE_RGB ) { nBands = 3; assert( gdImageTrueColor( image->img.gd ) ); } else if( format->imagemode == MS_IMAGEMODE_RGBA ) { pabyAlphaLine = (GByte *) calloc(image->width,1); nBands = 4; assert( gdImageTrueColor( image->img.gd ) ); } else if( format->imagemode == MS_IMAGEMODE_INT16 ) { nBands = format->bands; eDataType = GDT_Int16; } else if( format->imagemode == MS_IMAGEMODE_FLOAT32 ) { nBands = format->bands; eDataType = GDT_Float32; } else if( format->imagemode == MS_IMAGEMODE_BYTE ) { nBands = format->bands; eDataType = GDT_Byte; } else { assert( format->imagemode == MS_IMAGEMODE_PC256 && !gdImageTrueColor( image->img.gd ) ); } /* -------------------------------------------------------------------- */ /* Create a memory dataset which we can use as a source for a */ /* CreateCopy(). */ /* -------------------------------------------------------------------- */ msAcquireLock( TLOCK_GDAL ); hMemDriver = GDALGetDriverByName( "MEM" ); if( hMemDriver == NULL ) { msReleaseLock( TLOCK_GDAL ); msSetError( MS_MISCERR, "Failed to find MEM driver.", "msSaveImageGDAL()" ); return MS_FAILURE; } hMemDS = GDALCreate( hMemDriver, "msSaveImageGDAL_temp", image->width, image->height, nBands, eDataType, NULL ); if( hMemDS == NULL ) { msReleaseLock( TLOCK_GDAL ); msSetError( MS_MISCERR, "Failed to create MEM dataset.", "msSaveImageGDAL()" ); return MS_FAILURE; } /* -------------------------------------------------------------------- */ /* Copy the gd image into the memory dataset. */ /* -------------------------------------------------------------------- */ for( iLine = 0; iLine < image->height; iLine++ ) { int iBand; for( iBand = 0; iBand < nBands; iBand++ ) { GDALRasterBandH hBand = GDALGetRasterBand( hMemDS, iBand+1 ); if( format->imagemode == MS_IMAGEMODE_INT16 ) { GDALRasterIO( hBand, GF_Write, 0, iLine, image->width, 1, image->img.raw_16bit + iLine * image->width + iBand * image->width * image->height, image->width, 1, GDT_Int16, 2, 0 ); } else if( format->imagemode == MS_IMAGEMODE_FLOAT32 ) { GDALRasterIO( hBand, GF_Write, 0, iLine, image->width, 1, image->img.raw_float + iLine * image->width + iBand * image->width * image->height, image->width, 1, GDT_Float32, 4, 0 ); } else if( format->imagemode == MS_IMAGEMODE_BYTE ) { GDALRasterIO( hBand, GF_Write, 0, iLine, image->width, 1, image->img.raw_byte + iLine * image->width + iBand * image->width * image->height, image->width, 1, GDT_Byte, 1, 0 ); } #if GD2_VERS > 1 else if( nBands > 1 && iBand < 3 ) { GByte *pabyData; #ifdef CPL_MSB pabyData = ((GByte *) image->img.gd->tpixels[iLine])+iBand+1; #else pabyData = ((GByte *) image->img.gd->tpixels[iLine])+(2-iBand); #endif GDALRasterIO( hBand, GF_Write, 0, iLine, image->width, 1, pabyData, image->width, 1, GDT_Byte, 4, 0 ); } else if( nBands > 1 && iBand == 3 ) /* Alpha band */ { int x; #ifdef CPL_MSB GByte *pabySrc = ((GByte *) image->img.gd->tpixels[iLine]); #else GByte *pabySrc = ((GByte *) image->img.gd->tpixels[iLine])+3; #endif for( x = 0; x < image->width; x++ ) { if( *pabySrc == 127 ) pabyAlphaLine[x] = 0; else pabyAlphaLine[x] = 255 - 2 * *pabySrc; pabySrc += 4; } GDALRasterIO( hBand, GF_Write, 0, iLine, image->width, 1, pabyAlphaLine, image->width, 1, GDT_Byte, 1, 0 ); } #endif else { GDALRasterIO( hBand, GF_Write, 0, iLine, image->width, 1, image->img.gd->pixels[iLine], image->width, 1, GDT_Byte, 0, 0 ); } } } if( pabyAlphaLine != NULL ) free( pabyAlphaLine ); /* -------------------------------------------------------------------- */ /* Attach the palette if appropriate. */ /* -------------------------------------------------------------------- */ if( format->imagemode == MS_IMAGEMODE_PC256 ) { GDALColorEntry sEntry; int iColor; GDALColorTableH hCT; hCT = GDALCreateColorTable( GPI_RGB ); for( iColor = 0; iColor < image->img.gd->colorsTotal; iColor++ ) { sEntry.c1 = image->img.gd->red[iColor]; sEntry.c2 = image->img.gd->green[iColor]; sEntry.c3 = image->img.gd->blue[iColor]; if( iColor == gdImageGetTransparent( image->img.gd ) ) sEntry.c4 = 0; else if( iColor == 0 && gdImageGetTransparent( image->img.gd ) == -1 && format->transparent ) sEntry.c4 = 0; else sEntry.c4 = 255; GDALSetColorEntry( hCT, iColor, &sEntry ); } GDALSetRasterColorTable( GDALGetRasterBand( hMemDS, 1 ), hCT ); GDALDestroyColorTable( hCT ); } #if GDAL_VERSION_NUM > 1170 else if( format->imagemode == MS_IMAGEMODE_RGB ) { GDALSetRasterColorInterpretation( GDALGetRasterBand( hMemDS, 1 ), GCI_RedBand ); GDALSetRasterColorInterpretation( GDALGetRasterBand( hMemDS, 2 ), GCI_GreenBand ); GDALSetRasterColorInterpretation( GDALGetRasterBand( hMemDS, 3 ), GCI_BlueBand ); } else if( format->imagemode == MS_IMAGEMODE_RGBA ) { GDALSetRasterColorInterpretation( GDALGetRasterBand( hMemDS, 1 ), GCI_RedBand ); GDALSetRasterColorInterpretation( GDALGetRasterBand( hMemDS, 2 ), GCI_GreenBand ); GDALSetRasterColorInterpretation( GDALGetRasterBand( hMemDS, 3 ), GCI_BlueBand ); GDALSetRasterColorInterpretation( GDALGetRasterBand( hMemDS, 4 ), GCI_AlphaBand ); } #endif /* -------------------------------------------------------------------- */ /* Assign the projection and coordinate system to the memory */ /* dataset. */ /* -------------------------------------------------------------------- */ if( map != NULL ) { char *pszWKT; GDALSetGeoTransform( hMemDS, map->gt.geotransform ); pszWKT = msProjectionObjToWKT( &(map->projection) ); if( pszWKT != NULL ) { GDALSetProjection( hMemDS, pszWKT ); CPLFree( pszWKT ); } } /* -------------------------------------------------------------------- */ /* Create a disk image in the selected output format from the */ /* memory image. */ /* -------------------------------------------------------------------- */ hOutputDriver = GDALGetDriverByName( format->driver+5 ); if( hOutputDriver == NULL ) { GDALClose( hMemDS ); msReleaseLock( TLOCK_GDAL ); msSetError( MS_MISCERR, "Failed to find %s driver.", "msSaveImageGDAL()", format->driver+5 ); return MS_FAILURE; } papszOptions = (char**)calloc(sizeof(char *),(format->numformatoptions+1)); memcpy( papszOptions, format->formatoptions, sizeof(char *) * format->numformatoptions ); hOutputDS = GDALCreateCopy( hOutputDriver, filename, hMemDS, FALSE, papszOptions, NULL, NULL ); free( papszOptions ); if( hOutputDS == NULL ) { GDALClose( hMemDS ); msReleaseLock( TLOCK_GDAL ); msSetError( MS_MISCERR, "Failed to create output %s file.\n%s", "msSaveImageGDAL()", format->driver+5, CPLGetLastErrorMsg() ); return MS_FAILURE; } /* closing the memory DS also frees all associated resources. */ GDALClose( hMemDS ); GDALClose( hOutputDS ); msReleaseLock( TLOCK_GDAL ); /* -------------------------------------------------------------------- */ /* Is this supposed to be a temporary file? If so, stream to */ /* stdout and delete the file. */ /* -------------------------------------------------------------------- */ if( bFileIsTemporary ) { FILE *fp; unsigned char block[4000]; int bytes_read; if( msIO_needBinaryStdout() == MS_FAILURE ) return MS_FAILURE; fp = fopen( filename, "rb" ); if( fp == NULL ) { msSetError( MS_MISCERR, "Failed to open %s for streaming to stdout.", "msSaveImageGDAL()", filename ); return MS_FAILURE; } while( (bytes_read = fread(block, 1, sizeof(block), fp)) > 0 ) msIO_fwrite( block, 1, bytes_read, stdout ); fclose( fp ); unlink( filename ); free( filename ); } return MS_SUCCESS; } From neteler at itc.it Tue Oct 31 21:35:27 2006 From: neteler at itc.it (Markus Neteler) Date: Tue, 31 Oct 2006 21:35:27 +0100 Subject: [Freegis-list] GRASS GIS 6.2.0 released 31 Oct 2006 Message-ID: <20061031203527.GB8239@bartok.itc.it> GRASS GIS releases version 6.2.0 31 October 2006 http://grass.itc.it This new stable release adds hundreds of new features, support for the latest GIS data formats, and includes new translations for many languages. The Geographic Resources Analysis Support System (GRASS) is a Geographic Information System (GIS) used for spatial modeling, visualization of both raster and vector data, geospatial data management and analysis, processing of satellite and aerial imagery, and production of sophisticated presentation graphics and hardcopy maps. GRASS combines powerful raster, vector, and geospatial processing engines into a single integrated software package. The GRASS GIS project is developed under the terms of the GNU General Public License (the GPL) by volunteers the world over. GRASS differs from many other GIS software packages used in the professional world in that it is developed and distributed by users for users, mostly on a volunteer basis, in the open, and is given away for free. Emphasis is placed on interoperability and unlimited access to data as well as on software flexibility and evolution rate. The source code is freely available allowing for immediate customization, examination of the underlying algorithms, addition of new features, and fast bug fixing. GRASS is currently used around the world in academic and commercial settings as well as by many governmental agencies and environmental consulting companies. Download at http://grass.itc.it/download/ and http://grass.ibiblio.org/download/ as well as many mirror sites. Detailed announcement: http://grass.itc.it/announces/announce_grass620.html From and.arnold at gmx.de Tue Oct 31 09:11:32 2006 From: and.arnold at gmx.de (Andreas Arnold) Date: Tue, 31 Oct 2006 09:11:32 +0100 Subject: [Freegis-list] Mapstorer Message-ID: <20061031081132.232740@gmx.net> Hallo Liste, ich versuche im Moment den Mapstorer07 zum laufen zu bringen, leider scheitert dieser Versuch schon am Anfang beim einrichten der MySQL-Datenbank. Folgenden Fehler meldet MySQL wenn ich diesen Befehl ausf?hre: mysql> source c:/htdocs/mapstorer/database/mapstorer_mysql.sql ------------------------------------------------ ERROR 1064:You have an error in your SQL syntax. Check the manual that corresponds to you MySQL server version for the right syntax to use near 'CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, ------------------------------------------------ Danach versucht MySQL die Datenbank einzulesen aber es kommen nur Fehler. Was mache ich falsch? Oder muss man etwas installiert haben bevor man die Datenbank einliest? Kann mir jemand helfen, ich w?rde gerne den Mapstorer07 bei mir einrichten. Gru? Andreas -- GMX DSL-Flatrate 0,- Euro* - ?berall, wo DSL verf?gbar ist! NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl