DBgdvModifyLayer

Top  Previous  Next

Data of a level of the plan management change.

Every plan of the plan management is assigned to a level and absolutely plans may exist whose Layer are not described yet. These levels, on the one hand, make available data which own global validity for all plans. This is, e.g., the graduation. On the other hand data are provided as default values of the plan production. This is, e.g., the plan type. The latter are regulated for every plan individually, however, are initialized with the value from the level management. In detail the following values can be given:

Graduation is the text graduation and symbolic graduation. He must be same for all plans of a level and gives, how big texts and symbols are spent. The dimensions information for texts and symbols is held in 1/100 mm and is right for this graduation. With another issue graduation it is converted accordingly.

Resolution This value gives the exactness within the data bank. All data in the data bank are rounded on multiples of the resolution. The value may not be given too small, because the data are stored inside in a 32-bit number. Accordingly the value area which is loaded in the data bank at the same time may not cross 232. The resolution is given in metre. A resolution of 0.01, so 1 cm, with a plan size of 1000-m width and 4 plans loaded side by side proves 1/0.01 * in 1000 * 4 = 400,000 as a value area.

Plan type The plan type gives above all the aim list in which the plans are stored. If one of 0 different values is put down here, the procedures for putting in and store of plans use this as a list, with a plan type 0 it is asked with the user. The plan type 13 leads to the fact that the plan is searched in the list 150\013.

Version This information is not evaluated.

Kind can contain the value 'R' if the plan with relative co-ordinates is stored, or contain the value 'A' if the data contain absolute co-ordinates.

Put This information it is not evaluated. She may contain the value '7 or '9' and gives in the original whether the co-ordinates are stored inside as a floating decimal point value or as a fixed point value.

Spare plan gives another level whose exact function to me is not known.

Privilege the value 'R' can stand Here if the plans may not be protected, or 'W' if a writing authorisation exists.

Parametre

root (PROOT) [IN]

The trading of the data bank in which the data of a level should be changed. The plan management open with DBgdvOpen is worked on. If no plan management is opened, an error message is generated.

layer (int) [IN]

The level given here of the plan management is demanded. This level must already have been put on, but an error message is generated. It is not sufficient if plans with this level exist.

flags (int) [IN]

Here it is fixed which data from the in the following described structure settings are valid and are taken over in the plan management. In these variables become the constants GDV_LAYER_MODIFY _??? geodert given which should be changed.

settings (GDV_LAYER_SETTINGS *) [IN]

This parametre points at a Record which contains the data to be changed. He has the same format like the record satisfactory by DBgdvReturnLayerSettings. In this record the fields described on top must be filled And it is enough to fill only the fields which should be also taken over. If in flags the worth GDV_LAYER_MODIFY_TYP | GDV_LAYER_MODIFY_ART are given, must be filled the fields typ and art.

grade (int) [IN]

aloofly, must be 1. If further information is introduced, these become grades distinguished.

gdvName (const char *) [IN]

The name of the plan management. If is gdvName = ZERO, the open plan management is used.

Result

(T_ERROR) [OUT]

Here ERROR_OK is returned if the procedure could be explained successfully, otherwise one of the error messages from error.h is generated.

Declaration

#include "database.h"

 

T_ERROR EXPENTRY DBgdvModifyLayer (

PROOT root,

int layer,

int flags,

GDV_LAYER_SETTINGS * settings,

int grades,

const char * gdvName

);

Constants

GDV_LAYER_MODIFY_MASSSTAB 1

GDV_LAYER_MODIFY_AUFLOESUNG 2

GDV_LAYER_MODIFY_TYP 4

GDV_LAYER_MODIFY_VERSION 8

GDV_LAYER_MODIFY_ART 16

GDV_LAYER_MODIFY_STELLEN 32

GDV_LAYER_MODIFY_ERSATZPLAN 64

GDV_LAYER_MODIFY_PRIVILEG 128

GDV_LAYER_MODIFY_ALL 255