首页 \ 问答 \ Bing地图绘图工具模块(Bing Maps Drawing Tools Module)

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.

相关问答

更多
  • 一些测量。 我拿了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(freq) 2 ...
  • 方法2通常会更快,但它可能不会有明显的差别,除非它处于紧密的循环中。 每次你做abcd ,Python都必须查找这些属性的值,即使它们在两次使用之间没有变化。 如果您为该值创建一个变量x ,那么Python只需查找一次属性,从而节省时间。 做x = abcd不会创建一个新的对象,所以它不使用任何内存。 x将是对abcd指向的同一对象的引用。 但是,正因为如此,你需要小心。 任何改变x操作都会影响原始对象。 例如,如果abcd是一个列表,并且您执行x = abcd ,则x.append(1)将更改原始abcd ...
  • 根据您的意见,我建议您将任务分为两部分: 1)在第1部分中,使用正则表达式解析JSON文件,并以简单格式生成两个CSV文件:没有标题,没有空格,只有数字。 这应该是快速和高效的,没有内存问题:读入文本,写出文本。 不要试图在记忆中保留任何你不必要的东西。 2)在第2部分中,使用pandas read_csv()函数直接在CSV文件中进行pandas read_csv() 。 (是的,熊猫!你可能已经得到了它,而且它很快就好了。) Based on your comments, I'd suggest tha ...
  • INI不是JSON。 没有数据类型。 有部分和键/值对。 在=之前的东西是关键,之后的东西就是价值。 一切都是文字。 没有“字符串”,这意味着没有必要加双引号。 “逃脱”的反斜杠也是一样。 INI文件格式中不存在转义的概念。 所以,首先,你的文件应该是这样的: [Section] path = D:\ number = 10.0 boolean = False 接下来,我认为这是一个危险的操作 parser.read('file.ini') self.__dict__.update(dict(parser ...
  • 第二个问题是指针的问题,委托给C或其他语言不是解决方案,因为指针总是需要8或4个字节(取决于架构)。 另外,我假设使用64b python进行数十GB的工作,因此几乎每个变量类型都会大约2倍。 例如: node = [None, None, None, None] node = [[[None, None, None, None], None, None, None], None, None, None] 每个“None”都可以引用另一个节点(指针),因此不可能以这种方式进行优化。 如果您确定叶子的数量将 ...
  • 对于Python 3的情况,让我们探讨每种基本数据类型消耗的存储量, 首先,让我们定义一个帮助我们探索的辅助函数sizeof , import sys def sizeof(x): print(x.__class__, sys.getsizeof(x), x) 使用64位Python 3.6.1运行此命令,结果如下: >>> sizeof(None) 16 None None 16个字节。 接下来让我们探索整数, >>> sizeof(10)
  • 要么总是在本地将它存储在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.
  • 你提到的三个看起来很合适,并会支持你的要求。 我认为你应该继续你最舒服和熟悉的事情。 根据我个人的经验,我确实相信ZeroMQ是效率,易用性和互操作性之间的最佳组合。 我很容易地将zmq 2.2与Python 2.7集成,所以这将是我个人的最爱。 不过,正如我所说,我很确定你不会对所有3个框架出错。 一半相关:需求随着时间的推移而变化,您可能会决定稍后切换框架,因此封装对框架的依赖将是一个很好的设计模式。 (例如,拥有一个与框架交互的单一管道模块,并使其API使用您的内部数据结构和域语言) The thre ...
  • 新样式类是类型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.
  • 在你的问题中,你写了“解释器如何构建所有可能类型的完整列表” - 但这包含一个错误的假设。 没有完整的可能类型列表。 有一组有效的现有类型,但它们没有列在列表中。 您有一个名称空间,通常按特定顺序查找:function(locals),module(globals),builtins。 在解析代码时,编译器还为文字选择类型构造函数。 每个地方的每个名字都可以引用任何对象,其中很多是类型: >>> [name for name in dir(__builtins__) if isinstance( ...

相关文章

更多

最新问答

更多
  • 如何在Laravel 5.2中使用paginate与关系?(How to use paginate with relationships in Laravel 5.2?)
  • linux的常用命令干什么用的
  • 由于有四个新控制器,Auth刀片是否有任何变化?(Are there any changes in Auth blades due to four new controllers?)
  • 如何交换返回集中的行?(How to swap rows in a return set?)
  • 在ios 7中的UITableView部分周围绘制边界线(draw borderline around UITableView section in ios 7)
  • 使用Boost.Spirit Qi和Lex时的空白队长(Whitespace skipper when using Boost.Spirit Qi and Lex)
  • Java中的不可变类(Immutable class in Java)
  • WordPress发布查询(WordPress post query)
  • 如何在关系数据库中存储与IPv6兼容的地址(How to store IPv6-compatible address in a relational database)
  • 是否可以检查对象值的条件并返回密钥?(Is it possible to check the condition of a value of an object and JUST return the key?)
  • GEP分段错误LLVM C ++ API(GEP segmentation fault LLVM C++ API)
  • 绑定属性设置器未被调用(Bound Property Setter not getting Called)
  • linux ubuntu14.04版没有那个文件或目录
  • 如何使用JSF EL表达式在param中迭代变量(How to iterate over variable in param using JSF EL expression)
  • 是否有可能在WPF中的一个单独的进程中隔离一些控件?(Is it possible to isolate some controls in a separate process in WPF?)
  • 使用Python 2.7的MSI安装的默认安装目录是什么?(What is the default installation directory with an MSI install of Python 2.7?)
  • 寻求多次出现的表达式(Seeking for more than one occurrence of an expression)
  • ckeditor config.protectedSource不适用于editor.insertHtml上的html元素属性(ckeditor config.protectedSource dont work for html element attributes on editor.insertHtml)
  • linux只知道文件名,不知道在哪个目录,怎么找到文件所在目录
  • Actionscript:检查字符串是否包含域或子域(Actionscript: check if string contains domain or subdomain)
  • 将CouchDB与AJAX一起使用是否安全?(Is it safe to use CouchDB with AJAX?)
  • 懒惰地初始化AutoMapper(Lazily initializing AutoMapper)
  • 使用hasclass为多个div与一个按钮问题(using hasclass for multiple divs with one button Problems)
  • Windows Phone 7:检查资源是否存在(Windows Phone 7: Check If Resource Exists)
  • 无法在新线程中从FREContext调用getActivity()?(Can't call getActivity() from FREContext in a new thread?)
  • 在Alpine上升级到postgres96(/ usr / bin / pg_dump:没有这样的文件或目录)(Upgrade to postgres96 on Alpine (/usr/bin/pg_dump: No such file or directory))
  • 如何按部门显示报告(How to display a report by Department wise)
  • Facebook墙贴在需要访问令牌密钥后无法正常工作(Facebook wall post not working after access token key required)
  • Javascript - 如何在不擦除输入的情况下更改标签的innerText(Javascript - how to change innerText of label while not wiping out the input)
  • WooCommerce / WordPress - 不显示具有特定标题的产品(WooCommerce/WordPress - Products with specific titles are not displayed)