Bing地图绘图工具模块(Bing Maps Drawing Tools Module)

我们正在使用Bing Maps V7的Ricky Brundritt绘图工具模块。 这是否有Bing Maps V8版本? 由于我们无法使用此绘制形状。 任何帮助是极大的赞赏。


We are using Ricky Brundritt Drawing Tools Module for Bing Maps V7. Is there a Bing Maps V8 version of this ? Since we are unable to draw shapes using this. Any help is greatly appreciated.


原文:https://stackoverflow.com/questions/48231641
2021-09-19 19:09

满意答案

第二个问题是指针的问题,委托给C或其他语言不是解决方案,因为指针总是需要8或4个字节(取决于架构)。 另外,我假设使用64b python进行数十GB的工作,因此几乎每个变量类型都会大约2倍。

例如:

node = [None, None, None, None]
node = [[[None, None, None, None], None, None, None], None, None, None]

每个“None”都可以引用另一个节点(指针),因此不可能以这种方式进行优化。 如果您确定叶子的数量将少于~65K,那么您可以减少(~4次)并根据需要修改64b架构上的指针大小。

第一个问题的问题类似(指针总是占用必要的空间),解决方案是使用位数组或使用位操作,并尝试在一个变量中存储更多值。 但是如果有必要在某些结构中精确地存储例如2个字节的值然后例如在数组中,则在python中它将不具有存储器效率。


Second problem is matter of pointers, delegate to C or another language is not solution because pointer will always take 8 or 4 bytes (depends on architecture). In addition, I assume to use 64b python for work with tens of GB so almost every variable type will be ~2 times greater.

For example:

node = [None, None, None, None]
node = [[[None, None, None, None], None, None, None], None, None, None]

Each "None" is possible reference to another node (pointer), so it is not possible to do optimization in this way. If you are sure that count of leaf will be e.g. less then ~65K, then you can decrease (~4 times) and modify size of pointer on 64b architecture for your needs.

Problem of first problem is similar (pointer will always take necessary space) and solution is use bit arrays or use bit operations and try to store more values in one variable. But if it is necessary to store exactly e.g 2 bytes values in some structure and then e.g. in array, it won't be memory-efficient in python.

相关问答

更多

内存高效的替代Python字典(Memory Efficient Alternatives to Python Dictionaries)

一些测量。 我拿了10MB的免费电子书文本和计算的三角形频率,产生一个24MB的文件。 将其存储在不同的简单Python数据结构中,在kB中占用了大量空间,以运行ps的RSS为单位,其中d是dict,keys和freqs是列表,a,b,c,freq是三元组记录的字段: 295760 S. Lott's answer 237984 S. Lott's with keys interned before passing in 203172 [*] d[(a,b,c)] = int(fr...

在Python中,使用变量的方式在速度,CPU,内存等方面更有效率?(Which way of using variables is more efficient in terms of speed, cpu, memory, etc in python?)

方法2通常会更快,但它可能不会有明显的差别,除非它处于紧密的循环中。 每次你做abcd ,Python都必须查找这些属性的值,即使它们在两次使用之间没有变化。 如果您为该值创建一个变量x ,那么Python只需查找一次属性,从而节省时间。 做x = abcd不会创建一个新的对象,所以它不使用任何内存。 x将是对abcd指向的同一对象的引用。 但是,正因为如此,你需要小心。 任何改变x操作都会影响原始对象。 例如,如果abcd是一个列表,并且您执行x = abcd ,则x.append(1)将更改原...

python中内存高效的2d可扩展数组?(Memory-efficient 2d growable array in python?)

根据您的意见,我建议您将任务分为两部分: 1)在第1部分中,使用正则表达式解析JSON文件,并以简单格式生成两个CSV文件:没有标题,没有空格,只有数字。 这应该是快速和高效的,没有内存问题:读入文本,写出文本。 不要试图在记忆中保留任何你不必要的东西。 2)在第2部分中,使用pandas read_csv()函数直接在CSV文件中进行pandas read_csv() 。 (是的,熊猫!你可能已经得到了它,而且它很快就好了。) Based on your comments, I'd sugges...

在Python中使用具有不同变量类型的ConfigParser(Use ConfigParser with different variable types in Python)

INI不是JSON。 没有数据类型。 有部分和键/值对。 在=之前的东西是关键,之后的东西就是价值。 一切都是文字。 没有“字符串”,这意味着没有必要加双引号。 “逃脱”的反斜杠也是一样。 INI文件格式中不存在转义的概念。 所以,首先,你的文件应该是这样的: [Section] path = D:\ number = 10.0 boolean = False 接下来,我认为这是一个危险的操作 parser.read('file.ini') self.__dict__.update(dict(p...

Python中的内存高效变量类型(Memory efficient variable types in Python)

第二个问题是指针的问题,委托给C或其他语言不是解决方案,因为指针总是需要8或4个字节(取决于架构)。 另外,我假设使用64b python进行数十GB的工作,因此几乎每个变量类型都会大约2倍。 例如: node = [None, None, None, None] node = [[[None, None, None, None], None, None, None], None, None, None] 每个“None”都可以引用另一个节点(指针),因此不可能以这种方式进行优化。 如果您确定叶...

在Javascript和Python中为不同的数据类型分配了多少内存?(How much memory is allocated to different data types in Javascript & Python? [closed])

对于Python 3的情况,让我们探讨每种基本数据类型消耗的存储量, 首先,让我们定义一个帮助我们探索的辅助函数sizeof , import sys def sizeof(x): print(x.__class__, sys.getsizeof(x), x) 使用64位Python 3.6.1运行此命令,结果如下: >>> sizeof(None) <class 'NoneType'> 16 None None 16个字节。 接下来让我们探索整数, >>> sizeof(10) <c...

处理C中的动态整数类型?(Dealing with dynamic integer types in C?)

要么总是在本地将它存储在long long ,要么将其放在由大小标志和所有可能类型的并union组成的struct 。 Either always store it in a long long locally, or put it in a struct composed of a flag for the size and a union of all the possible types.

高效的Python IPC(Efficient Python IPC)

你提到的三个看起来很合适,并会支持你的要求。 我认为你应该继续你最舒服和熟悉的事情。 根据我个人的经验,我确实相信ZeroMQ是效率,易用性和互操作性之间的最佳组合。 我很容易地将zmq 2.2与Python 2.7集成,所以这将是我个人的最爱。 不过,正如我所说,我很确定你不会对所有3个框架出错。 一半相关:需求随着时间的推移而变化,您可能会决定稍后切换框架,因此封装对框架的依赖将是一个很好的设计模式。 (例如,拥有一个与框架交互的单一管道模块,并使其API使用您的内部数据结构和域语言) The...

内存中的python类是否存储为类“类型”的实例?(Are python classes in memory stored as instances of the class “types”?)

新样式类是类型type 。 旧式类(在Python2中)属于classobj类型。 可以在此处找到有关不同类别的更多信息。 New style classes are of type type. Old-style classes, (in Python2), are of type classobj. More about the different kinds of classes can be found here.

Python解释器如何查找类型?(How does Python interpreter look for types?)

在你的问题中,你写了“解释器如何构建所有可能类型的完整列表” - 但这包含一个错误的假设。 没有完整的可能类型列表。 有一组有效的现有类型,但它们没有列在列表中。 您有一个名称空间,通常按特定顺序查找:function(locals),module(globals),builtins。 在解析代码时,编译器还为文字选择类型构造函数。 每个地方的每个名字都可以引用任何对象,其中很多是类型: >>> [name for name in dir(__builtins__) if isinst...

相关文章

更多

SharePoint Development Tools

其他工具创建一个表,以开发和管理的SharePoint更容易一些。全部都是免费的,除非另有注明。 Vi ...

SharePoint Development Tools

其他工具创建一个表,以开发和管理的SharePoint更容易一些。全部都是免费的,除非另有注明。 Vi ...

Good .net tools

SYS-CON Media系列媒体揭晓   2003年度读者选择奖 最佳 .NET 图书暨培训软件 大 ...

Five More Hacker Tools Every CISO Should Understand

As we mentioned in the first article, Top Five Hack ...

A Great List of Windows Tools

Windowsis an extremely effective and a an efficient ...

Clojure常用模块

http://qiujj.com/static/clojure-handbook.html http: ...

名列前茅的75个 安全工具

Top 75 Security Tools 此调查由http://www.insecure.org进行 ...

如何使用 Example42 的 Puppet 模块【转】

现在我们差不多移植了100多台服务器到虚拟机,中间合并了很多功能类似的服务器(历史遗留问题)到同一虚拟 ...

【云图】如何制作附近实体店的地图?-微信微博支付宝

摘要: 附近连锁店地图与全国连锁店地图,最大的区别就是: 1、附近连锁店地图需要先定位,然后搜索附近的 ...

最新问答

更多

获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)

我用Google搜索了一个解决方案。 “EnumDisplayModeProvider”是我自己设置网站的各种模式的枚举。 public EnumDisplayModeProvider GetDisplayModeId() { foreach (var mode in DisplayModeProvider.Instance.Modes) if (mode.CanHandleContext(HttpContext)) {

如何通过引用返回对象?(How is returning an object by reference possible?)

这相对简单:在类的构造函数中,您可以分配内存,例如使用new 。 如果你制作一个对象的副本,你不是每次都分配新的内存,而是只复制指向原始内存块的指针,同时递增一个也存储在内存中的引用计数器,使得每个副本都是对象可以访问它。 如果引用计数降至零,则销毁对象将减少引用计数并仅释放分配的内存。 您只需要一个自定义复制构造函数和赋值运算符。 这基本上是共享指针的工作方式。 This is relatively easy: In the class' constructor, you allocate m

矩阵如何存储在内存中?(How are matrices stored in memory?)

正如它在“熵编码”中所说的那样,使用Z字形图案,与RLE一起使用,在许多情况下,RLE已经减小了尺寸。 但是,据我所知,DCT本身并没有给出稀疏矩阵。 但它通常会增强矩阵的熵。 这是compressen变得有损的点:输入矩阵用DCT传输,然后量化量化然后使用霍夫曼编码。 As it says in "Entropy coding" a zig-zag pattern is used, together with RLE which will already reduce size for man

每个请求的Java新会话?(Java New Session For Each Request?)

你是如何进行重定向的? 您是否事先调用了HttpServletResponse.encodeRedirectURL()? 在这里阅读javadoc 您可以使用它像response.sendRedirect(response.encodeRedirectURL(path)); The issue was with the path in the JSESSIONID cookie. I still can't figure out why it was being set to the tomca

css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)

我认为word-break ,如果你想在一个单词中打破行,你可以指定它,这样做可以解决问题: .column { word-break:break-all; } jsFiddle演示。 您可以在此处阅读有关word-break属性的更多信息。 I think word-break, with which you can specify if you want to break line within a word, will do the trick: .column { word-break

无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)

我认为您忘记在分类时间内缩放输入图像,如train_test.prototxt文件的第11行所示。 您可能应该在C ++代码中的某个位置乘以该因子,或者使用Caffe图层来缩放输入(请查看ELTWISE或POWER图层)。 编辑: 在评论中进行了一次对话之后,结果发现在classification.cpp文件中错误地删除了图像均值,而在原始训练/测试管道中没有减去图像均值。 I think you have forgotten to scale the input image during cl

xcode语法颜色编码解释?(xcode syntax color coding explained?)

转到: Xcode => Preferences => Fonts & Colors 您将看到每个语法高亮颜色旁边都有一个简短的解释。 Go to: Xcode => Preferences => Fonts & Colors You'll see that each syntax highlighting colour has a brief explanation next to it.

在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)

你考虑过第三方拼写检查吗? 您可以将在C#中开发的自定义WinForms控件插入访问数据库吗? VB6控件怎么样? 如果你能找到一个使用第三方库进行拼写检查的控件,那可能会有效。 Have you considered a third party spell checker? Can you insert a custom WinForms controls developed in C# into an access database? What about a VB6 control? If

从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)

我有同样的问题,因为我在远程服务器上有两个图像,我需要在每天的预定义时间复制到我的本地服务器,这是我能够提出的代码... try { if(@copy('url/to/source/image.ext', 'local/absolute/path/on/server/' . date("d-m-Y") . ".gif")) { } else { $errors = error_get_last(); throw new Exception($err

从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))

我不确定我完全明白你在说什么。 你能编辑你的帖子并包含你正在做的Subversion命令/操作的特定顺序吗? 最好使用命令行svn客户端,以便容易为其他人重现问题。 如果您只是想获取文件的旧副本(即使该文件不再存在),您可以使用如下命令: svn copy ${repo}/trunk/moduleA/file1@${rev} ${repo}/trunk/moduleB/file1 其中${repo}是您的存储库的URL, ${rev}是您想要的文件的版本。 这将恢复该文件的旧版本,包括最高版本