<!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 (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> (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> const char
*pszStyle = NULL;<BR> int nOGRStyle =
0;<BR> char szPattern[20];<BR> szPattern[0]
= '\0';<BR> if (m_sBrushDef.nFillPattern ==
1)
nOGRStyle = 1;<BR> else if (m_sBrushDef.nFillPattern ==
3) nOGRStyle = 2;<BR> else if
(m_sBrushDef.nFillPattern == 4) nOGRStyle =
3;<BR> else if (m_sBrushDef.nFillPattern ==
5) nOGRStyle = 5;<BR> else if
(m_sBrushDef.nFillPattern == 6) nOGRStyle =
4;<BR> else if (m_sBrushDef.nFillPattern ==
7) nOGRStyle = 6;<BR> else if
(m_sBrushDef.nFillPattern == 8) nOGRStyle =
7;<BR><BR> if ( m_sBrushDef.bTransparentFill ) // don't
specify the background color<BR>
pszStyle=CPLSPrintf("BRUSH(fc:#%6.6x,id:\"mapinfo-brush-%d.ogr-brush-%d\")",<BR>
m_sBrushDef.rgbFGColor,<BR>
m_sBrushDef.nFillPattern,nOGRStyle);<BR>
else<BR>
pszStyle=CPLSPrintf("BRUSH(fc:#%6.6x,bc:#%6.6x,id:\"mapinfo-brush-%d.ogr-brush-%d\")",<BR>
m_sBrushDef.rgbFGColor,<BR>
m_sBrushDef.rgbBGColor,<BR>
m_sBrushDef.nFillPattern,nOGRStyle);<BR> 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>