/ msSLDGetGraphicSymbol */ / Create a symbol entry for an inmap pixmap symbol. Returns */ the symbol id. */ /
| 2079 | /* the symbol id. */ |
| 2080 | /************************************************************************/ |
| 2081 | int msSLDGetGraphicSymbol(mapObj *map, char *pszFileName, char* extGraphicName, |
| 2082 | int nGap) |
| 2083 | { |
| 2084 | int nSymbolId = 0; |
| 2085 | symbolObj *psSymbol = NULL; |
| 2086 | |
| 2087 | |
| 2088 | if (map && pszFileName) |
| 2089 | { |
| 2090 | if( (psSymbol = msGrowSymbolSet(&(map->symbolset))) == NULL) |
| 2091 | return 0; /* returns 0 for no symbol */ |
| 2092 | nSymbolId = map->symbolset.numsymbols; |
| 2093 | map->symbolset.numsymbols++; |
| 2094 | initSymbol(psSymbol); |
| 2095 | psSymbol->inmapfile = MS_TRUE; |
| 2096 | psSymbol->type = MS_SYMBOL_PIXMAP; |
| 2097 | psSymbol->name = msStrdup(extGraphicName); |
| 2098 | psSymbol->imagepath = msStrdup(pszFileName); |
| 2099 | psSymbol->full_pixmap_path = msStrdup(pszFileName); |
| 2100 | } |
| 2101 | return nSymbolId; |
| 2102 | } |
| 2103 | |
| 2104 | |
| 2105 | /************************************************************************/ |
nothing calls this directly
no test coverage detected