我需要计算给定点的纬度和经度.
我知道参考点的纬度和经度,以及表示距参考点的x和y轴上的米的值.从这些数据开始,我必须找到该点的纬度和经度.
我搜索了类似的问题,但看起来大多数问题都是关于找到两个纬度/长点之间的距离.我需要做相反的事情.
我能怎么做?我用的是Java
我正在使用Ext4 js来创建图表.我的图表是显示时间内事件演变的折线图,所以我的下轴是时间轴:
{
type: 'Time',
position: 'bottom',
grid: grid,
fields: 'name',
title: false,
dateFormat: 'd/m/y',
groupBy: 'year,month,day',
aggregateOp: 'sum',
label: {
orientation: 'horizontal',
rotate: {
degrees: label_rotation
}
}
Run Code Online (Sandbox Code Playgroud)
我有改变比例的链接.单击其中一个链接应更改dateformat和groupby选项.这里的代码:
scaleGroups = {
'DAY': {
dateFormat: 'd/m/y',
groupBy: 'year,month,day'
},
'MONTH' :{
dateFormat: 'M Y',
groupBy: 'year,month'
},
'YEAR' :{
dateFormat: 'Y',
groupBy: 'year'
}
};
function changeChartScale(chart_id, scale) {
var chart = Ext.getCmp(chart_id);
var axis = chart.axes.get(1);
selectedGroup = scaleGroups[scale];
axis.dateFormat = selectedGroup.dateFormat;
axis.groupBy = selectedGroup.groupBy;
chart.redraw();
}
Run Code Online (Sandbox Code Playgroud)
问题是从一个规模变为另一个规模,例如从几天到几个月,之前的标签仍然存在.所以这条线是正确的,但我看到了日标签和月标签. …