#10195: Fix offsetline when the geometry is a polygon

Use GEOSBuffer in offsetline when the geometry is a polygon
#10195: avoid calculate the GeometryType in offsetline
Merge pull request #1437 from ahuarte47/Issue_10195

Fix bug #10195: Offset line symbology added to polygon layer leads to crash