由买买提看人间百态

topics

全部话题 - 话题: maps
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
l********a
发帖数: 1154
1
来自主题: Programming版 - map析构

跟踪了2天才找到这个问题,难道dll内自定义的类不能使用stl容器吗?
像我这种定义的容器数据非指针,该怎么释放呢?
没有其他解决办法吗?我这个map没有跨dll传递啊?
在testGA类定义里面声明,
构造函数里面map.insert(make_pair())添加内容,使用完后立即clear(),
在析构函数内没有操作map,因为已经被clear()了,又不是指针,无法delete
下断后出错在~testGA的时候会调用~map,
testGA.dll!std::map,std::
allocator >,double,std::less char>,std::allocator > >,std::allocator char,std::char_traits,std::allocator > const ... 阅读全帖
l***h
发帖数: 9308
2
来自主题: Software版 - Re: Bing Map改进,google map下坡
【 以下文字转载自 Hardware 讨论区 】
发信人: lldyh (咦哈), 信区: Hardware
标 题: Re: Bing Map改进,google map下坡
发信站: BBS 未名空间站 (Thu Apr 29 14:21:55 2010, 美东)
问个bing map的问题:
按左下角打印机图标打印路线图,在弹出新的窗口中,有混合的map and text,但是路
线text能显示,起点、重点和路线的map没显示,就3个大白框。
Firefox 3.5.9,Silverlight用的是最新的4.0,启用了JavaScript
r*******u
发帖数: 156
3
Just got a task from my boss. He had a map of USA made by his previous
student, with some useful layers. He wants me to make seperated counties map
of our state from the old map of whole USA.
I tried to query and select using names of state and county. But all the map
of USA is still shown. The county is only highlighted. Can anybody tell me
how to select and show only the county map (without other counties and
states)? Many thanks.
I am a beginner on ArcGis.
w*******y
发帖数: 60932
4
TomTom XL 340M 4.3-Inch Portable GPS Navigator (Lifetime Maps Edition):
http://www.midnightbox.com/cgi-bin/category.cgi?item=10017470-1
is $85.95 + $3.99 shipping + tax
Not refurbished on the website it states NEW!
* Preloaded with maps of the US, Canada and Mexico with Lifetime Map Updates
* Preloaded with more than 7 million points of interest in over 60
destination categories--gas stations, restaurants, hotels, ATMs and more
* IQ Routes Technology calculates the fastest route possible based... 阅读全帖
h********r
发帖数: 3291
t*****a
发帖数: 5180
6
SOME OF US USE MAPS CONSISTENTLY ON A DAILY BASIS (DISPATCHER) AND I HATE
THAT NEW MAP, THE FACT THAT GOOGLE IS TAKING THE CLASSIC MAP AWAY REALLY
MAKES NO SENSE WHATSOEVER. LEAVE US THE OPTION AND THOSE THAT WANT TO USE
THE NEW ONE, USE IT; BUT FOR THOSE OF US THAT HAVE BECOME SO VERY
COMFORTABLE WITH THE CLASSIC LET US CONTINUE USING IT....CHOICES ARE VERY
IMPORTANT.
You guys are honestly the worst. I know that our complaints can be ignored
because Google has monopolized the industry and ther... 阅读全帖
f********a
发帖数: 165
7
来自主题: JobHunting版 - Java 面试关于map 和set
given Map hashMap 和 Set hashset,当set的key出现在map里面时,删除Map
里面的元素,最后返回map.
public void modifyMap(Map hashmap, Set hashset)
{
}
面试官说3行就可以搞定,那位大侠说说?
l******9
发帖数: 579
8
【 以下文字转载自 Programming 讨论区 】
发信人: light009 (light009), 信区: Programming
标 题: error draw map from shape file Python 3.2 basemap
发信站: BBS 未名空间站 (Sat Feb 14 13:51:37 2015, 美东)
I am working on drawing map from shape file in Python 3.2 basemap.
But, the longitude values at the bottom axis are only shown partially. Also,
all latitude values are missing.
Here is my python code.
import shapefile as sf
import sys
import numpy as np
import matplotlib.pylab as plt
from mpl_toolkits.basemap import Basemap
ma... 阅读全帖
a*******n
发帖数: 64
9
来自主题: JobHunting版 - 面试题:设计一个expired map class
题目大概是:设计一个类似于普通map的class,主要的不同是添加每个元素的时候,有
一个时间参数long type, 单位是ms。比如50000,如果50000ms passes,这个元素没有
被人为删除的话,它需要被自动删除。base class的定义myMap::add, myMap::erase都
是pure virtual function。
我当时给出的答案是用STL::map存储,然后用STL:unordred_map存储<
current_time+时间参数, a list of elements of 1st map>,系统时间前进的时候,
去第二个map里找到list删除第一个map里的element。答得很笼统,当时要求写具体的
code,不知道C++里涉及到系统时间的函数是啥。
c**********a
发帖数: 92
10
The Company:
Faraday Future (FF) is a California-based mobility company, leveraging the
latest technologies and world’s best talent to realize exciting new
possibilities in sustainable transportation. We’re producing user-centric,
technology-first vehicles to establish new paradigms in human-vehicle
interaction. We’re not just seeking to change how our cars work – we’re
seeking to change the way we drive. At FF, we’re creating something new,
something connected, and something with a global impac... 阅读全帖
l****n
发帖数: 6896
11
【 以下文字转载自 Reader 讨论区 】
发信人: lesson (伤心吉他客), 信区: Reader
标 题: 新发现:利用 Google Maps 让阅读更身历其境
发信站: BBS 未名空间站 (Fri Nov 18 05:01:15 2011, 美东)
Ok, 我大概不是世界上第一个这样做的人,但我很高兴自己发明了这个方法。拿出来野
人献曝一把。
最近在读 Stephen King 的新书 "11/22/63", 它的内容与美国甘迺迪总统被刺的历史
有关。作者考证的功夫做得十分详尽,连街名地址、大街上的街景等等,都有说明。例
如底下这段文字:
“... bus stopped at the corner of Oak Lawn and Wycliff ...There was a big
stone church on the corner. Lee sauntered over to the iron railing running
in front of it ..."
借由 Google Maps 的 street view 功能,我可以亲眼看到书中所描述的公车站... 阅读全帖
l****n
发帖数: 6896
12
【 以下文字转载自 Reader 讨论区 】
发信人: lesson (伤心吉他客), 信区: Reader
标 题: 新发现:利用 Google Maps 让阅读更身历其境
发信站: BBS 未名空间站 (Fri Nov 18 05:01:15 2011, 美东)
Ok, 我大概不是世界上第一个这样做的人,但我很高兴自己发明了这个方法。拿出来野
人献曝一把。
最近在读 Stephen King 的新书 "11/22/63", 它的内容与美国甘迺迪总统被刺的历史
有关。作者考证的功夫做得十分详尽,连街名地址、大街上的街景等等,都有说明。例
如底下这段文字:
“... bus stopped at the corner of Oak Lawn and Wycliff ...There was a big
stone church on the corner. Lee sauntered over to the iron railing running
in front of it ..."
借由 Google Maps 的 street view 功能,我可以亲眼看到书中所描述的公车站... 阅读全帖
p*****o
发帖数: 1285
13
来自主题: Outdoors版 - custom Garmin maps
Here are some links for free legitimate maps for Garmin GPS as well as some
map-making software. There are quite a few 24k Topos. And the big news is
(at least it's big for me), you *can* actually use raster maps on Garmin
eTrex units. This means any scanned topos can be used.
http://www.gpsfiledepot.com/maps/
http://www.miscjunk.org/mj/mp_main.html
http://freegeographytools.com/2008/garmin-topo-maps-for-montana-and-california
http://moagu.com/
d*********e
发帖数: 876
14
赞一个,我也喜欢收集trail map, 把用过的地图贴在墙上,收一份崭新的在抽屉里,
搬家了还要把墙上的小心地揭下来再贴到新地方 :-)
因为滑雪的次数还太少,大多数lift ticket还收藏着呢,上面记录着每次滑雪的日期
、地点和时间。。。没机会滑雪的时候就想着这些lift ticket流口水。。。

雪场的trail map和简略介绍,允许大家把自己喜欢的,知道的大雪场加上去,又允许
来自世界各地的滑雪爱好者加入这个club,让滑雪将大家连结在一起。
有独钟!而我见到的第一张滑雪场Trail Map就是位于风景秀美的Lake Tahoe旁的Squaw
Valley。
径,而我,就如同在迷宫中探索的蓝精灵。
,树木,雪道。。。这些奇特的组合构成了一幅美妙的图画,独具一格。
。上次去Aspen/Snowmass的时候,带回来的地图被折坏了,我小心地用透明胶带粘好。
在我沾那张trail map时,我想起了钱钟书的小说《围城》里,唐晓芙给方鸿渐的信不
小心给撕破了,方鸿渐小心翼翼地粘上。那张trail map一直保存到我第二次去Aspen/
Snowmass重新拿了张新的Trail
Z*****i
发帖数: 1888
15
正在制作 *** 北美各地湘菜馆汇总帖 *** 的 Google Map
今天刚加了10个,会陆续加入新的
欢迎大家自由添加你喜欢的地点
欢迎对餐馆,商场,公园的打分和留评语,感受,经验等等
链接在:
http://maps.google.com/maps/ms?hl=en&ie=UTF8&msa=0&msid=108595233986689418849.000496fe76369bb46d849&z=5
Need log into your own google map account to edit the map.
w********1
发帖数: 3492
16
Mon, 11 Jun 2012 11:57:40 PDT
At today's WWDC keynote event, Apple announced the next version of its
operating system for the iPad, iPhone, and iPod touch. iOS 6 will feature
new functionality for Siri, Facebook integration, a revamped Maps app,
Shared Photo Streams via iCloud, and more.
iOS 6 continues the rapid pace of innovation that is helping Apple reinvent
the phone and create the iPad category, delivering the best mobile
experience available on any device,” said Scott Forstall, Apple's se... 阅读全帖
w********1
发帖数: 3492
17
Tue, 12 Jun 2012 07:25:51 PDT
While Apple has worked hard to build its in-house mapping expertise, the
company still needs to rely on some outside partners to assist it with the
massive project of developing its own mapping and turn-by-turn navigation
services. A number of observers noted references to "TomTom and others" in
various locations within Apple's new Maps app for iOS 6, and now the mapping
company has confirmed in a brief press release that it has indeed struck a
deal with Apple.
Tom... 阅读全帖
d***a
发帖数: 13752
18
来自主题: Apple版 - Apple 3D Map很好很强大
今天试了一上Apple 3D Map,突然发现,其实Apple三维图很好
很强大。附上一个Apple三维图的实例,下面再附上对比的Google
卫星图。
苹果的三维图,真实感比Google的强太多了。
我觉得大家对Apple Map的期望,是做到Google Map已经做到的。
但为什么?Google Map已经不新鲜了,可替代它的产品有不少,
免费的有Waze,付费的有Garmin和Tomtom。Apple 3D Map
却是独特的,而且非常实用(对步行的人来说)。至于它还没有做
到的,给点时间都能做到。
c*******y
发帖数: 3529
19
来自主题: Apple版 - Apple 3D Map很好很强大
我觉得你以前讨论问题不是这样的。是不是最近被某些轮给气的。
你可以会不高兴,不过我还是要指出你有些两重标准。
那些抱怨apple maps的人是有实实在在的事实的啊。比如3d扭曲,
湾区南北不分,一段路莫名就消失了,5个miles的一段路有8个错误。。。。
难道这些都是人云亦云?你说你住的地方没问题,也只是一个个案,
是否也算是芸芸众生中的一片云呢?
我说说我所知道的关于3d maps的东西:
05年或者更早的时候,bing maps (那时叫live maps)
的bird's eys就十分的惊艳了呢?
igo 08年就已经能3D导航了,欧洲的地图做的好一点,据说能够根据3D准确的在
罗马斗兽场找到趴车的地方。我用iGo已经有5年了,所以我对apple 3d
毫无感觉。
3D maps其实是个噱头,实用性不大,包括步行。我曾经在NYC用3D步行过,
没啥意思,玩一次就不想玩了。
国内的导航比美国先进很多。09年美国还没有Junction view的时候,
国内KLD等导航已经是实体照片当Junction view。至今美国的Junction View
还是渣。
真正实用还是国内的卡通... 阅读全帖
w********2
发帖数: 16371
20
not meant all those negatives are paid basher, some of them are.
I was curious if anyone in this board that complaining indeed got affected
by the apple map issue, so far, I see real user are kinda mixed, some of
them are quite happy with it and some are annoyed by throwing it gave wrong
direction etc.
I don't really care if austrilia map is wrong at this moment or not, I care
more about the places I go more often. From my experience, I will prefer
apple map over the old google map. (I was a go... 阅读全帖
g*********s
发帖数: 1782
21
【 以下文字转载自 Programming 讨论区 】
发信人: gandjmitbbs (Nothing), 信区: Programming
标 题: STL map变量的实际memory usage估算
发信站: BBS 未名空间站 (Sat Apr 26 23:08:58 2008)
比如声明这样一个变量
using namespace std;
map *nameMap = new(map);
... // 在nameMap里插入了1000个(string, int) pair
现在需要估算这时heap的size增加了多少?
估算如下:
本身sizeof(map<...,...>)是48个字节。
一个string s的size是 sizeof(string) + s.size(),假定字符串长度都是8,则是16。
一个int是4字节。
这样至少是48+1000*(4+16)=2048 bytes。
但是map是用rb_tree实现,加上开销是多少呢?看了一下source code,不太确定是不
是算对了。
每个node包含c
l********a
发帖数: 1154
22
来自主题: Programming版 - map析构

这个实在没法写了,是另一个exe调用我这个dll,map在我的dll内定义的一个类中
class testGA
{
private:
//parameters
map params;
...
};
构造函数中,构造添加到params,用完就清除了
for (int i=0;i<(int)(node->children_.size());++i) { this->params.insert(make
_pair(node->children_[i]->name_,node->children_[i]->value_)); }
// 这里是其他代码,使用了map内容
this->params.clear(); // 清空map
析构函数中没有对map的操作
============================================
由于是exe调用dll,我再想想怎么重现问题.
看看能不能整个最小化的例子再出现这个错误
w*s
发帖数: 7227
23
say i want to combine several stores near me into iframe, to embed in my
webpage.
now i have the 1st place 41.698167,-70.15168,
2nd: 41.675861,-70.091255
3rd: 41.665218,-70.201462
how to combine them together in the format like