Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

mapXtreme for java ÉèÖõØͼÖеã

¸ÕѧGIS£¬×ö¸öÉèÖõØͼÖеã¾Í³öÁËÂé·³ £¡µ«ÊÇÒ»Ö±¾ÍÊÇÉèÖò»ÕýÈ·£¬¸ãÁËN¾Ã£»ºóÀ´·¢ÏÖÎÊÌâÔÚÓÚÉèÖõĵØͼ±ß½ç¸ß¶È¼°¿í¶ÈÒªÓëÒ³Ãæ¶ÔÓ¦µÄÊä³ö´¦µÄ¸ß¶È¼°¿í¶ÈÒªÒ»Ö¡£
  Ò²¾ÍÊÇ£º
  myMap.setDeviceBounds(new DoubleRect(0, 0, m_mapWidth, m_mapHeight));
  m_mapWidth, m_mapHeight µÄÖµÒªÓëÏÂÃæµÄwidth,heightÒ»ÖÂ;
  <input id="map" type="image" src="/map/MapServlet" onclick="javascript:getPoint()" height="560" width="980">
  ΪʲôÕâÑùÄØ£¿²»ÖªµÀË­ÄܽâÊÍ£¬ÒÔÇ°¶¼Ã»½Ó´¥GISÕâ·½ÃæµÄ¶«Î÷ʲô¶¼²»ÖªµÀ£»·´ÕýÔÝʱÎÊÌâ½â¾öÁË£¬¿ÉÒÔ¼ÌÐøÍùÇ°×ßÁË……
  ÉèÖÃÖеãÒ²¾ÍÈçÏ´úÂ룺 DoublePoint newPoint = myMap.getCenter();
if ((reqParam = request.getParameter("ptx"))!=null) {
xStr = new Double(reqParam);
}
if ((reqParam = request.getParameter("pty"))!=null) {
yStr = new Double(reqParam);
}
if(xStr != null && yStr != null)
{
// Transform GIF coordinate to real world coordinate
DoublePoint screenPoint = new DoublePoint(xStr,yStr);
newPoint = myMap.transformScreenToNumeric(screenPoint);
}

myMap.setCenter(newPoint);
resImg(myMap,response); // Êä³öµØͼ
private void resImg(MapJ myMap, HttpServletResponse response) {

ServletOutputStream sos = null;
try
{
sos = response.getOutputStream();
myMap.setDeviceBounds(new DoubleRect(0, 0, m_mapWidth, m_mapHeight));
MapXtremeImageRenderer rr = new MapXtremeImageRenderer(m_mxtURL);
rr.render(ImageRequestComposer.create(myMap, NUM_OF_COLORS, BACKGROUND_COLOR, "image/gif"));
rr.toStream(sos);
rr.dispose();
}
catch(Exception e)
{
System.out.println("ʹÓÃÊý¾ÝÁ÷Êä³öͼƬʱÒì³£");
System.out.println(e.getMessage());
}
try {
if (sos != null) {
sos.close();
}
}catch(Exception e){
e.printStackTrace();
}
}


Ïà¹ØÎĵµ£º

Javaѧϰ´ÓÈëÃŵ½¾«Í¨

ÔÚËùÓеÄJavaÊé¼®µ±ÖУ¬Æäʵ×î×îÓÐÓõģ¬²¢²»ÊÇO′reillyµÄ Java Serials£¬ÕæÕý×î×îÓÐÓô¦ÊÇJDKµÄÎĵµation£¡¼¸ºõÄãÏë»ñµÃµÄËùÓеÄ֪ʶÔÚÎĵµationÀïÃæÈ«²¿¶¼ÓУ¬ÆäÖÐ×îÖ÷ÒªµÄ²¿·Öµ±È»ÊÇJava»ù´¡Àà¿âµÄAPIÎĵµ£¬ÊÇ°´ÕÕpackageÀ´×éÖ¯µÄ£¬¶ÔÓÚÿһ¸öclass¶¼ÓÐÏêϸµÄ½âÊÍ£¬ËüµÄ¼Ì³Ð¹Øϵ£¬ÊÇ·ñʵÏÖÁËij¸ö½Ó¿Ú£¬Í¨³£ÓÃÔÚÄÄÐ ......

×Ô¼ºÊÜÁ˵ã´Ì¼¤ JavaÄܹ»Ìæ´úCÓïÑÔÂð£¿


ÎÒ²»ÖªµÀÕâƪÎÄÕµÄ×÷ÕßÊÇË­£¬µ«ÎÒÖªµÀ£¬Ëû¶ÔjavaÓÐÒ»ÖÖºÜÉîµÄÀí½â£¬ÆäʵÎÄÕÂÖв¢Ã»ÓÐÌåÏÖ³ö×÷Õ߶Ôjava¼¼ÊõÉî²ãÀí½â£¬µ«ÊÇ´ÓÎÄÖеÄÿһ¾ä»°ÖУ¬ÎÒ¸ÐÊܵ½ÁËһЩ¶«Î÷¡£ÕâÊÇһƪºÜºÃµÄÎÄÕ£¬Ò²¿ÉÒÔ°ïÖúºÜ¶àÈËÃÔãµÄÈ˽â¾öÎÊÌâ¡£´øÀ´ºÍ´ó¼Ò·ÖÏíһϡ£
Ç°²»¾ÃCSDN¿¯µÇÁËһƪ¡¶CÓïÑÔÒѾ­ËÀÁË¡·µÄÎÄÕ£¬ÒýÆðÁËһЩÕùÂÛ¡£ÆäʵÄÇÆ ......

JavaµÝ¹é


Java±éÀúÎļþ¼ÐµÄ2ÖÖ·½·¨£º
A.²»Ê¹Óõݹ飺
import java.io.File;
import java.util.LinkedList;
public class FileSystem {
public static void main(String[] args) {
long a = System.currentTimeMillis();
LinkedList list = new LinkedList();
File dir = new File("c:\\java\\ ......

JAVA×¢½â


AnnotationÊÇJava5¡¢6Ö»ºóµÄÐÂÌØÕ÷£¨ÖÐÎijÆ֮Ϊע½â£©£¬²¢ÇÒÔ½À´Ô½¶àµÄµÃµ½ÁËÓ¦Ó㬱ÈÈçSpring¡¢Hibernate3¡¢Struts2¡¢iBatis3¡¢JPA¡¢JUnitµÈµÈ¶¼µÃµ½Á˹㷺ӦÓã¬Í¨¹ýʹÓÃ×¢½â£¬´úÂëµÄÁé»îÐÔ´ó´óÌá¸ß¡£
   ÕâЩ¶¼ÊÇʹÓñðÈ˶¨ÒåµÄ×¢½â£¬Ò»°ã×¢½âµÄʹÓö¼ÊÇÔÚһЩ»ù´¡¿ò¼Ü»òÕßÀà¿âÖÐÀ´¶¨ÒåµÄ£¬Òò´ËºÜÉÙ¼û¹ýÓÐÈ ......

JavaÖÐFile,byte[],Object¼äµÄת»»

Ò»¡¢ÓÐÁ½µãÐèҪעÒ⣺
    1¡¢Object ¶ÔÏó±ØÐëÊÇ¿ÉÐòÁл¯¶ÔÏó ¡£
    2¡¢¿ÉÐòÁл¯µÄ Object
¶ÔÏ󶼿ÉÒÔת»»ÎªÒ»¸ö´ÅÅÌÎļþ£»·´¹ýÀ´Ôò²»Ò»¶¨³ÉÁ¢£¬Ö»ÓÐÐòÁÐ
         »¯Îļþ²Å¿ÉÒÔת»»Îª Object ¶ÔÏó¡£
¶þ¡¢Ïà¹ØµÄת»»·½·¨£º
 &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ