<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1515" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Pete,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>You must also have the CVS version of init.php and
kaMap.js, in case you didn't have those. It won't work otherwise. And make
sure that the JPEG outputformat exists in your mapfile. If it still doesn't
work, check the link for the tile, and see what value the 'i=' parameter in the
URL has. Should be "i=JPEG". Your mapfile layer definition looks ok to
me.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I should probably mention that on line 77 of
init.php, the imagetype for a particular layer is set to that of the mapfile if
a layer doesn't have an "imageformat" metadata parameter. So at the moment, the
imagetype in config.php gets ignored for tiles. Seemed like a good idea at the
time, but Paul said there was a reason for why it has to exist in config.php as
well......</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>--------------------------------------------------------------------------------<BR>From:
Peter Giencke [mailto:pgiencke@glc.org] <BR>Sent: 15 September 2005 23:41<BR>To:
'Jacob Delfos'<BR>Cc: <A
href="mailto:ka-map-users@lists.maptools.org">ka-map-users@lists.maptools.org</A><BR>Subject:
RE: [ka-Map-users] Highly Interested Developer with some questions</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>Jacob et al,</DIV>
<DIV> </DIV>
<DIV>Anyone else try this? I'm not having any luck. Despite setting the
imageformat param, the image (jpeg) is always taking the format specified in
config.php (gif). I'm using the stock cvs versions of tile.php and config.php
(with changes to only to the paths and strtoupper for tile.php). Am I missing
something really obvious?</DIV>
<DIV> </DIV>
<DIV>The problematic layer is below:</DIV>
<DIV> </DIV>
<DIV> LAYER<BR> NAME
jpl3<BR>
METADATA<BR> "wms_title"
"jpl2"<BR> "wms_srs"
"EPSG:4326"<BR> imageformat
"JPEG"<BR>
END<BR> TYPE
RASTER<BR> STATUS
default<BR> CONNECTIONTYPE
WMS<BR> CONNECTION "<A
href="http://wms.jpl.nasa.gov/wms.cgi">http://wms.jpl.nasa.gov/wms.cgi</A>
SERVICENAME=OGC:WMS&VERSION=1.1.1&REQUEST=GetMap&layers=global_mosaic&styles=&srs=EPSG:4326&format=image/jpeg"<BR>
PROJECTION<BR>
"init=epsg:4326"<BR>
END<BR> END</DIV>
<DIV> </DIV>
<DIV>-pete</DIV>
<DIV> </DIV>
<DIV><BR>--------------------------------------------------------------------------------<BR>From:
Jacob Delfos [mailto:jacob.delfos@maunsell.com] <BR>Sent: Wednesday, September
14, 2005 9:19 PM<BR>To: <A
href="mailto:pgiencke@glc.org">pgiencke@glc.org</A><BR>Cc: <A
href="mailto:ka-map-users@lists.maptools.org">ka-map-users@lists.maptools.org</A><BR>Subject:
RE: [ka-Map-users] Highly Interested Developer with some questions</DIV>
<DIV> </DIV>
<DIV><BR>Hi Pete,</DIV>
<DIV> </DIV>
<DIV>Yes, that's correct. To force a certain image format for a particular
layer, you can put</DIV>
<DIV> </DIV>
<DIV>METADATA<BR>[...]<BR>imageformat "JPEG"<BR>[...]<BR>END</DIV>
<DIV> </DIV>
<DIV>This way, you can pick whichever format is most appropriate to the content
(e.g. indexed colour for vector, RGB for raster). So you can mix multiple image
formats (JPEG, PNG24, GIF, etc), which allows you to get around the PNG
transparency problem by using GIF in combination with a full-colour format.
</DIV>
<DIV> </DIV>
<DIV>At this moment, the imageformat parameter must be uppercase for it to work.
Paul, could you maybe change this? On line 71 of tile.php, replace with:</DIV>
<DIV> </DIV>
<DIV> setOutputFormat(strtoupper($_REQUEST['i'])); </DIV>
<DIV> </DIV>
<DIV><BR>regards,</DIV>
<DIV> </DIV>
<DIV>Jacob</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>» -----Original Message-----<BR>» From: Peter Giencke
[mailto:pgiencke@glc.org] <BR>» Sent: 14 September 2005 20:46<BR>» To: <A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A><BR>»
Subject: RE: [ka-Map-users] Highly Interested Developer with <BR>» some
questions<BR>» <BR>» Jacob,<BR>» <BR>» I might be reading this wrong, but are
you saying that you're <BR>» using both<BR>» JPEG and PNG layers simultaneously
in ka-map? If so, I'd like <BR>» to hear the<BR>» details on doing this...<BR>»
<BR>» -pete<BR>» <BR>» <BR>» Jacob Delfos wrote:<BR>» > Clark / Pete,<BR>»
> <BR>» > Regarding the use of aerial photography and PNG24: I <BR>»
noticed that Paul <BR>» > has integrated the changes (png transparency hack)
into Ka-Map that <BR>» > allows PNG24 to be transparent in IE, along with
changes allowing <BR>» > different image formats for different groups (by
specifying an <BR>» > "imageformat" parameter in the metadata). So that is
not a <BR>» limitation <BR>» > anymore to the use of aerial photography. I
successfully use jpeg <BR>» > format for full-colour imagery, and gif for our
transparent <BR>» vector layers.<BR>» > <BR>» > Paul did mention
about having issues with the png transparency hack <BR>» > for<BR>» > 8
bit PNG images (which Mapserver appears to revert to for vector <BR>» > data,
even if PNG24 is the specified image format). But you <BR>» could now <BR>» >
instead use gif for transparent layers, while using jpeg for <BR>» >
non-transparent layers, retaining the ability for <BR>» full-colour images.
<BR>» > Gif transparency works in all browsers without problems, <BR>»
providing GIF <BR>» > is specified as default outputformat in the mapfile
(otherwise <BR>» > php_mapscript appears to produce non-transparent gif
images). I did <BR>» > some testing, which showed GIF appears to compress
indexed-colour <BR>» > images a fair bit better than<BR>» > PNG8 too
(lossless). For the JPEG layers, you can pick the desired <BR>» >
compression, and significantly reduce image sizes that way, <BR>» somewhat <BR>»
> reducing the speed problems that Pete mentioned.<BR>» > <BR>» >
regards,<BR>» > <BR>» > Jacob<BR>» > <BR>» > <BR>»
> <BR>» > <BR>» > <BR>» > <BR>»
----------------------------------------------------------------------<BR>» >
----------<BR>» > From: <A
href="mailto:ka-map-users-bounces@lists.maptools.org">ka-map-users-bounces@lists.maptools.org</A><BR>»
> <<A
href="mailto:ka-map-users-bounces@lists.maptools.org">mailto:ka-map-users-bounces@lists.maptools.org</A>><BR>»
> [mailto:ka-map-users-bounces@lists.maptools.org] On Behalf Of Peter <BR>»
> Giencke<BR>» > Sent: 14 September 2005 03:54<BR>» > To: <A
href="mailto:cendrizzi@gmail.com">cendrizzi@gmail.com</A> <<A
href="mailto:cendrizzi@gmail.com">mailto:cendrizzi@gmail.com</A>>; <BR>» >
<A
href="mailto:ka-map-users@lists.maptools.org">ka-map-users@lists.maptools.org</A>
<BR>» > <<A
href="mailto:ka-map-users@lists.maptools.org">mailto:ka-map-users@lists.maptools.org</A>><BR>»
> Subject: RE: [ka-Map-users] Highly Interested Developer with some <BR>»
> questions<BR>» > <BR>» > <BR>» > Clark,<BR>» >
<BR>» > 1) Yes you can; we've been using raster [wms] backdrops <BR>»
extensively in <BR>» > many of our ka-map implementations. I've found
however, <BR>» that speed can <BR>» > suffer (from mildly to greatly)
depending on the number and <BR>» complexity <BR>» > of rasters used (duh).
Also, best results are obtained when using <BR>» > PNG24 for this, but you'll
have to 'hack' ka-map to enable PNG <BR>» > transparency, so that 'layering'
works in IE. (There's a <BR>» thread for that<BR>» here:<BR>» > <BR>»
<A
href="http://lists.maptools.org/pipermail/ka-map-users/2005-August/0">http://lists.maptools.org/pipermail/ka-map-users/2005-August/0</A><BR>»
00235.html).<BR>» <BR>» > If these two concerns can be leveraged, the results
are <BR>» very nice (I <BR>» > have an example of this here: <A
href="http://mds.glc.org/kamap_cvs3/">http://mds.glc.org/kamap_cvs3/</A>).<BR>»
> <BR>» > 2. Assuming you take the time to peruse the api's source
code and <BR>» > consult the mailing-list archives, you should be able to get
up and <BR>» > running within a weekend, or week, depending... Although <BR>»
ka-map is a <BR>» > relatively new creation, it's still very functional at
this <BR>» early stage.<BR>» > <BR>» > -pete<BR>» > <BR>»
> <BR>» > <BR>»
----------------------------------------------------------------------<BR>» >
----------<BR>» > From: <A
href="mailto:ka-map-users-bounces@lists.maptools.org">ka-map-users-bounces@lists.maptools.org</A><BR>»
> <<A
href="mailto:ka-map-users-bounces@lists.maptools.org">mailto:ka-map-users-bounces@lists.maptools.org</A>><BR>»
> [mailto:ka-map-users-bounces@lists.maptools.org] On Behalf Of Clark <BR>»
> Endrizzi<BR>» > Sent: Tuesday, September 13, 2005 2:17 PM<BR>» > To:
<A
href="mailto:ka-map-users@lists.maptools.org">ka-map-users@lists.maptools.org</A>
<BR>» > <<A
href="mailto:ka-map-users@lists.maptools.org">mailto:ka-map-users@lists.maptools.org</A>><BR>»
> Subject: [ka-Map-users] Highly Interested Developer with some <BR>» >
questions<BR>» > <BR>» > <BR>» > I run a development group that
is developing a real estate <BR>» > application.(web based). It's PHP
and from the start we <BR>» have had the <BR>» > idea of including mapping
software to integrate with mapping stuff.<BR>» > We've looked at multiple web
based mapping vendors, <BR>» including Arc IMS, <BR>» > but haven't found
something that we consider a good <BR>» solution. We want <BR>» >
something that is easy to use like Google maps but also <BR>» very
flexible.<BR>» > Furthermore it's important that we have the ability to <BR>»
include it in <BR>» > our mostly closed source applicaton.<BR>» >
<BR>» > I'm not really a mapping guru as most of my incomplete <BR>»
knowledge comes <BR>» > from a mapping group in the same building so I have
some basic <BR>» > questions about whether we can use ka-map and contribute
to <BR>» it as well.<BR>» > 1. Can you use aerial photography with
ka-map? We use aerials <BR>» > provided by air photo USA and want to
use that on our web <BR>» based stuff. <BR>» > I'm guessing right now
only street maps are supported. <BR>» With aerials, <BR>» > we need to
use these images (they come in jpeg) and associate their <BR>» > world files
(which have the projection ifnormation in <BR>» them). Is this <BR>» >
something that could be done with this software (if it <BR>» doesn't exist <BR>»
> now could it be realistically added?).<BR>» > <BR>» > 2.
Could we expect to use this stuff by the end of the <BR>» year? Based
<BR>» > off the examples it looks like ka-map is pretty far along...<BR>»
> <BR>» > Actually that's probably all the questions for now since
our use of <BR>» > ka-maps is contigent on them. Currently we have four
developers <BR>» > including myself with pretty extensive experience in web
<BR>» development, <BR>» > javascript (including just starting to get into
"ajax" <BR>» stuff). I hope <BR>» > it's clear that we're not trying to
selfishly use and <BR>» expect ka-maps <BR>» > to work for us as we're
willing to improve it to meet our <BR>» needs if it <BR>» > doesn't have the
functionality.<BR>» > <BR>» > I hope this can work out since you
have done excellent work! <BR>» > <BR>» > Thanks,<BR>» > --<BR>»
> -Clark Endrizzi<BR>» > <<A
href="mailto:jacob.delfos@maunsell.com">mailto:jacob.delfos@maunsell.com</A>><BR>»
> <BR>» > <BR>» > <BR>»
----------------------------------------------------------------------<BR>» >
--<BR>» > <BR>» > _______________________________________________<BR>»
> ka-Map-users mailing list<BR>» > <A
href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</A><BR>»
> <A
href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users</A><BR>»
<BR>» -- <BR>»
+-----------------------------------------------------------------+<BR>» |Paul
Spencer
<A href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</A>
|<BR>» +-----------------------------------------------------------------+<BR>»
|Applications & Software
Development
|<BR>» |DM Solutions Group
Inc
<A href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</A>|<BR>»
+-----------------------------------------------------------------+<BR>»
_______________________________________________<BR>» ka-Map-users mailing
list<BR>» <A
href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</A><BR>»
<A
href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users</A><BR>»
</FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="mailto:jacob.delfos@maunsell.com"></A></FONT> </DIV></BODY></HTML>