new_contents: import json
  import sys
  import logging
  
  from esridump.dumper import EsriDumper
  
  logging.basicConfig(level=logging.DEBUG)
  
  outfile_name = sys.argv[1] if len(sys.argv) > 1 else 'bogota.geojson'
  
  d = EsriDumper('http://serviciosgis.catastrobogota.gov.co/arcgis/rest/services/Mapa_Referencia/Mapa_Referencia/MapServer/33')
  
  outfile = open(outfile_name, 'w')
  
  outfile.write('{"type":"FeatureCollection","features":[\n')
  
  features = iter(d)
  
  try:
      feature = next(features)
  
      while True:
          props = feature['properties']
          interior = props['PDoCInteri']
          if interior and interior.strip():
              street = props['PDoTexto']
              props['PDoCInteri'] = street
              props['PDoTexto'] = interior
          outfile.write(json.dumps(feature))
          feature = next(features)
          outfile.write(',\n')
  except StopIteration:
      outfile.write('\n')
  
  args.outfile.write(']}')
  
  
subject: add script for correcting Bogotá data (when PDoCInteri is not null, it's the house number and PDoTexto is the unit, otherwise PDoTexto is the house number)