Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [topojson]

TopoJSON is an extension of GeoJSON that encodes topology.

0
votes
1answer
25 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: ...
0
votes
0answers
25 views

D3 Cartogram.js ZA Tutorial issue, cannot read property of undefined

I do not have a good understanding of D3, or really javascript - I am very new to all of this. I've been wokring on a project to replicate this, which I have been essentially borrowing directly from ...
4
votes
2answers
192 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
54 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
114 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 ...
0
votes
0answers
107 views

How to filter geometries from existing Topojson from command line

All of the tutorials on filtering geometry features I've seen assume you have a geojson/shp file to start. For example, mapshaper CLI says to run: mapshaper usa_counties.shp -filter '"ME,VT,NH,MA,CT,...
2
votes
1answer
175 views

d3 Map + Topojson (mapshaper) showing empty

Just started learn the d3 js map and topojson. I had shp file files and converted using mapshaper to topojson, but when i tried on mylocal my map showing empty page without any errors. I don't have ...
1
vote
1answer
251 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
0answers
209 views

Leaflet Application with 3D viewing of TopoJSON layers

I have developed a Leaflet web mapping application with displaying data from TopoJSON. I need to render the leaflet map in 3D perspective in my application. I have referred that the "WebGL Earth ...
0
votes
0answers
60 views

Multi-dimensional netCDF to TopoJSON in GeoServer [duplicate]

I need to send the netCDF file from the GeoServer to the client as vector tiles such as TopoJSON or GeoJSON. I need to know whether GeoServer is capable of generating the TopoJSON from netCDF. Please ...
3
votes
1answer
197 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 ...
0
votes
0answers
146 views

How to slice topoJson/MVT from local file to vector tiles in open layers

I am using geojson-vt library to slice GeoJSON into vector tiles in open layers(ref_link) but to decrease the size of the data being downloaded, I am downloading the data as TopoJSON or MVT(Mapbox ...
0
votes
0answers
32 views

Leaflet Line Layer Artifacts / Errors

I have multiple TopoJson line layers loaded (using the Omnivore plugin) in a Leaflet WebMap. I am encountering 'artifacts' when zooming in and out of the map on some features. Lines are appearing ...
2
votes
1answer
111 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
107 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
121 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
202 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 ...
0
votes
0answers
180 views

shapefile to topojson

I have used mapshaper.org to change a .shp file to topojson. However, when I put the topojson in to microsoft's powerBI, all the soft attribute data from the shapefile for example region name is gone, ...
3
votes
1answer
256 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
202 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
40 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
79 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
453 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 ...
3
votes
2answers
533 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
280 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
711 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
131 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
55 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
2k 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
206 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
534 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
664 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 ...
-1
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
146 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
210 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
270 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",...
11
votes
0answers
345 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
247 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
118 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 ...
6
votes
0answers
843 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
118 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
165 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
273 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
813 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
546 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
73 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 ...
0
votes
1answer
451 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 ...
2
votes
1answer
2k views

leaflet-omnivore style function

Please pardon my ignorance in advance, but is it possible to style a layer(polygon) using the plugin leaflet-omnivore? All of the examples I've encountered are using the MapBox API I have the layer ...