TopoJSON is an extension of GeoJSON that encodes topology.

learn more… | top users | synonyms

0
votes
0answers
21 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
13 views

Reducing scope of shape file [closed]

I'm very new to geojson and topojson. I have an Australian shape file but only want to have STATE_CODE level of detail - not any of the other attributes, so the render should follow the perimeter of ...
0
votes
0answers
38 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
56 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 ...
0
votes
0answers
37 views

Losing properties in QGIS after topojson conversion

I converted the naturalearth 10m admin0 - countries map to json with ogr2ogr and then to topojson with the following command: topojson test.json -o topotest.json -p --no-stitch-poles When I load ...
2
votes
0answers
52 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
48 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",...
5
votes
0answers
119 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
56 views

Merge adjacent polygons

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
0answers
77 views

Does Leaflet handle TopoJson in OSGB EPSG:27700 projection?

I already have a Leaflet map showing custom base map tiles in British OSGB projection, EPSG:27700 (using the Proj4Leaflet plugin). I would like to overlay some nationwide admin boundary data in the ...
2
votes
0answers
48 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 ...
0
votes
0answers
138 views

Presenting specified country only based on latitude and longitude data passing by d3 user?

I am using d3/topojson and I'd like to color (or present) only two countries where two users are located.(The location of a user is represented by latitude and longitude.) I am modifying code from ...
0
votes
0answers
34 views

Accessing Topojson features

I am having trouble with accessing the "density" property of my TopoJSON file. Basically I want to change the density property or add another property named "metric" in my properties and make the ...
2
votes
0answers
246 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 '...
1
vote
1answer
52 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
62 views

How to configure Apache for topojson gzip files

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
155 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
422 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 ...
0
votes
1answer
199 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
60 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
3k 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
116 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
963 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 ...
4
votes
1answer
820 views

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

I have searched for days and I just can find 5 digit zip codes shapes. Thanks a lot, I'm really new to geo data stuff.
3
votes
1answer
155 views

Troubleshooting with Tiger for d3 — is this the wrong projection? Why's it look like this?

UPDATE: Solved, sort of … I downloaded the file afresh and tried feeding it through ogr2ogr and topojson again … and wouldn't you know … after a while it worked. I think I was possibly not setting an ...
0
votes
1answer
110 views

How to generate tiled geo/topo json?

Are there any commandline tools can take a Shape File or a geoJson file and generate a tiled version of them?
0
votes
0answers
77 views

Topojson Rendering Problem

This block has a topojson file that's being rendered such that each polygon fills the world: http://bl.ocks.org/emeeks/6bc43691f631a4097d05 It includes the geojson file that it was derived from, ...
2
votes
0answers
128 views

Stray horizontal lines after converting from GeoJSON to topojson

After converting a GeoJSON file to topojson, and loading the topojson into Leaflet, stray lines appear in the resulting map. Like this: What is causing this? If I view the GeoJSON, these stray ...
1
vote
1answer
151 views

Associating location data from PostGIS for a Choropleth map?

I'm trying to build my first choropleth map from data that we have stored in our PostGIS enabled Postgres database. So far I've been able to build a map on Mapbox using a topojson set of UK postal ...
1
vote
1answer
330 views

How convert a genuine UK shapefile(other than the one from natural earth) to d3/topojson?

I am following Mike's page (http://bost.ocks.org/mike/map/) to make UK's map. I've converted Mr. Crone's UK postcode shapefile into topojson but failed to display it correctly. http://www.sharegeo....
0
votes
1answer
198 views

Creating TopoJson from shapefile with the Shape Escape (shpescape)

Does shpescape really work for creating TopoJson from shapefiles? I always get errors if uploading there zipped shapefiles. The usual error message is: OSError at /mix/uploads/...
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 (...
2
votes
1answer
557 views

Issue with using TopoJSON server API to return TopoJSON object with properties

I am creating a node application and using TopoJSON server API reference (see the link below) to convert a GeoJSON object to a TopoJSON object. TopoJSON server API reference I used these three lines ...
4
votes
2answers
2k views

How to load big geo-data file into web application

I am building a web app where I show details in map. I load data using geojson file (190 mb). I was looking in different possibilities to show the data, here there are: Leaflet GeoJSon: it should ...
3
votes
1answer
216 views

Simplifying TopoJSON causes leak of Natural Earth in d3

I'm working with topoJSON and D3 to display Natural Earth data on a globe. Obviously, we need to simplify our geometries while still keeping borders consistent. We've created a script as based on ...
4
votes
2answers
2k 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 ...
1
vote
1answer
396 views

How to convert cartesian to lat-lon with Topojson?

I've been following the "Let's Make a Map" tutorial by mbostock about converting files for use for d3.js. I have been able to get things working with files from Natural Earth, but when trying to ...
2
votes
0answers
242 views

Filtering a Topojson on server-side. Which part of topology I need?

I have a big Topojson which I want to avoid loading it at page load. Instead I would like to parse on server-side at user request, sending back chunks of this original Topojson to be ploted. So I ...
3
votes
1answer
2k views

D3 adding topojson - no data visible

Yesterday I asked what would be the best method of creating an overlay in a web map that would allow for some interactivity. Create interactive map with no server Thanks to a variety of people who ...
3
votes
3answers
640 views

Batch conversion of Shapefiles to Topojson

Can i convert more than one shapefile .shp to topojson. Can this be performed using batch processing? I can convert shape file to topojson one by one but i have about 6000 files and i don't want to ...
5
votes
2answers
2k views

OGR merge shapefiles of different geom type into a single GeoJSON feature collection

I'd like to merge shapefiles of different geometry types into a single geojson feature collection, but OGR says it doesn't support update of GeoJSON files: $ ogr2ogr -f GeoJSON -t_srs crs:84 -lco ...
1
vote
1answer
1k views

Using MapBox topojson editor/viewer?

I'm converting a map from geojson to topojson, and I'd like to validate that the conversion is ok. Unfortunately QGIS doesn't seem to support topojson yet. I've found this excellent MapBox ...
2
votes
1answer
281 views

simplilfy geojson file [duplicate]

I have a geojson file, but it's way too heavy for the app I need to develop I'd like to know what alternative do I have to make it lighter. I was thinking about simplifying it's shapes, and also ...
4
votes
2answers
2k 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: [-...
1
vote
2answers
508 views

How to convert Shapefile to TopoJSON with grouping neighbor shapes by some criteria

I have a shapefile with countries, which I convert to GeoJSON using ogr2ogr and then converting that json to another TopoJSON, using topojson command-line tool. Everything works like charm, but now I ...
12
votes
3answers
7k views

D3 for maps---at what stage to bring in data to the geo?

I'd like to map a world choropleth for display with D3, a la: http://bl.ocks.org/mbostock/4206573 http://bl.ocks.org/jasondavies/4188334 I have a dataset I'd like to display that's keyed to ISO-...
14
votes
1answer
2k views

What is topojson and how is it different than geojson?

This is a conceptual question. What are the differences between these? and what are the pros and cons of these formats?
4
votes
2answers
1k views

TopoJSON: how to calculate scale and translate?

Context: I'm using the topojson file format along with d3. Since I could not find a library in Python that handles this format, I'm writing one. I've got the topojson to other formats working. ...
0
votes
1answer
493 views

geojson -> topojson : no output

Trying to convert my geoJSON file into topoJSON so I downloaded topojson from npm and followed the instructions on gis.stackexchange Convert GeoJSON to TopoJSON basically the same as the topoJSON ...
3
votes
1answer
3k 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....