Graphics Reference
In-Depth Information
Fig. 4. The structure of MGIS
The main function of the intelligent plotting system includes [9]:
1 void CommandGet(char* m_commandtext )
The function is used to to acquire the text information from the Viavoice.
2 void TextCope(char* m_getcommandtext )
The function is used to analyse the text, and call different functions according to
the text content in order to realize the automatic implementation of the corresponding
operation.
3 Plotting, delete function introduction
Char *MgsDrawDot (int libID, int code, FPOINT PT);
// We can use the function to plot the military symbol on the specified coordi-
nates(only one specified location). The combination code libID and code uniquely
identify the military symbol, pt is the latitude and longitude, the return of the function
is only ID of military symbol.
Char *MgsDrawLine (int code, FPOINT *pt, int node-
Count);
// We can use the function to plot the military symbol on the specified coordinates
(two or more locations). Code is military symbol code, it is used to uniquely deter-
mine the military symbol, pt is the latitude and longitude array, nodeCount is the
point number, the return of the function is only ID for military symbol.
int MgsDelObject (char* JbID);
// The function is used to delete the military symbol from the map which has the
specified ID. JbID is the only ID of the military symbol.
If we extract the unit, coordinate and the military symbol from text information,
then we can achieve automatic plotting using the functions above.
6.2
Implementation Effect
We use the military geographic information system and Viavoice to realize the intel-
ligent plotting system, the effect is shown below.
Search WWH ::




Custom Search