Package: catastro-to-mongodb
Catastro to MongodbTraducción :es:Migration Script from Catastro files ( Catalog CP Backup - dBASE IV ) to MongodbInstallation$pipinstallcatastro-to-mongodbUsageUsage: catastro_to_mongodb.py [OPTIONS] CAT_FILE

  Import a CAT FILE to MongoDB

  Migration Script from Catastro files ( Catalog CP Backup - dBASE IV ) to Mongodb
  More info: https://github.com/dcervantes/catastro-to-mongodb

Options:
  -h, --help           Show this message and exit.
  -v, --version        Show the version and exit.
  -d, --database name  Database name.  [default: catastro]
  -H, --host host      Host name.  [default: 0.0.0.0]
  -p, --port port      Port number.  [default: 27017]
  -t, --timeout sec    Connection timeout (seconds).  [default: 5]ExamplesChange database nameImportcatastro.CATtotestdatabase:$catastro-to-mongodb--databasetest./catastro.CAT$catastro-to-mongodb-dtest./catastro.CATChange host and portImportcatastro.CATtotestdatabase withhost:test.xyz:16014andport:16014:$catastro-to-mongodb--databasetest--hosttest.xyz--port16014./catastro.CAT$catastro-to-mongodb-dtest-Htest.xyz-p16014./catastro.CATSourcesStructure definition of CAT file:http://www.catastro.minhap.es/documentos/formatos_intercambio/catastro_fin_cat_2006.pdfHow to download CAT file:http://www.catastro.minhap.es/ayuda/manual_descargas_cat.pdfUnicodeDecodeError decode byte 0xd1This error is caused by try to read the Ñ character encoded in ISO-8859-1 format instead of UTF-8 format.UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd1Runingiconvwe can fix the CAT file encoding.$iconv-fISO-8859-1-tUTF-8./catastro.CAT>./catastro_fixed.CATCatastro a MongodbTranslation :gb:Script de migración de datos del Catastro (en formato Catalog CP Backup - dBASE IV) a MongodbInstalación$pipinstallcatastro-to-mongodbUsoUsage: catastro_to_mongodb.py [OPTIONS] CAT_FILE

  Import a CAT FILE to MongoDB

  Migration Script from Catastro files ( Catalog CP Backup - dBASE IV ) to Mongodb
  More info: https://github.com/dcervantes/catastro-to-mongodb

Options:
  -h, --help           Show this message and exit.
  -v, --version        Show the version and exit.
  -d, --database name  Database name.  [default: catastro]
  -H, --host host      Host name.  [default: 0.0.0.0]
  -p, --port port      Port number.  [default: 27017]
  -t, --timeout sec    Connection timeout (seconds).  [default: 5]EjemplosCambiar nombre de la base de datosImportarcatastro.CATa la base de datostest:$catastro-to-mongodb--databasetest./catastro.CAT$catastro-to-mongodb-dtest./catastro.CATCambiar host y puertoImportarcatastro.CATa la base de datostestconhost:test.xyzypuerto:16014:$catastro-to-mongodb--databasetest--hosttest.xyz--port16014./catastro.CAT$catastro-to-mongodb-dtest-Htest.xyz-p16014./catastro.CATFuentesDefinición de estructura del fichero CAT:http://www.catastro.minhap.es/documentos/formatos_intercambio/catastro_fin_cat_2006.pdfComo descargar el fichero CAT:http://www.catastro.minhap.es/ayuda/manual_descargas_cat.pdfUnicodeDecodeError decode byte 0xd1Este error lo produce al intentar leer el caracter Ñ en formato ISO-8859-1 en vez de en formato UTF-8.UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd1Ejecutandoiconvpodemos arreglar el fichero CAT.$iconv-fISO-8859-1-tUTF-8./catastro.CAT>./catastro_fixed.CATLicense (Licencia)GPL-3.0 LicenseDavid Cervantes Caballero