 					//MultiPoint
 				case 8:
 				case 28:
-					currentGeometryType = GeometryType.POINT;
+					setGeometryType(GeometryType.POINT);
+					break;
 				//PolyLine
 				case 3:
 				case 23:
-					currentGeometryType = GeometryType.LINE;
+					setGeometryType(GeometryType.LINE);
+					break;
 				//Polygon
 				case 5:
 				case 25:
-					currentGeometryType = GeometryType.POLYGON;
+					setGeometryType(GeometryType.POLYGON);
+					break;
 				default:
 			}
 		}

								if (vertexID < -2)
									_projectionWKT = readString(stream);
							}
							// set geometry type
							geometry.geomType = currentGeometryType;
						}
					}
				} 

		 */
		
		private var _currentGeometryType:String = GeometryType.POLYGON;
		private function setGeometryType(value:String):void
		{
			if (_currentGeometryType == value)
				return;
