ogr

Ways to project topojson?

两盒软妹~` 提交于 2019-11-30 21:22:37
Given a shapefile : Natural_earth/ ne_10m_admin_0_sovereignty.zip Given we want to reproject it for a D3js data viz, we could reproject at different levels. 1. Get a reprojected shapefile ( 1 ), using ogr2ogr : ogr2ogr -f 'ESRI Shapefile' -t_srs 'EPSG:...' output.shp input.shp OR 2. get a reprojected topojson ( 2 ), using (npm) topojson.js : topojson \ -o output.topo.json --projection 'd3.geo.albersUsa()' \ -q 1e5 \ -s 1 \ -- input.shp OR 3. get a reprojected D3js data / SVG ( 1 ), D3js code including: var path = d3.geo.path() .projection(d3.geo.albersUsa()) // unsure of this syntaxe,

In R and knitr, can I suppress the message of readOGR?

隐身守侯 提交于 2019-11-30 17:52:35
I'm building small report using R & knitr, sending the output to pdf. I'm using several shape files in my analysis and whenever I use readOGR function of rgdal package I get information on what is being read, for instance: OGR data source with driver: ESRI Shapefile Source: "__PATH_HERE__", layer: "__NAME__OF__LAYER__HERE__" with 148 features and 5 fields Feature type: wkbPolygon with 2 dimensions Normally, it's useful thing to have.. but unfortunately it also prints out in my pdf output. I tried setting knitr's chunk options to echo=FALSE, message=FALSE but unfortunately it did't help. Any

Ways to project topojson?

拜拜、爱过 提交于 2019-11-30 17:08:29
问题 Given a shapefile : Natural_earth/ne_10m_admin_0_sovereignty.zip Given we want to reproject it for a D3js data viz, we could reproject at different levels. 1. Get a reprojected shapefile (1), using ogr2ogr : ogr2ogr -f 'ESRI Shapefile' -t_srs 'EPSG:...' output.shp input.shp OR 2. get a reprojected topojson (2), using (npm) topojson.js : topojson \ -o output.topo.json --projection 'd3.geo.albersUsa()' \ -q 1e5 \ -s 1 \ -- input.shp OR 3. get a reprojected D3js data / SVG (1), D3js code

Incorporating GDAL/OGR into an iOS project - A quick guide

余生颓废 提交于 2019-11-30 06:21:47
问题 Here is the problem: GDAL is a fantastic open source library designed to manage complex GIS data, both raster as well as vector. It is fully compiled for the Mac OS (courtesy of William Kyngesburye) and other platforms but not for iOS. Browsing the net you can find bits and pieces of (relatively old) information on the topic of creating an iOS library, starting with the famous script from pseudogreen which was written over 3 years ago. There are also bits and pieces on stack-overflow such as

In R and knitr, can I suppress the message of readOGR?

梦想的初衷 提交于 2019-11-30 01:45:56
问题 I'm building small report using R & knitr, sending the output to pdf. I'm using several shape files in my analysis and whenever I use readOGR function of rgdal package I get information on what is being read, for instance: OGR data source with driver: ESRI Shapefile Source: "__PATH_HERE__", layer: "__NAME__OF__LAYER__HERE__" with 148 features and 5 fields Feature type: wkbPolygon with 2 dimensions Normally, it's useful thing to have.. but unfortunately it also prints out in my pdf output. I

Incorporating GDAL/OGR into an iOS project - A quick guide

瘦欲@ 提交于 2019-11-28 17:40:27
Here is the problem: GDAL is a fantastic open source library designed to manage complex GIS data, both raster as well as vector. It is fully compiled for the Mac OS (courtesy of William Kyngesburye) and other platforms but not for iOS. Browsing the net you can find bits and pieces of (relatively old) information on the topic of creating an iOS library, starting with the famous script from pseudogreen which was written over 3 years ago. There are also bits and pieces on stack-overflow such as GDAL / OGR on the iPhone which provide additional information. This article is meant to cover all the