DBHashVector()

Description

DBHasVector() is used to compute the hash value of a vector layer.

Call Signature

double DBHashVector ( int/string filespec, int segment_num [, string options_list] )

Return Value

double

A double with a value between 0.0 and 100000.0.

Arguments

int/string filespec:

This can either be the handle returned by DBOpen(), or the name of an open file.

int segment_num:

Input vector segment number.

[string options_list]:

If this argument is present, this is string containing one or more of the options VERTICES, ATTRIBUTES, RST, SCHEMA, and PROJ. If missing, the default value used is all of these.

Remarks

The number returned will be equivalent to VECHASH.

Example


 local int file_spec
 local double hash_value

 try
    file_spec = DBOpen( GetPCIHOME()+"/demo/irvine.pix", "r" )
    hash_value = DBHashVector( file_spec, 25, "VERTICES ATTRIBUTES" )
    print hash_value
    call DBClose( file_spec )
 onerror
    print "Error: ", GetLastErrorMessage()
endonerror

See also GDB file functions

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.