[fusion-users] Fusion Conversion: 1.x -> 2.x
Nolte, Tim
Tim.Nolte at ipcswirelessinc.com
Thu Jun 4 16:19:42 EDT 2009
I can assure you that there is something wrong with how Fusion is
handling my mapfile. I changed my IMAGETYPE to what you had and still
found that it was generating a GD image. So I did some digging. Here is
the url that was being passed to the mapserv cgi:
http://mapserver.ilpcs.com/cgi-bin/mapserv?layers=world_countries_large_
scale%20world_countries_mid_scale%20world_countries_small_scale1%20world
_countries_small_scale2%20built_up_areas%20voice_only_roaming%20voice_da
ta_roaming%20ipcs_voice_data%20ipcs_evdo%20inland_water_small_scale%20in
land_water%20inland_water_no_us%20rivers_and_streams_with_US%20rivers_an
d_streams_no_US%20canals_no_US%20regional_borders%20international_border
s%20roads%20roads_median%20railroads%20sea_labels%20ocean_labels%20built
_up_area_labels%20state_province_labels%20world_major_cities%20world_cap
itals%20island_labels%20inland_water_small_scale%20inland_water%20us_wat
er%20us_rivers_streams%20us_small_scale_state_borders%20us_large_scale_s
tate_borders%20us_international_borders%20us_ramps%20us_trails%20us_ferr
ies%20us_streets_for_raster%20us_railways%20us_small_scale_secondary_roa
ds%20us_secondary_roads%20us_small_scale_primary_roads%20us_primary_road
s%20us_primary_road_shields_small_scale%20us_primary_road_shields%20us_s
econdary_road_shields_small_scale%20us_secondary_road_shields%20small_to
wns%20towns%20small_cities%20medium_cities%20major_cities_100000%20major
_cities_1000000%20capital_cities%20state_labels%20national_capitals%20on
_air%20copyright&session=4a2828d05bdbc&map=%2Ftmp%2Fsess_4a2828d05bdbc%2
FiPCS.map&map_imagetype=png&mode=map&ts=1244145893344&mapext=-86.5204549
4505495+42.08666860282567+-84.71641412872842+43.798194505494436&imgext=-
86.52045494505495+42.08666860282567+-84.71641412872842+43.79819450549443
6&map_size=780+740&imgx=390&imgy=370&imgxy=780+740
If you look for the map_imagetype you'll see that it is being set to
"png". This is not a valid type in my file. I changed this to my valid
AGG imagetype:
http://mapserver.ilpcs.com/cgi-bin/mapserv?layers=world_countries_large_
scale%20world_countries_mid_scale%20world_countries_small_scale1%20world
_countries_small_scale2%20built_up_areas%20voice_only_roaming%20voice_da
ta_roaming%20ipcs_voice_data%20ipcs_evdo%20inland_water_small_scale%20in
land_water%20inland_water_no_us%20rivers_and_streams_with_US%20rivers_an
d_streams_no_US%20canals_no_US%20regional_borders%20international_border
s%20roads%20roads_median%20railroads%20sea_labels%20ocean_labels%20built
_up_area_labels%20state_province_labels%20world_major_cities%20world_cap
itals%20island_labels%20inland_water_small_scale%20inland_water%20us_wat
er%20us_rivers_streams%20us_small_scale_state_borders%20us_large_scale_s
tate_borders%20us_international_borders%20us_ramps%20us_trails%20us_ferr
ies%20us_streets_for_raster%20us_railways%20us_small_scale_secondary_roa
ds%20us_secondary_roads%20us_small_scale_primary_roads%20us_primary_road
s%20us_primary_road_shields_small_scale%20us_primary_road_shields%20us_s
econdary_road_shields_small_scale%20us_secondary_road_shields%20small_to
wns%20towns%20small_cities%20medium_cities%20major_cities_100000%20major
_cities_1000000%20capital_cities%20state_labels%20national_capitals%20on
_air%20copyright&session=4a2828d05bdbc&map=%2Ftmp%2Fsess_4a2828d05bdbc%2
FiPCS.map&map_imagetype=aggapng24&mode=map&ts=1244145893344&mapext=-86.5
2045494505495+42.08666860282567+-84.71641412872842+43.798194505494436&im
gext=-86.52045494505495+42.08666860282567+-84.71641412872842+43.79819450
5494436&map_size=780+740&imgx=390&imgy=370&imgxy=780+740
And wouldn't you know I got the expected results. So it would seem that
Fusion is looking at the MIMETYPE or DRIVER and using the generic image
type rather than using the IMAGETYPE setting that I specified in my
mapfile. I'm going to look into the Fusion code to find out how it is
reading the mapfile and getting that imagetype setting. For now I can
make sure that I only have the AGG output method specified with the
generic JPEG or PNG naming.
** Also, please reply-to-all when responding to these posts. If you
respond only to the poster then the community doesn't not get the whole
conversation and misses out on the benefits.
----
Timothy J Nolte - tnolte at ilpcs.com
Network Planning Engineer
iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512
Office: 616-656-5163
PCS: 616-706-2438
Fax: 616-554-6484
Web: www.ipcswirelessinc.com
-----Original Message-----
From: pdescham49 at gmail.com [mailto:pdescham49 at gmail.com] On Behalf Of
Paul Deschamps
Sent: Thursday, June 04, 2009 2:50 PM
To: Nolte, Tim
Subject: Re: [fusion-users] Fusion Conversion: 1.x -> 2.x
I can definitively say that fusion is not changing the outputformat.
Fusion calls the mapserver CGI which in tern opens up the mapfile
specified in the url.
If the mapfile located in your session folder has aggjpeg then the
mapserver cgi is using aggjpeg.
here's an example call to the mapserv cgi:
http://127.0.0.1:8082/cgi-bin/mapserv?layers=bathymetry%20land_fn%20park
%20drain_fn%20drainage%20prov_bound%20fedlimit%20popplace&session=4a2812
d39555f&map=%2Fhome%2Fpdeschamps%2Ffgs%2Ftmp%2F%2Fsess_4a2812d39555f%2FD
EMO.map&map_imagetype=png&mode=map&ts=1244140254648&mapext=-2925864.1788
99084+699102.2825688068+3798664.178899084+2428266.717431193&imgext=-2925
864.178899084+699102.2825688068+3798664.178899084+2428266.717431193&map_
size=805+207&imgx=402.5&imgy=103.5&imgxy=805+207
You can even change the mapfile in a text editor and refresh that url
and the map will change.
Perhaps what you are seeing is compression artifacts.I would suggest
changing from aggjpeg to aggpng24 transparent(alpha)
Hope this helps
Paul D.
OUTPUTFORMAT
NAME 'AGGA'
DRIVER AGG/PNG
IMAGEMODE RGBA
END
On Thu, Jun 4, 2009 at 12:51 PM, Nolte, Tim
<Tim.Nolte at ipcswirelessinc.com> wrote:
Q1: Yes mapfile that is generated also has aggjpeg set the for
image
type.
Q2: I can tell that it is not using AGG because the symbols and
layers
are not anti-aliased. I have a Chameleon app that uses the same
exact
output format and I get nice anti-aliased maps.
- Tim
----
Timothy J Nolte - tnolte at ilpcs.com
Network Planning Engineer
iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512
Office: 616-656-5163
PCS: 616-706-2438
Fax: 616-554-6484
Web: www.ipcswirelessinc.com
-----Original Message-----
From: pdescham49 at gmail.com [mailto:pdescham49 at gmail.com] On
Behalf Of
Paul Deschamps
Sent: Thursday, June 04, 2009 12:02 PM
To: Nolte, Tim
Subject: Re: [fusion-users] Fusion Conversion: 1.x -> 2.x
Here's a q. If you navigate into your php session directory and
then
into the active session and open up the mapfile that is inside
there is
it the image type aggjpeg? as it is below? that you are seeing
below?
Another Q: How are you making this determination that mapserver
is using
GD?
Cheers
Paul.
--
Paul Deschamps
Applications Specialist
DM Solutions Group Inc.
Office: (613) 565-5056 x28
pdeschamps at dmsolutions.ca
http://www.dmsolutions.ca
http://research.dmsolutions.ca
More information about the fusion-users
mailing list