GsPropGetStr - geostan_1 - 2024.01

GeoStan Geocoding Suite Reference for Windows, Linux, and z/OS

Product type
Software
Portfolio
Locate
Product family
GeoStan Geocoding Suite
Product
GeoStan Geocoding Suite > GeoStan
Version
2024.01
Language
English
Product name
GeoStan
Title
GeoStan Geocoding Suite Reference for Windows, Linux, and z/OS
Copyright
2024
First publish date
1994
Last updated
2024-07-29
Published on
2024-07-29T23:01:18.924000

Retrieves a string property.

Syntax

GsFunStat GsPropGetStr(Proplist* pProps, PropEnum propID, pstr pBuffer, intsu bufLen);

Arguments

pProps    Pointer to property list structure. Input.

propID    The property ID. Input.

pBuffer    String buffer. Output.

bufLen    Length of a string buffer. Input.

Return Values

GS_ERROR

GS_SUCCESS

Prerequisites

GsPropListCreate()

Example

GsFunStat retval;
PropList findProps;
char buffer[256];
const int bufLen = 256;
retval = GsPropListCreate(&findProps, GS_FIND_PROP_LIST_TYPE);
retval = GsPropSetStr(&findProps, GS_FIND_CLIENT_CRS, "NAD83");
retval = GsPropGetStr(&findProps, GS_FIND_CLIENT_CRS, buffer, bufLen);