How to create the topojson map:
curl -o estados.zip http://mapserver.inegi.org.mx/MGN/mge2010v5_0.zip
curl -o municipios.zip http://mapserver.inegi.org.mx/MGN/mgm2010v5_0.zip
unzip estados.zip
unzip municipios.zip
ogr2ogr states.shp Entidades_2010_5.shp -t_srs "+proj=longlat +ellps=WGS84 +no_defs +towgs84=0,0,0"
ogr2ogr municipalities.shp Municipios_2010_5.shp -t_srs "+proj=longlat +ellps=WGS84 +no_defs +towgs84=0,0,0"
topojson -o mx_tj.json -s 1e-7 -q 1e5 states.shp municipalities.shp -p state_code=+CVE_ENT,state_name=NOM_ENT,mun_code=+CVE_MUN,mun_name=NOM_MUN
@diegovalle Thanks for your code, was help fully. I try to imitate your procedure, but i currently cat not simulate it. Some changes to create the topojoson map... I used ubuntu 16.04 and i need to create a symlink for nodejs to node because topojson don't work if not and i change the name of the topojson executable to geo2topo. Also i can not convert a .shp to topojson directly using geo2topo, so i need to generate a GeoJSON and then convert it. The problem is the big size of the resulting file, was 11.3mb.
Have you an idea of actually how we can create better resulting files as your own mx_tj.json?
This was my procedure, from the beginning:
install packages and add a symlink
download and unzip
My procedure to generate the topojson