Questions tagged [topojson]

TopoJSON is an extension of GeoJSON that encodes topology.

Filter by
Sorted by
Tagged with
0
votes
1answer
40 views

Confusion regarding topojson Polygon coordinates

I have a topojson file which represents a hexagon. A hexagon has 6 vertices, so I was expecting the arcs attribute of topojson file would contain 6 points, but it contains 7. I wanted to know why ...
17
votes
1answer
458 views

rMaps choropleth with custom json

With R I want to make an animated choropleth map with the rMaps package and a custom map. I tried to follow the example of Diego Valle described here and to use the custom map info for Datamaps. ...
-1
votes
1answer
35 views

Seeking TopoJSON map of Chinese provinces which includes Hong Kong, Macau and Taiwan?

I have a TopoJSON map of China which is working well in d3.js. However, it is essential that I add Hong Kong, Macau/Macao and Taiwan to the map, but they are not included in the TopoJSON file. I have ...
1
vote
1answer
352 views

Mapshaper fails when converting files to .topojson due to file size?

I have a .gejson file that's about 378 meg (378,776k) and I'm trying to convert it to topojson. I was successful with files that sized to about 262 meg but files greater than that failed leaving the ...
0
votes
0answers
163 views

Custom SVG world map usable for react-simple-maps (topojson, d3-geo)?

A client has supplied a "custom" SVG containing a very detailed world map that includes id's for all countries. I'm not sure how "custom" it is. Is it at all possible to convert it to topojson, which ...
0
votes
0answers
36 views

TopoJSON: How to add external properties if there is nothing to map to?

The goal is to add external properties to a TopoJSON. I have succeeded in converting shapefiles from http://www.diva-gis.org/gdata for various countries into JSON files. I have also succeeded in down-...
0
votes
0answers
67 views

TopoJSON from PostgreSQL database

I already finish input and run all the GeoDjango code, it worked. But time after time my data got bigger and result in big size of GeoJSON. I used this code to read database from PostgreSQL (PostGIS) ...
4
votes
2answers
117 views

Seeking alternatives to Geodatabase to describe topological relations?

According to switchfromshapefile.org, there is no way to describe topological relations in a shapefile. I am aware that this can be done using a Geodatabase and I have heard of TopoJSON. If there are ...
2
votes
0answers
51 views

Converting .gri to topojson

I am making client-end javascript-powered maps in the context of web development. I am not using gdal, which I gather is a special kind of rendering software. Data source site: http://www.diva-gis....
0
votes
1answer
27 views

Determining WSEN of desired geographic area?

I'm looking to create a map of Afghanistan and I am in the middle of resampling binary geographic data into topojson format. The trouble is that my research of WSEN borders has returned nothing and I ...
0
votes
0answers
215 views

Converting TopoJSON data to GeoJSON using JavaScript in browser?

There are many articles about how convert GeoJSON to TopoJSON using JavaScript, but I could not find how to convert TopoJSON to GeoJSON in the browser. Response: Using http://d3js.org/topojson.v1....
2
votes
1answer
512 views

D3 Map + TopoJSON (mapshaper) showing empty

Just started learn D3.js and TopoJSON. I had shapefile files and converted using mapshaper to TopoJSON, but when I tried on my local server my map showing empty page without any errors. I don't have ...
0
votes
1answer
375 views

Install topojson on the command line

I want to use topojson on the command line to simplify some files. npm will install topojson without any errors: npm install -g topojson But then running: topojson produces -bash: topojson: ...
5
votes
1answer
3k views

Where can I get a TopoJSON with 3 digit zip codes (zip3) shapes?

Where can I get a TopoJSON file with 3 digit zip codes (zip3) shapes I have searched for days and I just can find 5 digit zip codes shapes.
4
votes
2answers
723 views

Creating a TopoJSON file with countries that also includes sovereign countries

I am looking for a TopoJSON file that includes all countries including what I ended up after looking as 'sovereign countries' found in the following link: https://en.wikipedia.org/wiki/...
1
vote
1answer
243 views

Openlayers 4 store drawn feature as TopoJSON

How can I get drawn features in Openlayers 4 in TopoJSON format. I can get the features in GeoJSON as shown in below snippet ................................. var draw = new ol.interaction.Draw({ ...
4
votes
1answer
360 views

Vector Tiles for NetCDF Data [closed]

I understand that the GeoServer can produce vector tiles in three formats: GeoJSON, TopoJSON, and MapBox Vector (MVT). Moreover vector tiles has many advantages in handling data such as reduced size ...
6
votes
2answers
4k views

How to merge TopoJSON features?

I currently have a coordinate based map of the US and it's states for topojson (https://github.com/mbostock/topojson). The coordinates are a JSON array (as topojson works), data looks like this: [-...
2
votes
1answer
383 views

Use UTF-8 encoding mapshaper

I want to convert a json into topoJson using mapshaper.org. The json file I am using has world wide names in it, hence is encoded in UTF-8. However, when I upload the file on mapshaper and then ...
0
votes
1answer
306 views

How to split Indian states and provinces from world states and provinces shapefile?

I am following Mike Bostock's D3 Lets make a map to create GeoJSON for states and provinces of a country. I got a shapefile for states and provinces from Natural Earth. I am trying to extract info for ...
3
votes
1answer
128 views

No data pixels in raster file

I have a TIFF file and I'm trying to use rasterstats to get statistics of different geometries defined in a shapefile or a TopoJSON file. But I'm getting the count as 0 for all the geometries. My ...
2
votes
2answers
228 views

Remove countries from JSON file

I have this file nuts0.json that I would like to change by removing some countries like Iceland. To do this, I used the method I found in this post. Then I coverted the GeoJSON file to TopoJSON using ...
1
vote
1answer
436 views

Remove some islands from Europe json file

It's the first time I use a JSON file to create a map of Europe. I downloaded these two files: nuts0.json nuts2.json The first represents the states, while the second represents the regions of each ...
0
votes
1answer
286 views

How to generate tiled Geo/Topo JSON?

Are there any command line tools can take a Shapefile or a GeoJSON file and generate a tiled version of them?
0
votes
1answer
294 views

Merge adjacent polygons [closed]

I want to write software that merges groups of (mainly) adjacent polygons. For example, merge the US counties into sales regions. Then, display either the boundary of these sales regions or fill them ...
0
votes
1answer
533 views

Merging separate country features together into one region

I am trying to creating a map of the UK where Scotland and England are merged into one shape and not separate shapes for each country. As a minimum working example, I'm following Mike Bostock's Let's ...
0
votes
1answer
208 views

How to configure Apache for topojson gzip files [closed]

Building an online interactive map with leaflet and some heavy layers with my spatial data in topojson format. I have been reading about gzip but I am still uncertain how to configure it. Do I need ...
2
votes
1answer
232 views

How do I merge csv data into topojson file?

I have a file, Council_Districts.topojson, with the following structure: { type: 'Topology', arcs: [...], transform: {...}, objects: { Council_Districts_2016: { type: 'GeometryCollection', ...
2
votes
1answer
143 views

Adjacency matrix from TopoJSON

I have a TopoJSON file which describes electoral districts in Montreal, and I would like to produce an adjacency matrix which would tell me which districts share a boundary with which other districts. ...
0
votes
0answers
594 views

Python library to create topologies [duplicate]

Is there any Python library that facilitates the creation of topologies? I would like to create topologies using an open and portable format such as TopoJSON or GML. The main goal is to save space in ...
4
votes
1answer
4k views

Conversion from Shapefile to TopoJSON format results in incorrect map when rendered using d3js

I am trying to build a map of Canada showing FSA boundaries using d3js. I got shape data from Statistics Canada [http://www12.statcan.gc.ca/census-recensement/2011/geo/bound-limit/bound-limit-2011-eng....
1
vote
0answers
162 views

GeoJSON or TopoJSON outline of Milky Way [closed]

I'm looking for a GeoJSON or TopoJSON file with the Milky Way outline on the Sky sphere, for an astronomical almanac web application I'm building with the D3js JavaScript library. I have searched in ...
2
votes
0answers
150 views

GeoJSON<->TopoJSON roundtrip breaks leaflet on antimeridean

For Wikipedia, I'm writing a service that extracts polygons of a country by a given ID, simplifies them, and produces GeoJSON. The PostGIS query produces this GeoJSON: {"type":"MultiPolygon","...
1
vote
1answer
104 views

Can caving systems be represented in GeoJSON/TopoJSON?

I've been looking over the GeoJSON/TopoJSON specs (as best I understand it TopoJSON is an extended GeoJSON standard which uses 'arcs' to combine features into topography rather than have each polygon ...
1
vote
1answer
4k views

How to merge/combine files in Mapshaper using combine-files command?

I'm trying to simplify several geojson and topojson files at once to output them into one file with a consistent level of detail. I'm using Mapshaper because I like it's map simplification features. ...
37
votes
2answers
14k views

Convert GeoJSON to TopoJSON

Question How do you convert GeoJSON data to TopoJSON? Why Topojson files are often smaller than geojson and the conversion allows you to incrementally simplify a dataset, if you wish.
1
vote
0answers
264 views

Reading topojson file in d3.js problem

The topojson file with my code shows only one propriety with one path,my topojson file looks like the sample . what I am doing wrong ? I dont know if the problem with the topojson or the code as this ...
1
vote
0answers
58 views

Keep name of Local Authority when converting KML to GeoJSON?

I am trying to convert this KML to GeoJSON. All I want to do is draw the map with D3 and as I hover over each local authority, have the name in a popup. I tried this online tool and it seems to ...
2
votes
4answers
1k views

Problems installing TopoJSON

I experienced problems with installing TopoJSON. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(64,5): error MSB8020: The build tools for Visual Studio 2010 (...
1
vote
1answer
796 views

Using topojson.py?

How do I use the topojson.py created by calvinmetcalf: https://github.com/calvinmetcalf/topojson.py There is a test file at git, which I tried to modify, but unfortunately I don't really know the ...
0
votes
1answer
2k views

TopoJSON rendering issues using D3

I have rendered the world map using world-110m topojson. I directly used the code provided by Jakob on D3 mapping tutorial - http://www.digital-geography.com/d3-js-mapping-tutorial-1-set-initial-...
4
votes
2answers
675 views

Which topology file formats are supported by QGIS?

I would like to know which topology file formats are supported by QGIS. I am particularly interested in displaying topologies encoded with TopoJSON or GML. But any other portable topology file ...
1
vote
3answers
952 views

List of coordinates to Topojson

I have a list of coordinates in Lambert Conformal Conic projection. Those coordinates draw the border of specific area. (179506,161069),(180016,161633),(180375,162142),... I need to create a ...
3
votes
1answer
613 views

Which D3 microlibraries are required to load TopoJSON/GeoJSON files and translate into path definitions?

D3 v4 is modular, based on around 30 "microlibraries", intended to allow discrete functions to be broken out and used on their own. I'm trying to assemble a minimal set of D3 microlibraries to do the ...
3
votes
1answer
59 views

Ghost feature in D3

I am very new. to GIS. I am making an interactive that uses TopoJSON. Starting with a shapefile map of the world that shows the last bit of the Russia on the left rather than attached to the main ...
1
vote
1answer
799 views

How to preserve properties (like -p) in topojson conversion in Mapshaper?

I'm trying to use mapshaper.org to convert some geojson files to topojson, and I need the identifying properties to be preserved. Normally this would be done with the -p flag on the command line, but ...
18
votes
5answers
13k views

GeoJSON too bulky - what to do?

I am using leaflet.js to allow web users to select a region. Valid regions are US states, Canadian providences, and world countries (except for US and Canada). I constructed a shapefile myself using ...
0
votes
0answers
196 views

Using ordnance survey data to make a D3 map?

I would like to display a map of the UK Westminster Parliamentary Constituencies in D3 with a width of 980px. I have downloaded and extracted the ordnance survey ESRI shapefiles from here: https://...
1
vote
0answers
70 views

Merging features by admin or sovereingt

I followed Mike Bostock's 'Let's Make a Map' tutorial to make a GeoJSON map of the EU starting from a 1:10M cultural admin0 shapefile from Natural Earth. The problem that I'm facing if that some of ...
6
votes
2answers
3k views

Which plugin can draw topoJson right within Leaflet without conversion?

I already have asked how to reduce file size and increase performance for publishing spatial data on the web using Leaflet, here. A conversion to TopoJSON has reduced the file size by approximately ...