Development of scripts in python and MAPAPI

Print Previous page Top page Next page

When writing scripts, several thousand functions of the GIS core (MAPAPI) are available. The function prototypes are declared as imported python scripts from the c:\Users\Public\Documents\Panorama\py_mapapi14\ folder.

The order of using MAPAPI functions described in the documentation will also be valid for python scripts.

For proper processing of script strings containing national characters (Russian, Chinese, Spanish, and so on), the scripts must be encoded in UTF-8.

 

The composition of the main service scripts in the py_mapapi14 folder:

mapsyst.py - contains functions for importing MAPAPI functions from dynamic libraries (LoadLibrary, GetProcAddress) and a WTEXT class for sending and receiving strings in UTF-16 encoding.

maptype.py - contains declarations of base identifiers and structures of MAPAPI.

mapgdi.py - contains declarations of identifiers and structures of graphical primitives in MAPAPI.

mapcreat.py - contains declarations of identifiers and structures of graphical primitives in MAPAPI.

mapapi.py - contains declarations of functions for creating, editing and reading coordinates and attributes of vector maps.

sitapi.py - contains declarations of functions for managing a list of vector maps and their properties.

seekapi.py - contains declarations of functions for searching vector map objects by various conditions and performing spatial queries.

rscapi.py - contains declarations of functions for reading parameters of layers, objects, attributes, conventional symbols from the RSC classifier.

rstapi.py - contains declarations of functions for managing the list of remote sensing raster data and their properties.

mtrapi.py - contains declarations of functions for managing the list of matrix data and their properties.

vecexapi.py - contains declarations of import and export functions for vector maps of various formats.

mappicex.py -contains declarations of import and export functions for raster data of various formats.

logapi.py - contains declarations of transaction management functions when editing vector maps.

graphapi.py - contains declarations of functions for computing on a road graph.

mathapi.py  - contains declarations of functions for special calculations on vector maps.

rsctools.py - contains description of functions for calling dialogs for viewing the properties of vector map objects.

gisdlgs.py - contains description of functions for calling various auxiliary dialogs.

paspapi.py - contains description of functions for calling dialogs for creating vector maps and viewing the parameters of coordinate systems and map metadata.

doforeach.py -  contains a description of the base class for processing selected objects.