MCPcopy Index your code
hub / github.com/MapServer/MapServer / msLoadMapContextContactInfo

Function msLoadMapContextContactInfo

mapcontext.c:343–382  ·  view source on GitHub ↗

msLoadMapContextContactInfo ** ** Put the Contact informations from a XML node and put them in a metadata. ** */

Source from the content-addressed store, hash-verified

341**
342*/
343int msLoadMapContextContactInfo( CPLXMLNode *psRoot, hashTableObj *metadata )
344{
345 if(psRoot == NULL || metadata == NULL)
346 return MS_FAILURE;
347
348 /* Contact Person primary */
349 msGetMapContextXMLHashValue(psRoot,
350 "ContactPersonPrimary.ContactPerson",
351 metadata, "wms_contactperson");
352 msGetMapContextXMLHashValue(psRoot,
353 "ContactPersonPrimary.ContactOrganization",
354 metadata, "wms_contactorganization");
355 /* Contact Position */
356 msGetMapContextXMLHashValue(psRoot,
357 "ContactPosition",
358 metadata, "wms_contactposition");
359 /* Contact Address */
360 msGetMapContextXMLHashValue(psRoot, "ContactAddress.AddressType",
361 metadata, "wms_addresstype");
362 msGetMapContextXMLHashValue(psRoot, "ContactAddress.Address",
363 metadata, "wms_address");
364 msGetMapContextXMLHashValue(psRoot, "ContactAddress.City",
365 metadata, "wms_city");
366 msGetMapContextXMLHashValue(psRoot, "ContactAddress.StateOrProvince",
367 metadata, "wms_stateorprovince");
368 msGetMapContextXMLHashValue(psRoot, "ContactAddress.PostCode",
369 metadata, "wms_postcode");
370 msGetMapContextXMLHashValue(psRoot, "ContactAddress.Country",
371 metadata, "wms_country");
372
373 /* Others */
374 msGetMapContextXMLHashValue(psRoot, "ContactVoiceTelephone",
375 metadata, "wms_contactvoicetelephone");
376 msGetMapContextXMLHashValue(psRoot, "ContactFacsimileTelephone",
377 metadata, "wms_contactfacsimiletelephone");
378 msGetMapContextXMLHashValue(psRoot, "ContactElectronicMailAddress",
379 metadata, "wms_contactelectronicmailaddress");
380
381 return MS_SUCCESS;
382}
383
384/*
385** msLoadMapContextLayerFormat

Callers 1

msLoadMapContextGeneralFunction · 0.85

Calls 1

Tested by

no test coverage detected