<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=062243515-15092005><FONT face=Arial
size=2>Jacob et al,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=062243515-15092005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=062243515-15092005><FONT face=Arial
size=2>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?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=062243515-15092005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=062243515-15092005><FONT face=Arial
size=2>The problematic layer is below:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=062243515-15092005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=062243515-15092005><FONT face=Arial
size=2> 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 SERVICENAME=OGC:WMS&VERSION=1.1.1&REQUEST=GetMap&layers=global_mosaic&styles=&srs=EPSG:4326&format=image/jpeg"><FONT
color=#000000>http://wms.jpl.nasa.gov/wms.cgi
SERVICENAME=OGC:WMS&VERSION=1.1.1&REQUEST=GetMap&layers=global_mosaic&styles=&srs=EPSG:4326&format=image/jpeg</FONT></A>"<BR>
PROJECTION<BR>
"init=epsg:4326"<BR>
END<BR> END</FONT></SPAN></DIV>
<DIV><SPAN class=062243515-15092005></SPAN><FONT face=Arial><FONT
size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>-pete<SPAN
class=062243515-15092005></SPAN></FONT></FONT><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Jacob Delfos
[mailto:jacob.delfos@maunsell.com] <BR><B>Sent:</B> Wednesday, September 14,
2005 9:19 PM<BR><B>To:</B> pgiencke@glc.org<BR><B>Cc:</B>
ka-map-users@lists.maptools.org<BR><B>Subject:</B> RE: [ka-Map-users] Highly
Interested Developer with some questions<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2>Hi Pete,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Yes, that's correct. To force a certain image
format for a particular layer, you can put</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>METADATA</FONT></DIV>
<DIV><FONT face=Arial size=2>[...]</FONT></DIV>
<DIV><FONT face=Arial size=2>imageformat "JPEG"</FONT></DIV>
<DIV><FONT face=Arial size=2>[...]</FONT></DIV>
<DIV><FONT face=Arial size=2>END</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
setOutputFormat(strtoupper($_REQUEST['i'])); </FONT></DIV>
<DIV><FONT face=Arial size=2></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> </DIV>
<DIV><FONT face=Arial size=2>» -----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"><FONT
color=#000000>jacob.delfos@maunsell.com</FONT></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"><FONT
color=#000000>ka-map-users-bounces@lists.maptools.org</FONT></A><BR>» >
<<A href="mailto:ka-map-users-bounces@lists.maptools.org"><FONT
color=#000000>mailto:ka-map-users-bounces@lists.maptools.org</FONT></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"><FONT
color=#000000>cendrizzi@gmail.com</FONT></A> <<A
href="mailto:cendrizzi@gmail.com"><FONT
color=#000000>mailto:cendrizzi@gmail.com</FONT></A>>; <BR>» > <A
href="mailto:ka-map-users@lists.maptools.org"><FONT
color=#000000>ka-map-users@lists.maptools.org</FONT></A> <BR>» > <<A
href="mailto:ka-map-users@lists.maptools.org"><FONT
color=#000000>mailto:ka-map-users@lists.maptools.org</FONT></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"><FONT
color=#000000>http://lists.maptools.org/pipermail/ka-map-users/2005-August/0</FONT></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/"><FONT
color=#000000>http://mds.glc.org/kamap_cvs3/</FONT></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"><FONT
color=#000000>ka-map-users-bounces@lists.maptools.org</FONT></A><BR>» >
<<A href="mailto:ka-map-users-bounces@lists.maptools.org"><FONT
color=#000000>mailto:ka-map-users-bounces@lists.maptools.org</FONT></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"><FONT
color=#000000>ka-map-users@lists.maptools.org</FONT></A> <BR>» > <<A
href="mailto:ka-map-users@lists.maptools.org"><FONT
color=#000000>mailto:ka-map-users@lists.maptools.org</FONT></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"><FONT
color=#000000>mailto:jacob.delfos@maunsell.com</FONT></A>><BR>» > <BR>»
> <BR>» > <BR>»
----------------------------------------------------------------------<BR>» >
--<BR>» > <BR>» > _______________________________________________<BR>»
> ka-Map-users mailing list<BR>» > <A
href="mailto:ka-Map-users@lists.maptools.org"><FONT
color=#000000>ka-Map-users@lists.maptools.org</FONT></A><BR>» > <A
href="http://lists.maptools.org/mailman/listinfo/ka-map-users"><FONT
color=#000000>http://lists.maptools.org/mailman/listinfo/ka-map-users</FONT></A><BR>»
<BR>» -- <BR>»
+-----------------------------------------------------------------+<BR>» |Paul
Spencer
<A href="mailto:pspencer@dmsolutions.ca"><FONT
color=#000000>pspencer@dmsolutions.ca</FONT></A> |<BR>»
+-----------------------------------------------------------------+<BR>»
|Applications & Software
Development
|<BR>» |DM Solutions Group
Inc
<A href="http://www.dmsolutions.ca/"><FONT
color=#000000>http://www.dmsolutions.ca/</FONT></A>|<BR>»
+-----------------------------------------------------------------+<BR>»
_______________________________________________<BR>» ka-Map-users mailing
list<BR>» <A href="mailto:ka-Map-users@lists.maptools.org"><FONT
color=#000000>ka-Map-users@lists.maptools.org</FONT></A><BR>» <A
href="http://lists.maptools.org/mailman/listinfo/ka-map-users"><FONT
color=#000000>http://lists.maptools.org/mailman/listinfo/ka-map-users</FONT></A><BR>»
</FONT></DIV></BODY></HTML>