我想知道是否有人可以帮助我.我正在开展一个项目,我必须将Google地图转换为可以在书中打印的文件.我想到了下载的文件并在Illustrator中进行编辑,我可以进一步编辑它并将其保存为SVG或PNG.
有谁知道这是否可行?
感谢并为缺乏代码道歉,我不知道如何开始这个想法.
我正在尝试将CSV文件导入到项目的图形中.我在Mac OS X上使用R 2.15.2.
第一种尝试方式
我正在尝试运行以导入CSV文件的脚本是这样的:
group4 <- read.csv("XXXX.csv", header=T)
Run Code Online (Sandbox Code Playgroud)
但我不断收到此错误消息:
Error in read.table(file = file, header = header, sep = sep, quote = quote, : object 'XXXXXX.csv' not found
第二种方式尝试
我尝试移动我的工作目录但得到另一个错误,说我无法移动我的工作目录.所以我进入Preferences选项卡并将工作目录更改为包含我的CSV文件的文件.但我仍然得到同样的错误(第一种方式).
第三种尝试
然后我尝试了这个脚本:
group4 <- read.table(file.choose(), sep="\t", header=T)
Run Code Online (Sandbox Code Playgroud)
我收到这个错误:
Warning message: In read.table(file.choose(), sep = "\t", header = T) : incomplete final line found by readTableHeader on '/Users/xxxxxx/Documents/Programming/R/xxxxxx/xxxxxx.csv'
我在R网站和整个互联网上搜索过,没有什么能让我将这个简单的CSV文件导入R控制台.
我使用 Node.js、Express、MongoDB 和 Mongoose 构建的应用程序遇到了严重问题。昨晚,当我nodemon server.js“运行服务器”时,一切似乎都正常。在命令行上,一切似乎都正常,但在浏览器(特别是 Chrome)上,我收到以下错误:没有收到数据 ERR_EMPTY_RESPONSE。我在我的机器上尝试过其他 Node 项目,它们也很难工作。我昨晚进行了 npm 更新,以便更新我的模块,因为我从 MongoDB/Mongoose { [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND'} 收到另一个错误。我使用这个答案中的解决方案来尝试修复它,但它不起作用,我仍然收到该错误。现在我的浏览器根本没有收到任何文件。我的代码如下。请帮忙:
//grab express and Mongoose
var express = require('express');
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
//create an express app
var app = express();
app.use(express.static('/public/css', {"root": __dirname}));
//create a database
mongoose.connect('mongodb://localhost/__dirname');
//connect to the data store on the set up the database
var db = mongoose.connection;
//Create a model which connects to the schema …Run Code Online (Sandbox Code Playgroud) 我正在为Leaflet做快速入门教程,我一直在得到一张空白的地图.我正在使用JavaScript初始化地图,但即使我假设所有的写代码,我仍然看不到地图.请帮忙,我的代码如下:
<!DOCTYPE HTML>
<div id="map">
<script type="text/javascript" src="http://cdn.leafletjs.com/leaflet-0.4/leaflet.js"></script>
<script type="text/javascript">
var map = L.map('map').setView([28.23211669921875, -26.050065042385917], 10);
L.tileLayer('http://b.tilecloudmade.com/e7b61e61295a44a5b319ca0bd3150890/997/256/18/149531/108306.png', {
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://cloudmade.com">CloudMade</a>',
maxZoom: 18
}).addTo(map);
</script>
</div>
</div>
Run Code Online (Sandbox Code Playgroud) 我真的需要帮助,因为我迷失了.
我正在尝试创建一个折线图,显示一年内几支球队的表现.我把这一年分为四季:2012年1月1日,2012年4月1日.12年8月1日.12/1/12并将csv数据帧加载到R.
Month Team Position
1 1/1/12 South Africa 56
2 1/1/12 Angola 85
3 1/1/12 Morocco 61
4 1/1/12 Cape Verde Islands 58
5 4/1/12 South Africa 71
6 4/1/12 Angola 78
7 4/1/12 Morocco 62
8 4/1/12 Cape Verde Islands 76
9 8/1/12 South Africa 67
10 8/1/12 Angola 85
11 8/1/12 Morocco 68
12 8/1/12 Cape Verde Islands 78
13 12/1/12 South Africa 87
14 12/1/12 Angola 84
15 12/1/12 Morocco 72
16 12/1/12 Cape Verde Islands …Run Code Online (Sandbox Code Playgroud) 我对此问题越来越感到沮丧,但我一直在尝试重新安装GDAL以安装新版本的QGIS.当我尝试使用pip install GDAL我安装它时,我得到以下内容:
Installing collected packages: GDAL
Running setup.py install for GDAL
building 'osgeo._gdal' extension
cc -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I../../port -I../../gcore -I../../alg -I../../ogr/ -I/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/GDAL.framework/Versions/1.9/include -c extensions/gdal_wrap.cpp -o build/temp.macosx-10.7-x86_64-2.7/extensions/gdal_wrap.o
extensions/gdal_wrap.cpp:2230:11: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
res = SWIG_AddCast(res);
~~~ ^ ~~~
extensions/gdal_wrap.cpp:2233:11: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
res = SWIG_AddCast(res);
~~~ ^ ~~~
extensions/gdal_wrap.cpp:3515:12: error: use of …Run Code Online (Sandbox Code Playgroud) 我正在为我打算为其工作的一家公司完成一个项目,并且在编写肯尼亚的choropleth地图时遇到了代码挑战。我已经能够使用GeoJSON和TopoJSON生成地图,并从文件夹中的JSON文件绘制路径。目前,这是我的HTML外观:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="js/d3.v3.js"></script>
<script type="text/javascript" src="js/topojson.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
<link rel="stylesheet" href="css/bootstrap.css" media="screen">
</head>
<body>
<div class="row">
<header class="span12">
<h1>Aphellion Activity 1 - Kenya Maps</h1>
<h3>The goal of this activity is generate two maps one drawn with D3.js using GeoJSON to generates the paths, the other drawn using TopoJSON to generate the paths.</h3>
</header>
</div>
</br>
<div class="row">
<div class="span4" id="Map1"></div>
<div class="span2" id="paragraph">
</div>
<div class="span4" id="Map2"></div>
<div class="span2"> …Run Code Online (Sandbox Code Playgroud)