Giter Club home page Giter Club logo

easyimport's Introduction

EasyImport

Simple geocoding plugin for importing GPS point data

Features

  • Imports .asc or .prn text files to QGIS predefined QGIS layers
  • Supports different import modes, such as full import or network-specific import

EasyImport

Codification

Codification is defined in config.xml

  • pointlayers
    • pointlayer.destinationlayer: Destination layer name in QGIS project
  • columnmappings
    • columnmapping.source: Column name in source data file
    • columnmapping.destination: Column name in the destination layer
  • staticmappings
    • staticmapping.value: Static value to store in the destination column staticmapping.destination

Source file format

The format accepted by EasyImport is simple text file (.asc or .prn) with spaces as separators, which must comply with the following syntax: NNNNNNabc XXXXXXX.XXX YYYYYYY.YYY ZZZ.ZZZ S.SSS CCC

  • NNNNNN: Point number (integer)
  • abc: Network, only points in this network will be imported (string)
  • XXXXXXX.XXX: X coordinate (real)
  • YYYYYYY.YYY: Y coordinate (real)
  • ZZZ.ZZZ: Z coordinate (real)
  • S.SSS: Accuracy (real)
  • CCC: code (string)
  • Everything following text can be imported into the remark field

easyimport's People

Contributors

ponceta avatar rbovard avatar 3nids avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

easyimport's Issues

Impossible de charger l'extension 'easyimport'

https://raw.githubusercontent.com/VilleDePully/EasyImport/master/plugins.xml

Impossible de charger l'extension 'easyimport' 

ModuleNotFoundError: No module named 'easyimport' 
Traceback (most recent call last):
  File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python\qgis\utils.py", line 309, in loadPlugin
    __import__(packageName)
  File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python\qgis\utils.py", line 672, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'easyimport'


Version de Python : 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] 
Version de QGIS : 3.4.3-Madeira Madeira, 2f64a3c4e7 

Chemin Python :
C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python
C:/Users/adminap/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/adminap/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python/plugins
C:\Program Files\QGIS 3.4\bin\python37.zip
C:\PROGRA~1\QGIS3~1.4\apps\Python37\DLLs
C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib
C:\Program Files\QGIS 3.4\bin
C:\PROGRA~1\QGIS3~1.4\apps\Python37
C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages
C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages\win32
C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages\win32\lib
C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages\Pythonwin
C:/Users/adminap/AppData/Roaming/QGIS/QGIS3\profiles\default/python

Update Readme

Update Readme according to QGIS 3 new requirements and stuff.

Portage vers QGIS 3

Portage QGIS 3

Problèmes rencontrés

  • Insertion d'entités
    QgsVectorLayerUtils.createFeature(destinationlayer)
    Semble ne pas écrire de features dans la couche de destination
    -> En effet cette méthode sert à créer une

  • Metadata.txt et Casse méthode, module, etc...

Documenter le format attendu par EasyImport

Le format accepté par EasyImport est du texte simple au formatage particulier

Oui le formatage des lignes doit respecter la syntaxe suivante

NNNNNNass XXXXXXX.XXX YYYYYYY.YYY ZZZ.ZZZ S.SSS CCC

Où :

  • NNNNNN est le numéro de point les deux premiers chiffres sont l’année.
  • ass le réseau en question à sélectionner également dans easyimport (seuls les points de ce réseau seront importés)
  • XXXXXXX.XXX la coordonnée X
  • YYYYYYY.YYY la coordonnée Y
  • ZZZ.ZZZ la coordonnée Z
  • S.SSS le sigma
  • CCC le code
  • Tout ce qui suit le code peut être importé dans le champs remarque pour autant que ce dernier soit configuré

Document how to install and upgrade EasyImport

Installation

ADD https://raw.githubusercontent.com/VilleDePully/EasyImport/master/plugins.xml

To your plugin repository list in QGIS

image

Then install or update through the dedicated menu in the QGIS plugin manager :

image

Flow chain revision

The actual flow is :

  • Converting ascii to shapefiles
  • Importing shapefiles to coresponding files
  • Close shapefiles
  • Delete shapefiles (actually deactivated)

Importing gps data directly from shapefiles delete the original shapefiles

Importing gps data from mixed shapefiles and ascii files is not possible

Could be improved by defining a better workflow

Import impossible vers QGEP

La manière d'importer les données convient pour l'insertion dans QWAT mais est incompatible avec celle de QGEP pour deux raisons.

La première est la génération d'identifiant unique qui requiert l'appel à une méthode côté base de donnée qui apparemment n'est pas reprise lorsque l'on insert les données de cette manière. (oid generation)

La deuxième est que les géométries actuellement gérées dans QGEP sont des géométries 2D et que EasyImport propose des données points 3D.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.