Ticket #1670 (new defect)
SYMBOL is not written to the Map File
| Reported by: | condit@… | Owned by: | sdlime |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | MapServer C Library | Version: | 4.8 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I'm using C# MapScript on Windows Server 2003. I can add a symbol to the map
object using the following code:
private void AddSymbols()
{
symbolObj circle = new symbolObj("circle", null);
circle.type = (int)MS_SYMBOL_TYPE.MS_SYMBOL_ELLIPSE;
circle.filled = mapscript.MS_TRUE;
lineObj line = new lineObj();
line.add(new pointObj(1, 1, 0, 0));
int test = circle.setPoints(line);
circle.sizex = 0;
circle.sizey = 0;
map.symbolset.appendSymbol(circle);
}
However, when I call
map.save("targetfile.map");
no SYMBOL objects are written to the mapfile.
I certainly don't know the code but it looks like the inmap field never gets set
true for a symbol.
Please let me know if more information is needed.
Change History
Note: See
TracTickets for help on using
tickets.
