[maplab-users] Maplab/Mapedit produces Zero Byte Images
T Steinmetz
tilmann.steinmetz at geo.uni-halle.de
Thu Nov 18 09:26:44 EST 2004
Hello Zak+ List,
thanks for the hints- I double checked the mapscript installation and in fact
recompiled and installed it. Additionally I upgraded to a manual installation
of Mapserver (not from the ports collection)(let me just mention that I am
absolutely no expert on this and I am fairly new to FreeBSD and this is the
first time I am trying "seriously" to use and install maplab (I got to know
it from Sourcepole's great GIS Knoppix CD)- so please bear with me if I don't
look look for problems in the perhaps 'obivous' places:
MapServer version 4.4.0-beta2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=TIFF
INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
PHP is version 4.3.9, this time compiled additionally with the FastCGI switch.
Again- the maplab info tells me it's installed ok (as is everything else). A
simple php_mapscript_info.php as described in the installation help is also
positive.
So I checked the tmp and ms_tmp folders, which, for the sake of simplicity, I
had first chosen to both live in /tmp/ at the drive root. As I was saying-
this way it seemed to work- files were being created in this place and maplab
appeared to find them (no complaints on either the web surface or in the log
files-- see logs below).
Now, I must admit, I have become confused by those relative paths and URLs in
the maplab configuration:
so I created an Apache Alias in the httpd.conf for /ms_tmp/ such as to point
to /tmp/ms_tmp/ (which, just to make sure, I chmod'ed to 777!) and pointed
tmp_web_imag_path in the xml-file to /ms_tmp/
tmp_img_path goes to /tmp/ms_tmp/
tmp_path points to /tmp/
Now, if I load my tutorial.map file (or my tutorial2.map file, which is the
same, just stripped down to the three objects: web, reference and Layer
(land_fn), the following files are created in my temporary directories,
which as I understand, looks quite ok, except those 0 byte sized png's...!?
neuerBesen# ls -Rla /tmp*
total 12
drwxrwxrwx 4 root wheel 512 Nov 18 14:51 .
drwxr-xr-x 20 root wheel 512 Nov 18 14:35 ..
-rw-r--r-- 1 www wheel 2738 Nov 18 14:51 419ca8e24dff1.map
drwxrwxrwx 2 root wheel 512 Nov 18 14:51 ms_tmp
drwxr-xr-x 2 www wheel 512 Nov 18 14:51 sess_419ca8e24dff1
/tmp/ms_tmp:
total 8
drwxrwxrwx 2 root wheel 512 Nov 18 14:51 .
drwxrwxrwx 4 root wheel 512 Nov 18 14:51 ..
-rw-r--r-- 1 www wheel 0 Nov 18 14:51 110078591529681.png
-rw-r--r-- 1 www wheel 0 Nov 18 14:51 110078591529682.png
-rw-r--r-- 1 www wheel 1392 Nov 18 14:51 110078591529683.png
-rw-r--r-- 1 www wheel 128 Nov 18 14:51 1100785915_0_0_20_10.png
/tmp/sess_419ca8e24dff1:
total 292
drwxr-xr-x 2 www wheel 512 Nov 18 14:51 .
drwxrwxrwx 4 root wheel 512 Nov 18 14:51 ..
-rw-r--r-- 1 www wheel 114973 Nov 18 14:51
1360833273419ca8e706ca13.54755875
-rw-r--r-- 1 www wheel 166360 Nov 18 14:51
1700849311419ca8fb7b46a8.12786127
-rw-r--r-- 1 www wheel 10059 Nov 18 14:51 session_file
Additionally, I checked the tail -f /var/log/httpd-error.log - nothing there
in this case!
The last couple of rows from "action_mapedit.log" look like this:
Start of tutorial.map file
#
#
";s:17:"mszEndingComments";s:9:"# Layer
";}}
[Thu.Nov.18.2004.14:55:17] fontset
is /usr/local/www/data/maplab-2.2/tutorial/etc/fonts.txt
[Thu.Nov.18.2004.14:55:17] symbolset
is /usr/local/www/data/maplab-2.2/tutorial/etc/symbols.sym
[Thu.Nov.18.2004.14:55:17] globprefs: processing action select_obj
[Thu.Nov.18.2004.14:55:17] select object requested.
[Thu.Nov.18.2004.14:55:17] writing object
to /tmp/sess_419ca8e24dff1/1424921656419ca9c5bf10c7.58676533
[Thu.Nov.18.2004.14:55:17] wrote 166575
to /tmp/sess_419ca8e24dff1/1424921656419ca9c5bf10c7.58676533
[Thu.Nov.18.2004.14:55:17] returning 1.
and from "preview_mapedit.log" like this:
";s:17:"mszEndingComments";s:9:"# Layer
";}}
[Thu.Nov.18.2004.14:51:55] fontset
is /usr/local/www/data/maplab-2.2/tutorial/etc/fonts.txt
[Thu.Nov.18.2004.14:51:55] symbolset
is /usr/local/www/data/maplab-2.2/tutorial/etc/symbols.sym
[Thu.Nov.18.2004.14:51:55] AppContext : getContextValue( rosa_file ) starting
[Thu.Nov.18.2004.14:51:55] AppContext : getContextValue( rosa_file )
starting
[Thu.Nov.18.2004.14:51:55] AppContext : rosa_file value is rosa/rosa.jar
[Thu.Nov.18.2004.14:51:55] AppContext : getContextValue( rosa_file ) done
[Thu.Nov.18.2004.14:51:55] AppContext : getContextValue( rosa_file ) done
[Thu.Nov.18.2004.14:51:55] AppContext : getContextValue( zoom_factor )
starting
[Thu.Nov.18.2004.14:51:55] AppContext : zoom_factor value is 2
[Thu.Nov.18.2004.14:51:55] AppContext : getContextValue( zoom_factor ) done
[Thu.Nov.18.2004.14:51:55] AppContext : getContextValue( min_zoom_rect )
starting
[Thu.Nov.18.2004.14:51:55] AppContext : min_zoom_rect value is 5
[Thu.Nov.18.2004.14:51:55] AppContext : getContextValue( min_zoom_rect ) done
[Thu.Nov.18.2004.14:51:55] MapSession_R : setTempDir() starting
[Thu.Nov.18.2004.14:51:55] MapSession_R : setTempDir() done
[Thu.Nov.18.2004.14:51:55] MapSession_R : restoreState() starting
[Thu.Nov.18.2004.14:51:55] MapSession_R : readMapFile() starting
[Thu.Nov.18.2004.14:51:55] MapSession_R : readMapFile - Open map
file[/tmp//419ca8e24dff1.map] was successful
[Thu.Nov.18.2004.14:51:55] MapSession_R : readMapFile() done
[Thu.Nov.18.2004.14:51:55] MapSession_R : restoreState() done
[Thu.Nov.18.2004.14:51:55] MapSession_R : restoreState() starting
[Thu.Nov.18.2004.14:51:55] MapSession_R : readMapFile() starting
[Thu.Nov.18.2004.14:51:55] MapSession_R : readMapFile - Open map
file[/tmp//419ca8e24dff1.map] was successful
[Thu.Nov.18.2004.14:51:55] MapSession_R : readMapFile() done
[Thu.Nov.18.2004.14:51:55] MapSession_R : restoreState() done
[Thu.Nov.18.2004.14:51:55] MapSession_R : processLegendTemplate() starting
[Thu.Nov.18.2004.14:51:55] MapSession_R : processLegendTemplate() done
[Thu.Nov.18.2004.14:51:55] MapSession_R : saveState() starting
[Thu.Nov.18.2004.14:51:55] MapSession_R : saveState new ID =
BBOX=-2598687.33333,-712631,3471487.33333,3840000|SRS=|LAYERS=0
[Thu.Nov.18.2004.14:51:55] MapSession_R : saveState() done
Am I not right in thinking that the creation of png's in the tmp folder,
though being empty files, is an indication of correct function (of
web-/mapserver and mapscript?)
Is there any way I can check if this is a problem in gd2?
As I mentioned in my first post, this problem is irrespective of the image
format (GIF, PNG, JPEG)- and whether or not ROSA is used or not. (although
now, in my Konqueror Browser on Debian Sarge, the applet/error console spits
out some error message about not being able to load an image, while when ROSA
is switched off no errors appear in the browser)
Can this be caused by some hickups during image creation caused by strange/
non existent fonts/symbols or whatever?- (this is why I stripped the
tutorial.map of most of the layers.)
I have no clue whatsoever what is going wrong here- has anyone else? I know
that maplab would be the perfect tool for what I need to do, just I need to
get it running.... HELP, please..!
Thanks a lot in advance,
Tilmann
Am Mittwoch, 17. November 2004 20:43 schrieb Zak James:
> Tilmann,
>
> Are you sure that you have the PHP mapscript module properly installed?
> The Itasca demo doesn't use that component. If it seems to be working,
> the next thing to do is to use Maplab's configuration tool to check
> that the directories set up within Maplab for web accessible and
> filesystem accessible images match up.
>
> It may also be worth checking your web server's error log to see if
> mapserver or php are generating any errors.
>
> zak
>
> On Nov 17, 2004, at 9:53 AM, T Steinmetz wrote:
> > Dear list,
> >
> > I wonder if anyone has encountered a similar problem- any help greatly
> > appreciated- as I've not found anything similar in the archives:
> >
> > I have installed Maplab on FreeBSD5.2.1 recently from an updated
> > Ports-Tree
> > (i.e. PHP4-cgi+Mapscript, Mapserver 4, Apache 1.3.33 or 2, tried them
> > both)-
> > now I encounter some problems which I can't seem to be able to solve:
> >
> > When I open the demo.map file in MapEdit and try to preview it I do
> > get the
> > frame, the legend and the operation buttons (zoom etc.) and the key
> > map but
> > not the main map! In it's place only an empty frame and a link called
> > "Anfrage senden" - "send query" show up or the empty Rosa applet frame
> > if I
> > enable that.
> >
> > I traced this back to image files in my temporary file folder which
> > are zero
> > bytes of size--- the mystery with this being that I am able to open the
> > "Itasca Demo" from the Mapserver Installation in the way I expect it to
> > work!? (not in Mapedit though!- there it's also an empty frame only)
> >
> > This is independent of whether I use PNG, JPEG or TIFF and, as
> > mentioned
> > above, of wheter I use ROSA or not. The info page of the maplab
> > installation
> > shows me the green ticks in all required places.
> >
> > So here's my resume:
> > Mapserver seems to be working OK
> > (Temporary file directories, permissions, webserver etc. OK).
> > Requirements for Maplab seem to be alright.
> >
> >
> > Hoping for someone to be able to shed some light on this...
> > thanks in advance,
> >
> > Tilmann
> > --
> > Dipl. Geol. MSc Tilmann Steinmetz
> > Umweltgeologie
> > Martin-Luther-Universität Halle-Wittenberg
> > Von-Seckendorff-Platz 3
> > 06120 Halle (Saale)
> >
> > Tel. 0345 55 26 136
> >
> > ***** NEU ***** tilmann.steinmetz at geo.uni-halle.de ***** NEU *****
> >
> > _______________________________________________
> > Maplab-users mailing list
> > Maplab-users at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/maplab-users
--
Dipl. Geol. MSc Tilmann Steinmetz
Umweltgeologie
Martin-Luther-Universität Halle-Wittenberg
Von-Seckendorff-Platz 3
06120 Halle (Saale)
Tel. 0345 55 26 136
***** NEU ***** tilmann.steinmetz at geo.uni-halle.de ***** NEU *****
More information about the Maplab-users
mailing list