Questions tagged [topojson]

TopoJSON is an extension of GeoJSON that encodes topology.

Filter by
Sorted by
Tagged with
-1
votes
1answer
33 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 ...
0
votes
0answers
121 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
24 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
1answer
33 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 ...
0
votes
0answers
60 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
109 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
25 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
170 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....
0
votes
1answer
343 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: ...
4
votes
2answers
684 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
231 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({ ...
2
votes
2answers
217 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 ...
2
votes
1answer
461 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 ...
1
vote
1answer
425 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 ...
4
votes
1answer
348 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 ...
2
votes
1answer
220 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', ...
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 ...
1
vote
0answers
159 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 ...
1
vote
0answers
257 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 ...
2
votes
1answer
373 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 ...
1
vote
1answer
342 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 ...
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 ...
1
vote
1answer
103 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
762 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 ...
4
votes
2answers
659 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 ...
0
votes
0answers
585 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 ...
1
vote
3answers
924 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 ...
2
votes
0answers
148 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","...
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
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. ...
0
votes
1answer
302 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
604 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 ...
0
votes
1answer
779 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 ...
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-...
0
votes
0answers
191 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 ...
2
votes
0answers
296 views

TopoGeometry commands with postgres are really slow

After messing around quite a while, I was finally able to get a topogeometry converted from my geometry table following the example of toTopoGeom. I have the topology extension, with a topology schema ...
2
votes
0answers
345 views

How to remove projection in terminal from .shp file with valid .prj available

I have .prj, .shp, .sbn, .sbx, .shx, .dbf files where the content of the .prj file is the following: PROJCS["S-JTSK_Krovak_East_North",GEOGCS["GCS_S_JTSK",DATUM["D_S_JTSK",SPHEROID["Bessel_1841",...
17
votes
1answer
452 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. ...
0
votes
1answer
290 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 ...
2
votes
0answers
132 views

Combine files in TopoJSON when one is simplified differently to the other

I have two .shp files, I am separately converting these to GeoJSON with ogr2ogr.exe and then combining the files with TopoJSON. Each file independently becomes a ~200kb topojson file, however the ...
7
votes
0answers
1k views

Extract TopoJSON directly from PostGIS

I have a simple "region" table: id (TEXT), name (TEXT), geom (MULTIPOLYGON). Here's the query I can use to extract a GeoJSON FeatureCollection: SELECT row_to_json(fc) FROM ( SELECT '...
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
1answer
204 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 ...
4
votes
1answer
312 views

Truly lossless TopoJSON / keep all coordinates in TopoJSON

I'm displaying GPX traces on a Leaflet map. I'm using TopoJSON to drastically reduce file size, which works pretty well. My problem is the following : I want to be able to display altitude and ...
1
vote
1answer
900 views

Rendering TopoJSON in Leaflet from GeoJSON PostGIS output?

I'm using the query found here SQL query to have a complete geojson feature from PostGIS to get a geojson that I can display on a leaflet map. However, the amount of data is kinda big and the ...
1
vote
1answer
662 views

GRIB data interpolation

I've been wrangling around in GFS grid based data (GRIB - mostly 0.5 degree resolution). I'm interested in plotting these by converting to geojson with ogr2ogr (which is quite easy). However, is there ...
1
vote
1answer
74 views

Why is my map zoomed in so ragged compared to what I actually drawed in QGIS

So overall my map looks the same like what I draw in QGIS. The issue is that when I zoom in, in that case 54x then you can see ragged lines. QGIS Browser That is not what I need. I need high ...
2
votes
1answer
6k views

D3.js cannot render my geoJSON file

I've been trying to draw maps using the d3.js library in a manner similar to that below. <script> //Width and height var w = 500; var h = 300; //Define path ...