[ka-Map-users] Highly Interested Developer with some questions
Peter Giencke
pgiencke at glc.org
Thu Sep 15 11:41:19 EDT 2005
Jacob et al,
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?
The problematic layer is below:
LAYER
NAME jpl3
METADATA
"wms_title" "jpl2"
"wms_srs" "EPSG:4326"
imageformat "JPEG"
END
TYPE RASTER
STATUS default
CONNECTIONTYPE WMS
CONNECTION " <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> 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"
PROJECTION
"init=epsg:4326"
END
END
-pete
_____
From: Jacob Delfos [mailto:jacob.delfos at maunsell.com]
Sent: Wednesday, September 14, 2005 9:19 PM
To: pgiencke at glc.org
Cc: ka-map-users at lists.maptools.org
Subject: RE: [ka-Map-users] Highly Interested Developer with some questions
Hi Pete,
Yes, that's correct. To force a certain image format for a particular layer,
you can put
METADATA
[...]
imageformat "JPEG"
[...]
END
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.
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:
setOutputFormat(strtoupper($_REQUEST['i']));
regards,
Jacob
> -----Original Message-----
> From: Peter Giencke [mailto:pgiencke at glc.org]
> Sent: 14 September 2005 20:46
> To: <mailto:jacob.delfos at maunsell.com> jacob.delfos at maunsell.com
> Subject: RE: [ka-Map-users] Highly Interested Developer with
> some questions
>
> Jacob,
>
> I might be reading this wrong, but are you saying that you're
> using both
> JPEG and PNG layers simultaneously in ka-map? If so, I'd like
> to hear the
> details on doing this...
>
> -pete
>
>
> Jacob Delfos wrote:
> > Clark / Pete,
> >
> > Regarding the use of aerial photography and PNG24: I
> noticed that Paul
> > has integrated the changes (png transparency hack) into Ka-Map that
> > allows PNG24 to be transparent in IE, along with changes allowing
> > different image formats for different groups (by specifying an
> > "imageformat" parameter in the metadata). So that is not a
> limitation
> > anymore to the use of aerial photography. I successfully use jpeg
> > format for full-colour imagery, and gif for our transparent
> vector layers.
> >
> > Paul did mention about having issues with the png transparency hack
> > for
> > 8 bit PNG images (which Mapserver appears to revert to for vector
> > data, even if PNG24 is the specified image format). But you
> could now
> > instead use gif for transparent layers, while using jpeg for
> > non-transparent layers, retaining the ability for
> full-colour images.
> > Gif transparency works in all browsers without problems,
> providing GIF
> > is specified as default outputformat in the mapfile (otherwise
> > php_mapscript appears to produce non-transparent gif images). I did
> > some testing, which showed GIF appears to compress indexed-colour
> > images a fair bit better than
> > PNG8 too (lossless). For the JPEG layers, you can pick the desired
> > compression, and significantly reduce image sizes that way,
> somewhat
> > reducing the speed problems that Pete mentioned.
> >
> > regards,
> >
> > Jacob
> >
> >
> >
> >
> >
> >
> ----------------------------------------------------------------------
> > ----------
> > From: <mailto:ka-map-users-bounces at lists.maptools.org>
ka-map-users-bounces at lists.maptools.org
> > < <mailto:ka-map-users-bounces at lists.maptools.org>
mailto:ka-map-users-bounces at lists.maptools.org>
> > [mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of Peter
> > Giencke
> > Sent: 14 September 2005 03:54
> > To: <mailto:cendrizzi at gmail.com> cendrizzi at gmail.com <
<mailto:cendrizzi at gmail.com> mailto:cendrizzi at gmail.com>;
> > <mailto:ka-map-users at lists.maptools.org>
ka-map-users at lists.maptools.org
> > < <mailto:ka-map-users at lists.maptools.org>
mailto:ka-map-users at lists.maptools.org>
> > Subject: RE: [ka-Map-users] Highly Interested Developer with some
> > questions
> >
> >
> > Clark,
> >
> > 1) Yes you can; we've been using raster [wms] backdrops
> extensively in
> > many of our ka-map implementations. I've found however,
> that speed can
> > suffer (from mildly to greatly) depending on the number and
> complexity
> > of rasters used (duh). Also, best results are obtained when using
> > PNG24 for this, but you'll have to 'hack' ka-map to enable PNG
> > transparency, so that 'layering' works in IE. (There's a
> thread for that
> here:
> >
> <http://lists.maptools.org/pipermail/ka-map-users/2005-August/0>
http://lists.maptools.org/pipermail/ka-map-users/2005-August/0
> 00235.html).
>
> > If these two concerns can be leveraged, the results are
> very nice (I
> > have an example of this here: <http://mds.glc.org/kamap_cvs3/>
http://mds.glc.org/kamap_cvs3/).
> >
> > 2. Assuming you take the time to peruse the api's source code and
> > consult the mailing-list archives, you should be able to get up and
> > running within a weekend, or week, depending... Although
> ka-map is a
> > relatively new creation, it's still very functional at this
> early stage.
> >
> > -pete
> >
> >
> >
> ----------------------------------------------------------------------
> > ----------
> > From: <mailto:ka-map-users-bounces at lists.maptools.org>
ka-map-users-bounces at lists.maptools.org
> > < <mailto:ka-map-users-bounces at lists.maptools.org>
mailto:ka-map-users-bounces at lists.maptools.org>
> > [mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of Clark
> > Endrizzi
> > Sent: Tuesday, September 13, 2005 2:17 PM
> > To: <mailto:ka-map-users at lists.maptools.org>
ka-map-users at lists.maptools.org
> > < <mailto:ka-map-users at lists.maptools.org>
mailto:ka-map-users at lists.maptools.org>
> > Subject: [ka-Map-users] Highly Interested Developer with some
> > questions
> >
> >
> > I run a development group that is developing a real estate
> > application.(web based). It's PHP and from the start we
> have had the
> > idea of including mapping software to integrate with mapping stuff.
> > We've looked at multiple web based mapping vendors,
> including Arc IMS,
> > but haven't found something that we consider a good
> solution. We want
> > something that is easy to use like Google maps but also
> very flexible.
> > Furthermore it's important that we have the ability to
> include it in
> > our mostly closed source applicaton.
> >
> > I'm not really a mapping guru as most of my incomplete
> knowledge comes
> > from a mapping group in the same building so I have some basic
> > questions about whether we can use ka-map and contribute to
> it as well.
> > 1. Can you use aerial photography with ka-map? We use aerials
> > provided by air photo USA and want to use that on our web
> based stuff.
> > I'm guessing right now only street maps are supported.
> With aerials,
> > we need to use these images (they come in jpeg) and associate their
> > world files (which have the projection ifnormation in
> them). Is this
> > something that could be done with this software (if it
> doesn't exist
> > now could it be realistically added?).
> >
> > 2. Could we expect to use this stuff by the end of the
> year? Based
> > off the examples it looks like ka-map is pretty far along...
> >
> > Actually that's probably all the questions for now since our use of
> > ka-maps is contigent on them. Currently we have four developers
> > including myself with pretty extensive experience in web
> development,
> > javascript (including just starting to get into "ajax"
> stuff). I hope
> > it's clear that we're not trying to selfishly use and
> expect ka-maps
> > to work for us as we're willing to improve it to meet our
> needs if it
> > doesn't have the functionality.
> >
> > I hope this can work out since you have done excellent work!
> >
> > Thanks,
> > --
> > -Clark Endrizzi
> > < <mailto:jacob.delfos at maunsell.com> mailto:jacob.delfos at maunsell.com>
> >
> >
> >
> ----------------------------------------------------------------------
> > --
> >
> > _______________________________________________
> > ka-Map-users mailing list
> > <mailto:ka-Map-users at lists.maptools.org>
ka-Map-users at lists.maptools.org
> > <http://lists.maptools.org/mailman/listinfo/ka-map-users>
http://lists.maptools.org/mailman/listinfo/ka-map-users
>
> --
> +-----------------------------------------------------------------+
> |Paul Spencer <mailto:pspencer at dmsolutions.ca>
pspencer at dmsolutions.ca |
> +-----------------------------------------------------------------+
> |Applications & Software Development |
> |DM Solutions Group Inc <http://www.dmsolutions.ca/>
http://www.dmsolutions.ca/|
> +-----------------------------------------------------------------+
> _______________________________________________
> ka-Map-users mailing list
> <mailto:ka-Map-users at lists.maptools.org> ka-Map-users at lists.maptools.org
> <http://lists.maptools.org/mailman/listinfo/ka-map-users>
http://lists.maptools.org/mailman/listinfo/ka-map-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20050915/87478823/attachment-0001.html
More information about the ka-Map-users
mailing list