LOADING DATA

Initial Data

Load basic data :

make load_data
note:This command will load default users, groups, default values for lists... in French and English. So you need to enable EN and FR at least in etc/settings.ini

If you do not load data, you’ll have to at least create a super user :

bin/django createsuperuser --username=admin --email=admin@corp.com

or change its password :

bin/django changepassword --username admin <password>

Prerequisites for your data

Layers

  • WMS (scan + ortho)
  • Projection
  • Bounding box in native projection

Core

  • Only LineString geometries
  • Simple geometries
  • Not overlapping

If possible :

  • Connex graph
  • Name column
  • Data source

Formats: Shapefile or pure SQL dump SQL (CREATE TABLE + INSERT)

Land

  • Cities polygons (Shapefile or SQL, simple and valid Multi-Polygons)
  • Districts (Shapefile ou SQL, simple and valid Multi-Polygons)
  • Restricted Areas (Shapefile ou SQL, simple and valid Multi-Polygons)

Extras

  • Languages list
  • Structures list (and default one)

Load MNT raster

In QGIS, you can visualize your DEM, or merge several tiles together (in Raster > Misc > Merge).

Generate a GeoTIFF, and upload both files (.tif + .tfw) on the server. And use the Geotrek command to load it into PostGIS :

bin/django loaddem <PATH>/dem.tif
note:This command makes use of GDAL and raster2pgsql internally. It therefore supports all GDAL raster input formats. You can list these formats with the command raster2pgsql -G.