<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#dcdcdc>
<DIV><FONT size=2><FONT size=3>Hello,<BR><BR>I use GDAL and OGR in my 
application. It's a really great library.<BR>Now I am using the feature style 
part and I have some questions and<BR>comments.<BR><BR>* What is the 'ogr-pen-8' 
pre-prefined ogr style ? I don't understand the<BR>sentence 
"alternate-line&nbsp;(sets every other pixel)".<BR><BR>* When I load a mapinfo 
file (tab or mif) the background color is always<BR>defined for each polygon 
even if this color was defined as 'None' in mapinfo</FONT></FONT></DIV>
<DIV><FONT size=2><FONT size=3>&nbsp;(for semi transparent filling).<BR>I think 
that the function "ITABFeatureBrush::GetBrushStyleString()" should<BR>be 
modified as follow :<BR><BR>const char 
*ITABFeatureBrush::GetBrushStyleString()<BR>{<BR>&nbsp;&nbsp;&nbsp; const char 
*pszStyle = NULL;<BR>&nbsp;&nbsp;&nbsp; int&nbsp;&nbsp;&nbsp; nOGRStyle&nbsp; = 
0;<BR>&nbsp;&nbsp;&nbsp; char szPattern[20];<BR>&nbsp;&nbsp;&nbsp; szPattern[0] 
= '\0';<BR>&nbsp;&nbsp;&nbsp; if (m_sBrushDef.nFillPattern == 
1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
nOGRStyle = 1;<BR>&nbsp;&nbsp;&nbsp; else if (m_sBrushDef.nFillPattern == 
3)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nOGRStyle = 2;<BR>&nbsp;&nbsp;&nbsp; else if 
(m_sBrushDef.nFillPattern == 4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nOGRStyle = 
3;<BR>&nbsp;&nbsp;&nbsp; else if (m_sBrushDef.nFillPattern == 
5)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nOGRStyle = 5;<BR>&nbsp;&nbsp;&nbsp; else if 
(m_sBrushDef.nFillPattern == 6)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nOGRStyle = 
4;<BR>&nbsp;&nbsp;&nbsp; else if (m_sBrushDef.nFillPattern == 
7)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nOGRStyle = 6;<BR>&nbsp;&nbsp;&nbsp; else if 
(m_sBrushDef.nFillPattern == 8)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nOGRStyle = 
7;<BR><BR>&nbsp;&nbsp;&nbsp; if ( m_sBrushDef.bTransparentFill ) // don't 
specify the background color<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
pszStyle=CPLSPrintf("BRUSH(fc:#%6.6x,id:\"mapinfo-brush-%d.ogr-brush-%d\")",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
m_sBrushDef.rgbFGColor,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
m_sBrushDef.nFillPattern,nOGRStyle);<BR>&nbsp;&nbsp;&nbsp; 
else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
pszStyle=CPLSPrintf("BRUSH(fc:#%6.6x,bc:#%6.6x,id:\"mapinfo-brush-%d.ogr-brush-%d\")",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
m_sBrushDef.rgbFGColor,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
m_sBrushDef.rgbBGColor,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
m_sBrushDef.nFillPattern,nOGRStyle);<BR>&nbsp;&nbsp;&nbsp;&nbsp; return 
pszStyle;<BR>}<BR><BR>* The function OGRStyleTool::GetRGBFromString defaults the 
alpha value to<BR>zero and there is no way when using this function to know if 
the returned value is the<BR>default value or the value specified in the color 
string. The default value should </FONT></FONT></DIV>
<DIV><FONT size=2><FONT size=3>normally be set to 0xFF as specified in the 
doc.<BR><BR>Any comments 
appreciated,<BR><BR>Frédéric.<BR><BR>_________________________________________________________________<BR>Frédéric 
Trastour - SpaceEyes</FONT><BR><BR></DIV></FONT></BODY></HTML>