Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

render map image in png8

2 REPLIES 2
Reply
Message 1 of 3
nick_xu
776 Views, 2 Replies

render map image in png8

Hi,

we are using MGE 2010.

In order to reduce image size we changed
OPERATION=GETDYNAMICMAPOVERLAYIMAGE&FORMAT=PNG to OPERATION=GETDYNAMICMAPOVERLAYIMAGE&FORMAT=PNG8,

Image size reduced from 500k to 100k, but the image quality is bad. So we changed OPERATION=GETMAPIMAGE&FORMAT=PNG8 and the image quality is good enough(image size 100k).

please see attached imge

png_getMapImage: OPERATION=GETMAPIMAGE&FORMAT=PNG8
png: OPERATION=GETDYNAMICMAPOVERLAYIMAGE&FORMAT=PNG
png8: OPERATION=GETDYNAMICMAPOVERLAYIMAGE&FORMAT=PNG8.

GETDYNAMICMAPOVERLAYIMAGE operation has more parameter to use and can render selection sepeartely. Beside this one,is any difference as these two operation rendering image?

thanks!

Nick
2 REPLIES 2
Message 2 of 3
dswilson
in reply to: nick_xu

I don't believe GETDYNAMICOVERLAY processes base layers for tiled maps, hence the name. GetMapImage will process both.

Dave
Message 3 of 3
nick_xu
in reply to: nick_xu

We didn't use tiled maps.

We changed the function
function RequestMapImage(reqId, viewParams)

from
//url = webAgent + "?OPERATION=GETDYNAMICMAPOVERLAYIMAGE&FORMAT=PNG8&VERSION=2.1.0&SESSION=" + sessionId + "&MAPNAME=" + encodeComponent(mapName) + "&SEQ=" + Math.random() + "&CLIENTAGENT=" + encodeComponent(clientAgent) + "&BEHAVIOR=2";

to
url = webAgent + "?OPERATION=GETMAPIMAGE&FORMAT=PNG8&VERSION=2.1.0&SESSION=" + sessionId + "&MAPNAME=" + encodeComponent(mapName) + "&SEQ=" + Math.random() + "&CLIENTAGENT=" + encodeComponent(clientAgent) + "&BEHAVIOR=2";

}

the getMapImage operation gets image much better that getDynamciMapOverLayImager in png8 fromat(same size).
also, we try the image format in jpeg.

why?

nick

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report