/usr/include/gmt/gmt_dcw.h is in libgmt-dev 5.2.1+dfsg-3build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | /*--------------------------------------------------------------------
* $Id: gmt_dcw.h 15178 2015-11-06 10:45:03Z fwobbe $
*
* Copyright (c) 1991-2015 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis and F. Wobbe
* See LICENSE.TXT file for copying and redistribution conditions.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; version 3 or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* Contact info: gmt.soest.hawaii.edu
*--------------------------------------------------------------------*/
/*
* gmt_dwc.h contains definitions for using the DCW in GMT.
* DCW - The Digital Chart of the World
*
* Author: Paul Wessel
* Date: 10-MAR-2013
* Version: 5 API
*/
/*!
* \file gmt_dcw.h
* \brief Definitions for using the DCW
*/
#ifndef _GMT_DCW_H
#define _GMT_DCW_H
#define DCW_OPT "<code1,code2,...>[+l|L][+g<fill>][+p<pen>][+r|R[<incs>]]"
enum GMT_DCW_modes {
GMT_DCW_REGION = 1,
GMT_DCW_PLOT = 2,
GMT_DCW_DUMP = 4,
GMT_DCW_EXTRACT = 8
};
struct GMT_DCW_ITEM { /* One set of codes with their color/fill */
char *codes; /* Comma separated list of codes with modifiers */
unsigned int mode; /* 4 = outline, 8 = fill */
struct GMT_PEN pen; /* Pen for outline [no outline] */
struct GMT_FILL fill; /* Fill for polygons */
};
struct GMT_DCW_SELECT { /* -F<DWC-options> */
bool region; /* Determine region from polygons instead of -R */
bool adjust; /* Round/adjust the region from polygons using the incs */
bool extend; /* Extend region rather than quantize it */
double inc[4]; /* Increments for rounded region */
unsigned int mode; /* 1 get countries, 2 get countries and states */
unsigned int n_items; /* Number of items (times) -F was given */
struct GMT_DCW_ITEM **item; /* Pointer to array of n_items items */
};
EXTERN_MSC unsigned int GMT_DCW_list (struct GMT_CTRL *GMT, unsigned list_mode);
EXTERN_MSC unsigned int GMT_DCW_parse (struct GMT_CTRL *GMT, char option, char *args, struct GMT_DCW_SELECT *F);
EXTERN_MSC void GMT_DCW_option (struct GMTAPI_CTRL *API, char option, unsigned int plot);
EXTERN_MSC struct GMT_DATASET * GMT_DCW_operation (struct GMT_CTRL *GMT, struct GMT_DCW_SELECT *F, double wesn[], unsigned int mode, struct GMT_OPTION *options);
EXTERN_MSC void GMT_DCW_free (struct GMT_CTRL *GMT, struct GMT_DCW_SELECT *F);
#endif /* _GMT_DCW_H */
|