Skip to content

opengeoshub/vgridtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

159 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vgridtools

Vgrid DGGS Tools for QGIS

image

Vgrid DGGS Tools for QGIS
  1. Vgridtools installation
  2. DGGS Conversion
  3. DGGS Binning
  4. DGGS Resampling
  5. DGGS Generator
  6. Expressions

Vgridtools installation

Vgrid Plugin requires the vgrid Python package to work properly. This means that before you can use the plugin, you must ensure that the vgrid package is installed in the Python environment that QGIS is using.

How you install vgrid depends on the type of QGIS installation you are using:

OSGeo4W QGIS

Open OSGeo4W Shell and run the following commands before (or after) installing Vgrid Plugin

python -m ensurepip
python -m pip install pip --upgrade
python -m pip install vgrid --upgrade

Standalone QGIS

After installing Vgrid Plugin, a dialog will appear prompting you to install vgrid. Copy the following commands

import pip  
pip.main(['install', 'vgrid','--upgrade'])

When QGIS starts, navigate to Plugins → Python Console, select Show Editor, paste the copied commands, and click Run Script.

Restart QGIS, and you'll see DGGS Vgrid in the Menu bar, Toolbar, and Processing Toolbox.

DGGS Conversion

Cell ID to DGGS

Convert DGGS Cell ID to DGGS.

Vector to DGGS

Convert Vector layers to DGGS.

Uncompact:
Compact:

Raster to DGGS

Convert raster layers in geographic CRS to DGGS.

DGGS Compact

DGGS Expand

DGGS Resampling

DGGS Binning

Binning point layer to DGGS.

DGGS Generator

Expressions

latlon2h3

Convert (lat, long) to H3 ID.

Syntax

  • latlon2h3(lat, long, resolution [0..15]) or latlon2h3($y, $x, resolution) in WGS84 CRS
  • Example usage

  • latlon2h3(10.775275567242561, 106.70679737574993, 13)→ '8d65b56628e46bf'

  • latlon2s2

    Convert (lat, long) to S2 Token.

    Syntax

  • latlon2s2(lat, long, resolution [0-->30]) or latlon2s2($y, $x, resolution) in WGS84 CRS
  • Example usage

  • latlon2s2(10.775275567242561, 106.70679737574993, 21)→ '31752f45cc94'

  • latlon2a5

    Convert (lat, long) to A5 Hex.

    Syntax

  • latlon2a5(lat, long, resolution [0-->29]) or latlon2a5($y, $x, resolution) in WGS84 CRS
  • Example usage

  • latlon2a5(10.775275567242561, 106.70679737574993, 16)→ '7a9408e938000000'

  • latlon2rhealpix

    Convert (lat, long) to rHEALPix ID.

    Syntax

  • latlon2rhealpix(lat, long, resolution [0..15]) or latlon2rhealpix($y, $x, resolution) in WGS84 CRS
  • Example usage

  • latlon2rhealpix(10.775275567242561, 106.70679737574993, 12)→ 'R312603625535'

  • latlon2isea4t

    Convert (lat, long) to OpenEAGGR ISEA4T ID (Windows only).

    Syntax

  • latlon2isea4t(lat, long, resolution [0..39]) or latlon2isea4t($y, $x, resolution) in WGS84 CRS
  • Example usage

  • latlon2isea4t(10.775275567242561, 106.70679737574993, 20)→ '1310231333101123322130'

  • latlon2isea3h

    Convert (lat, long) to OpenEAGGR ISEA3H ID (Windows only).

    Syntax

  • latlon2isea3h(lat, long, resolution [0..40]) or latlon2isea3h($y, $x, resolution) in WGS84 CRS
  • Example usage

  • latlon2isea3h(10.775275567242561, 106.70679737574993, 20)→ '132022636,-1020'

  • latlon2dggal

    Convert (lat, long) to DGGAL ID.

    Syntax

  • latlon2dggal(dggs_type, lat, long, resolution) or latlon2dggal(dggs_type, $y, $x, resolution) in WGS84 CRS
  • Example usage

  • latlon2dggal('isea9r', 10.775275567242561, 106.70679737574993, 7)→ 'H7-629F2'

  • latlon2qtm

    Convert (lat, long) to QTM.

    Syntax

  • latlon2qtm(lat, long, resolution [1..24]) or latlon2qtm($y, $x, resolution) in WGS84 CRS
  • Example usage

  • latlon2qtm(10.775275567242561, 106.70679737574993, 18)→ '420123231312110130'

  • latlon2olc

    Convert (lat, long) to Open Location Code (OLC)/ Google Plus Code.

    Syntax

  • latlon2olc(lat, long, resolution [2,4,6,8,10,11..15]) or latlon2olc($y, $x, resolution) in WGS84 CRS
  • Example usage

  • latlon2olc(10.775275567242561, 106.70679737574993, 11) → '7P28QPG4+4P7'

  • latlon2geohash

    Convert (lat, long) to Geohash ID.

    Syntax

  • latlon2geohash(lat, long, resolution [1..30]) or latlon2geohash($y, $x, resolution) in WGS84 CRS
  • Example usage

  • latlon2geohash(10.775275567242561, 106.70679737574993, 9)→ 'w3gvk1td8'

  • latlon2georef

    Convert (lat, long) to GEOREF ID.

    Syntax

  • latlon2georef(lat, long, resolution [0..10]) or latlon2georef($y, $x, resolution) in WGS84 CRS
  • Example usage

  • latlon2georef(10.775275567242561, 106.70679737574993, 5)→ 'VGBL4240746516'

  • latlon2mgrs

    Convert (lat, long) to MGRS ID.

    Syntax

  • latlon2mgrs(lat, long, resolution [0..5]) or latlon2mgrs($y, $x, resolution) in WGS84 CRS
  • Example usage

  • latlon2mgrs(10.775275567242561, 106.70679737574993, 4)→ '48PXS86629165'

  • latlon2tilecode

    Convert (lat, long) to Tilecode ID.

    Syntax

  • latlon2tilecode(lat, long, resolution [0..29]) or latlon2tilecode($y, $x, resolution) in WGS84 CRS
  • Example usage

  • latlon2tilecode(10.775275567242561, 106.70679737574993, 23)→ 'z23x6680752y3941728'

  • latlon2quadkey

    Convert (lat, long) to Quadkey ID.

    Syntax

  • latlon2quadkey(lat, long, resolution [0..29]) or latlon2quadkey($y, $x, resolution) in WGS84 CRS
  • Example usage

  • latlon2quadkey(10.775275567242561, 106.70679737574993, 23)→ '13223011131020212310000'

  • latlon2maidenhead

    Convert (lat, long) to Maidenhead ID.

    Syntax

  • latlon2maidenhead(lat, long, resolution [1..4]) or latlon2maidenhead($y, $x, resolution) in WGS84 CRS
  • Example usage

  • latlon2maidenhead(10.775275567242561, 106.70679737574993, 4)→ 'OK30is46'

  • latlon2gars

    Convert (lat, long) to GARS Code.

    Syntax

  • latlon2gars(lat, long, resolution [1..4] (30, 15, 5, 1 minutes)) or latlon2gars($y, $x, resolution) in WGS84 CRS
  • Example usage

  • latlon2gars(10.775275567242561, 106.70679737574993, 4)→ '574JK1918'