- 浏览: 46657 次
- 性别:
- 来自: 广州
最新评论
-
周佩煌:
怎么使用啊,表示不会用啊!
marker显示(openlayers+google) -
kuchaguangjie:
用上了,呵呵!
freemarker遍历map -
tang&qiang:
(新手)能给点说明吗???这样看着头晕的很...
从互联网(路径)将图片转化为byte数组
文章列表
OpenLayers部分方法事件
- 博客分类:
- 学习笔记
一、设置中心坐标
map.setCenter(point, zoom);
二、删除标记
markers.removeMarker(marker);
三、移动标记
marker.moveTo(map.getLayerPxFromViewPortPx(e.xy));
四。获取中心坐标
map.getCenter();
五、获取扩大倍数
map.getZoom();
六、地图添加单击时间
map.events.register("click", null, move);
七、地图取消单击时间
map.events.unregister("click", null ...
function initMap(type) {
var lon = centerPoint.split(',')[0];
var lat = centerPoint.split(',')[1];
var point = new OpenLayers.LonLat(lon,lat)
.transform(new OpenLayers.Projection("EPSG:4326"),
new OpenLayers.Projection("EPSG:900913"));
map = new OpenLayers.Map('map');
...
openlayers+google
- 博客分类:
- 学习笔记
1.先下载openlayers(http://openlayers.org/download/);
2.复制img目录、lib目录、theme目录至项目;
3.开发一个简单实例
jsp页面:
<%@ page language="java" pageEncoding="GBK"%>
<html>
<html:base />
<head>
<base href="${sessionScope.full_path}">
<title>${session ...
select * from v$locked_object
select * from all_objects where object_id=
ORACLE创建用户及导入、导出
- 博客分类:
- 学习笔记
默认用户:
system/manager
scott/tiger
--创建空间
create tablespace schedule_115 datafile 'D:\oracle\product\10.2.0\oradata\orcl\schedule_115.dbf'
size 50M default storage (initial 500K Next 500K minextents 1 maxextents unlimited pctincrease 0);
--创建用户
create user schedule identified by tisson default tables ...
ORACLE连接|周、DECODE以及树查询
- 博客分类:
- 学习笔记
jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=******)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=******)(PORT=1521)))(LOAD_BALANCE=yes)(FAILOVER=ON)(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME =**)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))))
select to_char(s.file_date,'yyy ...
下载
svn checkout http://ip/项目名/trunk
更新
svn update
测试运行
mvn -Dmaven.test.skip=test clean package tomcat:run
移动jar文件到maven,以ChartDirector.jar为例
mvn install:install-file -Dfile=E:\ChartDirector.jar -DgroupId=ChartDirector -DartifactId=ChartDirector -Dversion=5.0 -Dpackaging=jar
转载于:http://blog.csdn.net/Mr_IT/archive/2005/12/04/543279.aspx
jfreechart使用经验总结(针对版本:jfreechart-1.0.0-pre2.zip)
问题一:在每次生成 jfreechar图片的时候都会抛出异常,异常指出问题出在ChartFactory.createXYLineChart(picName, "时间轴" ...
public String vImage(Model model) {
StringBuilder fileXML = new StringBuilder("");
fileXML.append("<?xml version='1.0' encoding='GBK'?>" +
"<graph caption='访问量统计' xAxisName='月' yAxisName='访问量' shownames='1' decimalPrecision='0' formatNumberScale='0'>" ...
public String getDataSet(
@PathVariable int type,
@RequestParam(value = "stratdate", required = false) Date stratdate,
@RequestParam(value = "enddate", required = false) Date enddate,
HttpSession session, HttpServletRequest request, Model model) {
if (stratdate == nu ...
继承ServletUtilities,若生成的图片格式为jpg,则重写saveChartAsJPEG方法
public static String saveChartAsJPEG(JFreeChart chart, int width,
int height, HttpSession session) throws IOException {
if (chart == null) {
throw new IllegalArgumentException("Null 'chart' argument.");
}
ServletUtilities.cre ...
//曲线图
public String imageLine(TimeSeries chinaTs,HttpSession session) {
String title = "访问量统计";
String domain = "";
String range = "访问量";
TimeSeriesCollection dataset = new TimeSeriesCollection();
dataset.removeAllSeries();
dataset.addSeries(chinaTs);
JFree ...
public byte[] getBytes(String filePath) {
try {
InputStream in = null;
DataInputStream dis = null;
HttpURLConnection connection = null;
URL server = new URL(filePath);
connection = (HttpURLConnection) server.openConnection();
connection.connect();
in = connection.getInputStream ...
public byte[] saveImage(String filePath) {
FileOutputStream fos = null;
BufferedInputStream bis = null;
HttpURLConnection httpUrl = null;
byte[] buf = new byte[2048];
int size = 0;
try {
URL url = new URL(filePath);
if (url != null) {
httpUrl = (HttpURLConnection) url.openConnec ...
Map<String, Map<String, Object>> bookMap = new HashMap<String, Map<String, Object>>();
List<HashMap<String, Object>> loglist = new ArrayList<HashMap<String, Object>>();
loglist = logService.sumGroupByLibrary(libraryId, offset, limit);
int index = 0;
for ...